Linux下怎样改变eth0,eth1,eth2,eth3所对应的物理网卡


发布日期 : 2013-09-24 05:20:00 UTC

访问量: 101 次浏览

如果用的是Gentoo或Debian, 可以修改这个文件 /etc/udev/rules.d/70-persistent-net.rules

  • This file was automatically generated by the /lib/udev/write_net_rules
  • program, probably run by the persistent-net-generator.rules rules file.
  • You can modify it, as long as you keep each rule on a single line.
  • PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:c7:4d:4d", NAME="eth0"

  • PCI device 0x1022:0x2000 (pcnet32)

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:0c:29:c7:4d:57", NAME="eth1"

  • PCI device 0x1106:0x3065 (via-rhine)

SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:50:ba:e4:54:42", NAME="eth0"