TX packets:206 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:13803 (13.4 Kb) TX bytes:13803 (13.4 Kb)
3、停用网路
bo2dbp:~ # rcnetwork stop
Shutting down network interfaces:
eth3 device: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
eth3 configuration: eth-bus-pci-0000:02:00.0
eth3 done
eth4 device: Intel Corporation 82545EM Gigabit Ethernet Controller (Copper) (rev 01)
eth4 configuration: eth-bus-pci-0000:02:02.0
eth4 done Shutting down service network . . . . . . . . . . . . . done
4、编辑配置文件
#将原来的eth0 与eth1注释掉
#并将新的mac地址条目改为eth0与eth1
bo2dbp:~ # vi /etc/udev/rules.d/30-net_persistent_names.rules
#SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:0c:29:8a:6c:c8", IMPORT="/lib/udev/rename_netiface %k eth0"
#SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:0c:29:8a:6c:d2", IMPORT="/lib/udev/rename_netiface %k eth1"
SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:0c:29:99:df:0f", IMPORT="/lib/udev/rename_netiface %k eth0"
SUBSYSTEM=="net", ACTION=="add", SYSFS{address}=="00:0c:29:99:df:19", IMPORT="/lib/udev/rename_netiface %k eth1"
5、使用rename_netiface命令重命名网络接口
bo2dbp:~ # cd /lib/udev
bo2dbp:/lib/udev # ./rename_netiface eth3 eth0
INTERFACE=eth0
DEVPATH=/eth0
RENAMED=yes
bo2dbp:/lib/udev # ./rename_netiface eth4 eth1
INTERFACE=eth1
DEVPATH=/eth1
RENAMED=yes
6、重启网络
bo2dbp:/lib/udev # rcnetwork start