請教Centos5.5網絡不通問題

xiao_nick 发布于 2011/07/12 09:52
阅读 1K+
收藏 0

大家好!我是一個新手,在此想請教大家一個問題.我新安裝了Centos5.5 ,在配置好本機IP後,能ping 通本機ip,但是不能ping 通網關,本機有兩塊網卡,我都試過故障一樣,請大家指點.謝謝!

以下是我的網卡設定:

[root@ksserver ~]# ifconfig

eth0      Link encap:Ethernet  HWaddr 00:1E:0B:5A:70:50  

          UP BROADCAST MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

          Interrupt:169 Memory:dc300000-dc310000 

eth1      Link encap:Ethernet  HWaddr 00:1E:0B:5A:70:51  

          inet addr:10.30.253.99  Bcast:10.30.253.255  Mask:255.255.255.0

          inet6 addr: fe80::21e:bff:fe5a:7051/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:60 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:0 (0.0 b)  TX bytes:7768 (7.5 KiB)

          Interrupt:90 Memory:dc400000-dc410000 

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:14 errors:0 dropped:0 overruns:0 frame:0

          TX packets:14 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:1130 (1.1 KiB)  TX bytes:1130 (1.1 KiB)

[root@ksserver ~]# ping 10.30.253.253

PING 10.30.253.253 (10.30.253.253) 56(84) bytes of data.

From 10.30.253.99 icmp_seq=1 Destination Host Unreachable

From 10.30.253.99 icmp_seq=2 Destination Host Unreachable

From 10.30.253.99 icmp_seq=3 Destination Host Unreachable

From 10.30.253.99 icmp_seq=5 Destination Host Unreachable

From 10.30.253.99 icmp_seq=6 Destination Host Unreachable

From 10.30.253.99 icmp_seq=7 Destination Host Unreachable

From 10.30.253.99 icmp_seq=8 Destination Host Unreachable

From 10.30.253.99 icmp_seq=9 Destination Host Unreachable

From 10.30.253.99 icmp_seq=10 Destination Host Unreachable

From 10.30.253.99 icmp_seq=11 Destination Host Unreachable

From 10.30.253.99 icmp_seq=12 Destination Host Unreachable

From 10.30.253.99 icmp_seq=13 Destination Host Unreachable

--- 10.30.253.253 ping statistics ---

14 packets transmitted, 0 received, +12 errors, 100% packet loss, time 13007ms

, pipe 4

[root@ksserver ~]# ping 10.30.253.99

PING 10.30.253.99 (10.30.253.99) 56(84) bytes of data.

64 bytes from 10.30.253.99: icmp_seq=1 ttl=64 time=0.033 ms

64 bytes from 10.30.253.99: icmp_seq=2 ttl=64 time=0.020 ms

64 bytes from 10.30.253.99: icmp_seq=3 ttl=64 time=0.020 ms

64 bytes from 10.30.253.99: icmp_seq=4 ttl=64 time=0.018 ms

64 bytes from 10.30.253.99: icmp_seq=5 ttl=64 time=0.019 ms

--- 10.30.253.99 ping statistics ---

5 packets transmitted, 5 received, 0% packet loss, time 4000ms

rtt min/avg/max/mdev = 0.018/0.022/0.033/0.005 ms

[root@ksserver ~]# route -n

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

10.30.253.0     0.0.0.0         255.255.255.0   U     0      0        0 eth1

169.254.0.0     0.0.0.0         255.255.0.0     U     0      0        0 eth1

0.0.0.0         10.30.253.253   0.0.0.0         UG    0      0        0 eth1

[root@ksserver ~]# 

加载中
0
wzk
wzk
路由表上多了个eth1接口的169.254.00的路由。 有没有试过给你的eth0分配一个私有IP,或者直接ifconfig eth0 down关掉。 有可能是网络接口名称指定的问题。
0
熊二哈
熊二哈

开了动态ip分配的服务吧。然后看/etc/sysconfig/network里gateway配了没有,另外ipv6是不是给开了。

eth0的信息怎么没配还关了。

返回顶部
顶部