|
|
|
|
 我该怎样处理才能上网 - franq [ 2008-05-11 09:41 | 3,746 byte(s)]
 Re: 我该怎样处理才能上网 - skyone [ 2008-05-12 03:48 | 28 byte(s)]
|
|
|
|
[Original]
[Print]
[Top]
|
I have installed a new Enterprise Linux5. But it can not connect to the Internet and show the follow message:"Determining IP information for eth0... failed; no link present. Check cable? [FAILED]".
It seems that no IP address. How should I do?
follows are detail commands messages:
[root@localhost frank]# netstat -r
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
[root@localhost frank]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1957 errors:0 dropped:0 overruns:0 frame:0
TX packets:1957 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2672116 (2.5 MiB) TX bytes:2672116 (2.5 MiB)
[root@localhost frank]# host localhost
[root@localhost frank]# ping localhost
PING localhost.localdomain (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=1 ttl=64 time=0.065 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=2 ttl=64 time=0.071 ms
64 bytes from localhost.localdomain (127.0.0.1): icmp_seq=3 ttl=64 time=0.070 ms
--- localhost.localdomain ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.065/0.068/0.071/0.009 ms
[root@localhost frank]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0b:7d:11:e8:0a
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@localhost frank]# /etc/init.d/network start
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed; no link present. Check cable?
[FAILED]
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
RTNETLINK answers: File exists
[root@localhost frank]# uname -r
2.6.18-8.el5
[root@localhost frank]# /sbin/service network restart
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0:
Determining IP information for eth0... failed; no link present. Check cable?
[FAILED]
[root@localhost frank]# cat /etc/sysconfig/networking/devices/ifcfg-eth0
# Please read /usr/share/doc/initscripts-*/sysconfig.txt
# for the documentation of these parameters.
TYPE=Ethernet
DEVICE=eth0
HWADDR=00:0b:7d:11:e8:0a
BOOTPROTO=dhcp
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
[root@localhost frank]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:1967 errors:0 dropped:0 overruns:0 frame:0
TX packets:1967 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2672956 (2.5 MiB) TX bytes:2672956 (2.5 MiB)
|
|
|
[Original]
[Print]
[Top]
|
|
|