udev 下绑定 网卡名
在 /etc/udev/rules.d 下查看一下是否有以下内容 grep "eth" /etc/udev/rul...
扫描右侧二维码阅读全文
04
2008/07

udev 下绑定 网卡名

在 /etc/udev/rules.d 下查看一下是否有以下内容

grep "eth" /etc/udev/rules.d/*

如果没有的话自己建立一个像下面这样的文件

vi /etc/udev/rules.d/70-persistent-net.rules # PCI device 0x1106:0x3106 (via-rhine) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:95:ff:1c:c6", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" # PCI device 0x8086:0x1019 (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:11:d8:3e:d5:19", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"

关于udev介绍 请看下面两篇文档
http://blog.csdn.net/chinalinuxzend/archive/2007/10/21/1836110.aspx
http://webpages.charter.net/decibelshelp/LinuxHelp_UDEVPrimer.html

Last modification:November 26th, 2018 at 04:16 pm
If you think my article is useful to you, please feel free to appreciate

Leave a Comment