您的位置:首页 > 理论基础 > 计算机网络

因交换机网卡故障导致的网络无法ping通

2016-05-18 16:49 405 查看
服务器主机型号为Dell R730,安装redhat 6.5 x64操作系统、配置IP地址后无法ping通网关

1、测试ping网关192.168.6.1

[root@lkdb Desktop]# ping 192.168.6.1 -----网关

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

From 192.168.6.33 icmp_seq=2 Destination Host Unreachable

From 192.168.6.33 icmp_seq=3 Destination Host Unreachable

From 192.168.6.33 icmp_seq=4 Destination Host Unreachable

无法ping通,查看IP配置信息正常,期间尝试ping自己(192.168.6.33)正常:

[root@lkdb Desktop]# ifconfig

em3 Link encap:Ethernet HWaddr 14:18:77:4D:2E:CA

inet addr:192.168.6.33 Bcast:192.168.6.127 Mask:255.255.255.128

inet6 addr: fe80::1618:77ff:fe4d:2eca/64 Scope:Link

UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1

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

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

collisions:0 txqueuelen:1000

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

Interrupt:40

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

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

collisions:0 txqueuelen:0

RX bytes:15852 (15.4 KiB) TX bytes:15852 (15.4 KiB)

2、检查网口em3:

[root@lkdb Desktop]# ethtool em3

Settings for em3:

Supported ports: [ TP ]

Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Half 1000baseT/Full

Supported pause frame use: No

Supports auto-negotiation: Yes

Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Half 1000baseT/Full

Advertised pause frame use: Symmetric

Advertised auto-negotiation: Yes

Link partner advertised link modes: 10baseT/Half 10baseT/Full

Link partner advertised pause frame use: No

Link partner advertised auto-negotiation: Yes

Speed: 10Mb/s --此处显示10Mb/s全双工模式,明显不正常

Duplex: Full

Port: Twisted Pair

PHYAD: 1

Transceiver: internal

Auto-negotiation: on

MDI-X: off

Supports Wake-on: g

Wake-on: d

Current message level: 0x000000ff (255)

drv probe link timer ifdown ifup rx_err tx_err

Link detected: yes

3、更换交换机接口后显示正常,如下:

[root@lkdb Desktop]# ethtool em3

Settings for em3:

Supported ports: [ TP ]

Supported link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Half 1000baseT/Full

Supported pause frame use: No

Supports auto-negotiation: Yes

Advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Half 1000baseT/Full

Advertised pause frame use: Symmetric

Advertised auto-negotiation: Yes

Link partner advertised link modes: 10baseT/Half 10baseT/Full

100baseT/Half 100baseT/Full

1000baseT/Full

Link partner advertised pause frame use: No

Link partner advertised auto-negotiation: Yes

Speed: 1000Mb/s --此处显示1000Mb/s全双工模式,正常

Duplex: Full

Port: Twisted Pair

PHYAD: 1

Transceiver: internal

Auto-negotiation: on

MDI-X: off

Supports Wake-on: g

Wake-on: d

Current message level: 0x000000ff (255)

drv probe link timer ifdown ifup rx_err tx_err

Link detected: yes

4、再次尝试Ping网关正常:

[root@lkdb Desktop]# ping 192.168.6.1

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

From 192.168.6.33 icmp_seq=2 Destination Host Unreachable

From 192.168.6.33 icmp_seq=3 Destination Host Unreachable

From 192.168.6.33 icmp_seq=4 Destination Host Unreachable

64 bytes from 192.168.6.1: icmp_seq=5 ttl=255 time=4.49 ms

64 bytes from 192.168.6.1: icmp_seq=6 ttl=255 time=0.483 ms

64 bytes from 192.168.6.1: icmp_seq=7 ttl=255 time=0.469 ms

64 bytes from 192.168.6.1: icmp_seq=8 ttl=255 time=0.493 ms

64 bytes from 192.168.6.1: icmp_seq=9 ttl=255 time=0.465 ms

64 bytes from 192.168.6.1: icmp_seq=10 ttl=255 time=0.466 ms

64 bytes from 192.168.6.1: icmp_seq=11 ttl=255 time=0.490 ms

64 bytes from 192.168.6.1: icmp_seq=12 ttl=255 time=0.502 ms

64 bytes from 192.168.6.1: icmp_seq=13 ttl=255 time=0.484 ms

64 bytes from 192.168.6.1: icmp_seq=14 ttl=255 time=5.10 ms

^C

--- 192.168.6.1 ping statistics ---

14 packets transmitted, 10 received, +3 errors, 28% packet loss, time 13162ms

rtt min/avg/max/mdev = 0.465/1.344/5.102/1.732 ms, pipe 3
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: