码迷,mamicode.com
首页 >  
搜索关键字:ifconfig    ( 2714个结果
linux联网配置(更新)
重启网络配置:service network restart; 常见问题: linux 虚拟机ifconfig 显示eth1 文件ifcfg-eth0中device为eth0的问题 为什么eth0会变成eth1? 很多Linux distribution使用udev动态管理设备文件,并根据设备的信息 ...
分类:系统相关   时间:2018-01-06 22:15:18    阅读次数:305
VB虚拟机下 解决centos系统无法上网的问题
首先,在VirtualBox中设置网卡连接方式:点“设置”,在弹出的界面中点“网络”,最后选择“连接方式”为“桥接网卡”或者网都可以络地址转换 这两种我试了试都可以 接下来修改一个文件就行: 1.打开终端 2.输入命令:ifconfig -a,查看网络配置文件的名字 我的是enp0s3 (我现在已经 ...
分类:其他好文   时间:2018-01-06 22:13:33    阅读次数:370
快速搭建部署网络PXE shell 脚本
#!/bin/bash#获取当前机器IP地址IP=`ifconfig | head -2 | tail -1 | awk ‘{print $2}‘`#获取当前机器MASK地址MASK=`ifconfig | head -2 | tail -1 | awk ‘{print $4}‘`MASK1=`echo $MASK | awk -F. ‘{print $1}
分类:系统相关   时间:2018-01-06 21:04:00    阅读次数:225
Linux的网络命令
网络环境查看命令 ifconfig 查看和配置网络状态命令 ifdown 网卡名 禁用该网卡设备 ifup 网卡名 启用该网卡 netstat 查询网络状态 -t 列出TCP协议端口 -u 列出UDP协议端口 -n 不使用域名与服务器,而是要IP地址 -l 仅列出在监听状态网络服务 -a 列出所有的 ...
分类:系统相关   时间:2018-01-05 19:05:25    阅读次数:187
Linux常用命令40:ifconfig命令
许多windows非常熟悉ipconfig命令行工具,它被用来获取网络接口配置信息并对此进行修改。Linux系统拥有一个类似的工具,也就是ifconfig(interfaces config)。通常需要以root身份登录或使用sudo以便在Linux机器上使用ifconfig工具。依赖于ifconf ...
分类:系统相关   时间:2018-01-05 18:00:29    阅读次数:220
docker 网络设置桥接网卡
[root@linux-node2 ~]# systemctl stop docker  [root@linux-node2 ~]# ifconfig  docker0 down  [root@linux-node2 ~]# brctl delbr 
分类:其他好文   时间:2018-01-04 19:33:22    阅读次数:336
剩余定时任务、第四关练习题、vim快捷键补充
关注微信公众号:linux运维菜鸟之旅
分类:系统相关   时间:2018-01-04 18:11:25    阅读次数:284
linux临时网络配置
1、设置IP地址: ifconfig ens33 192.168.60.231/24 2、添加默认网关路由 $Route add default gw <默认网关地址> 例:#route add default gw 192.168.1.1 3、DNS服务器配置文件:/etc/resolv.conf ...
分类:系统相关   时间:2018-01-03 18:37:06    阅读次数:187
云服务器查看外网ip
curl?ip.6655.com/ip.aspx? curl?whatismyip.akamai.com? wget?-qO?-?ifconfig.co? curl?icanhazip.com? dig?+short?myip.opendns.com?@resolver
分类:其他好文   时间:2018-01-03 17:29:23    阅读次数:115
linux之grep使用
grep主要用于文本匹配 -i 不区分大小写 -n显示行数 -v 不包含 -c 统计行数 eg: [root@localhost sjdtest]# ifconfig |grep -i "INET" inet addr:172.17.42.1 Bcast:0.0.0.0 Mask:255.255.0 ...
分类:系统相关   时间:2018-01-02 16:44:11    阅读次数:146
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!