系统信息:Redflag HP OEM
问题现象:家用ADSL,使用系统自带的Poseidon工具进行拨号上网,但打开该工具进行配置到选择以太网设备时,没有选项。
解决方法:

Poseidon工具默认使用eth0进行网络链接,所以查看下当前网卡识别情况,发现只有eth1,并没有eth0设备,不知道为什么系统跳过eth0而直接生成eth1,不管那么多了,先将eth1改过来。

1、查看并修改udev下的网卡绑定规则
[code lang=”js”]vi /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 0x14e4:0x170c (b44)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="xx:Mx:xx:Ax:xx:Cx", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"[/code]
将 NAME 后的eth1 改成 eth0,保存退出。

2、查看 /etc/sysconfig/network-scripts/ 目录下 是否存在 ifcfg-eth0 或 ifcfg-eth1 ,如果有ifcfg-eth0,则看看里面的设置是否正确,如果只有 ifcfg-eth1 ,则可以将其删除或修改成 ifcfg-eth0 ,下面是ifcfg-eth0的简单配置文件:
[code lang=”js”]DEVICE=eth0
ONBOOT=yes
HWADDR=xx:Mx:xx:Ax:xx:Cx
BOOTPROTO=dhcp
TYPE=Ethernet
[/code]

3、查看 /etc/modprobe.conf 文件,查看 alias eth0 模块名 是否正确。

重启系统,网卡识别成eth0设备,再次使用Poseidon工具进行拨号,过程顺利,能够上网。