编号 | 命令 |
1 | /etc/rc.d/rc.local |
配置网卡为一个固定的Mac地址(reboot后不再改变Mac) | |
2 | ifconfig eth0 192.168.0.1 netmask 255.255.255.0 |
为eth0配置IP地址 | |
3 | ifconfig eth0:0 192.168.1.1 netmask 255.255.255.0 |
为eth0再配置一个IP地址 | |
4 | ifconfig eth0 down/up |
将网卡启用/禁用 | |
4 | ifconfig -a |
显示所有接口信息 |