網卡名命名規則文件:
/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:db:c9:5c", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:db:c9:66", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
修改網卡命名示例:
1、查看網卡的驅動并且卸載網卡驅動
[root@rhel6 ~]# ethtool -i eth0
driver: e1000 #網卡驅動
[root@rhel6 ~]# modprobe -r e1000 #卸載網卡驅動
2、修改70-persistent-net.rules文件
3、重新加載網卡驅動并且重啟網絡服務
[root@rhel6 ~]# modprobe e1000 #重新加載網卡驅動
[root@rhel6 ~]# /etc/rc.d/init.d/network restart #重啟網絡服務
- PC官方版
- 安卓官方手機版
- IOS官方手機版