显示各个网卡的信息:
ifconfig
激活eth0:
ifconfig eth0 up
关闭eth0:
ifconfig eth0 down
更改ip地址和掩码:
ifconfig eth0 192.168.1.101 netmask 255.255.255.0
更改mac地址(先ifconfig <eth0> down):
ifconfig eth0 hw ether 00:10:E2:10:10:10
一些文章:
ifconfig命令
Stella981
2021-10-11
显示各个网卡的信息:
ifconfig
激活eth0:
ifconfig eth0 up
关闭eth0:
ifconfig eth0 down
更改ip地址和掩码:
ifconfig eth0 192.168.1.101 netmask 255.255.255.0
更改mac地址(先ifconfig <eth0> down):
ifconfig eth0 hw ether 00:10:E2:10:10:10
一些文章:
ifconfig命令