一 描述
二 步聚
三 问题
55c系统更换启动后,/etc/init.d/net.eth0 无法启动.网络无法连接. (错误提示忘记记录)
四 解决方案
查看/etc/udev/rules.d/70-persistent-net.rules 文件.此文件中
SL410 oracle # cat !$
cat /etc/udev/rules.d/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 0x10ec:0x8172 (rtl819xSE)
#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="70:1a:04:2d:76:6d", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
# PCI device 0x10ec:0x8172 (rtl819xSE)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="70:1a:04:2d:76:6d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="wlan*", NAME="wlan0"
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:43:55:8c:wd:q3", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x10ec:0x8168 (r8169)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:26:9e:45:9f:1d", ATTR{dev_id}=="0x0", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"
SL410 oracle #
删除 eth0 eth1 两红色字行.重启系统.
#reboot 即可
五 原因
记下来,防止下次再遇到这个问题