如何修改linux网卡名
2017-05-21
展开全部
1.shutdown 相应接口,将
/etc/sysconfig/network-scripts/ifcfg-eth0中的
DEVICE=eth0
HWADDR=00:1e:ec:0f:79:f6
修改或添加
并将下面文件中修改成和上述一致
/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x14e4:0x1713 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:ec:0f:79:f6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x14e4:0x1713 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:ec:0f:79:f7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
2. service udev-post stop; service udev-post start
3. ifup eth0/eth1
/etc/sysconfig/network-scripts/ifcfg-eth0中的
DEVICE=eth0
HWADDR=00:1e:ec:0f:79:f6
修改或添加
并将下面文件中修改成和上述一致
/etc/udev/rules.d/70-persistent-net.rules
# PCI device 0x14e4:0x1713 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:ec:0f:79:f6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x14e4:0x1713 (tg3)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:1e:ec:0f:79:f7", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
2. service udev-post stop; service udev-post start
3. ifup eth0/eth1
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询