可以通过修改/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",
# PCI device 0x10ec:0x8167 (r8169)
SUBSYSTEM=="net", DRIVERS=="?*", ATTRS{address}=="00:16:17:c0:a3:66",
如果更改eth0和eth1的顺序,把两个名字对换下就可以了,然后重启,很简单吧。
Debian 4 etch 实现更改eth0,eth1的顺序
内容版权声明:除非注明,否则皆为本站原创文章。
转载注明出处:https://www.heiqu.com/df0e52587a8cd027ac87387d346ff652.html