早教吧 育儿知识 作业答案 考试题库 百科 知识分享

centos5.2系统,无法连接网络使用ethtooleth1命令,结果是这样:Settingsforeth1:Supportedports:[TPMII]Supportedlinkmodes:10baseT/Half10baseT/Full100baseT/Half100baseT/FullSupportsauto-negotiation:YesAdvertisedlinkmodes:10base

题目详情
centos5.2系统,无法连接网络
使用ethtool eth1命令,结果是这样:
Settings for eth1:
Supported ports:[ TP MII ]
Supported link modes:10baseT/Half 10baseT/Full
100baseT/Half100baseT/Full
Supports auto-negotiation:Yes
Advertised link modes:10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation:No
Speed:10Mb/s 注:10M/s
Duplex:Half 注:半双工
Port:MII
PHYAD:32
Transceiver:internal
Auto-negotiation:off
Supports Wake-on:pumbg
Wake-on:d
Current message level:0x00000007 (7)
Link detected:no
Link detected提示no.
系统是新装的
▼优质解答
答案和解析
编辑一下配置文件
比如我的配置如下:(采用静态IP)
[root@localhost MarsDiskImage]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller
DEVICE=eth0
BOOTPROTO=none
HWADDR=00:30:18:A1:31:9C
ONBOOT=yes
NETMASK=255.255.255.0
IPADDR=192.168.2.149
GATEWAY=192.168.2.9
TYPE=Ethernet
USERCTL=no
IPV6INIT=no
PEERDNS=yes