感谢支持
我们一直在努力

Debian 4 etch 实现更改eth0,eth1的顺序

可以通过修改/etc/udev/rules.d/z25_persistent-net.rules来实现

/etc/udev/rules.d/z25_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.
# MAC addresses must be written in lowercase.

# PCI device 0x10ec:0x8139 (8139too)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:e0:4c:39:a4:99″, NAME=”eth0″

# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM==”net”, DRIVERS==”?*”, ATTRS{address}==”00:16:17:c0:a3:66″, NAME=”eth1″

如果更改eth0和eth1的顺序,把两个名字对换下就可以了,然后重启,很简单吧。

赞(0) 打赏
转载请注明出处:服务器评测 » Debian 4 etch 实现更改eth0,eth1的顺序
分享到: 更多 (0)

听说打赏我的人,都进福布斯排行榜啦!

支付宝扫一扫打赏

微信扫一扫打赏