- 论坛徽章:
- 0
|
回复 5# ByCore
[root@moniter rules.d]# more 70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules
# program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# line, and change only the value of the NAME= key.
# PCI device 0x14e4:0x163b (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:b9:42:20:a5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
# PCI device 0x14e4:0x163b (bnx2) (custom name provided by external tool)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:b9:42:20:a4", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
如上所示,这是一台Dell R410 双网卡服务器,Centos 6.0 X86_64操作系统,后面板标识网口1和网口2
例如我如何快速确定eth0 ATTR{address}=="00:26:b9:42:20:a4"就是网口1或网口2?
|
|