Linux:ifconfig命令示例


Linux:ifconfig命令示例
 
显示各个网卡的信息:
1
ifconfig
 
 激活eth0:
1
ifconfig eth0 up
 
 关闭eth0:
1
ifconfig eth0 down
 
更改ip地址和掩码:
 
1
ifconfig eth0 192.168.1.101 netmask 255.255.255.0
 
更改mac地址(先ifconfig <eth0> down): 
1
ifconfig eth0 hw ether 00:10:E2:10:10:10
 

相关内容

    暂无相关文章