网络故障排查流程
问题描述
网络故障排查流程
适用范围
linx-6.0.60
linx-6.0.80
linx-6.0.100
解决方案
1. 检查系统是否激活,如果是测试序列号请注意是否过期
~# cat /boot/grub/grub.cfg# 序列号存在,说明已经序列号已经写入gurb启动项
~# cat /proc/cmdline# 序列号存在,说明系统已经加载了序列号,已写入内核
~# cat /proc/linxsn_info# 文件存在且有序列号输出,说明序列号生效
2. 核对网络配置文件单词以及语法是否填写正确,并确保ifconfig输出的ip与配置相同
~# ifconfig
Link encap:Ethernet HWaddr 00:0c:29:7f:98:f6eth0
inet addr:192.168.1.100 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:432 errors:0 dropped:0 overruns:0 frame:0
TX packets:205 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:43118 (42.1 KiB) TX bytes:23795 (23.2 KiB)
Link encap:Local Loopbacklo
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:4 errors:0 dropped:0 overruns:0 frame:0
TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:340 (340.0 B) TX bytes:340 (340.0 B)
3. 检查网口是否正确连接
~# ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
10baseT/Half 10baseT/FullSupported link modes:
100baseT/Half 100baseT/Full
1000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
10baseT/Half 10baseT/FullAdvertised link modes:
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: Unknown
Supports Wake-on: umbg
Wake-on: d
0x00000007 (7)Current message level:
drv probe link
Link detected: yes#检测链接状态,yes标明网线连接正常
~# ethtool -p eth0#查看eth0对应机器网口是否出现灯光闪烁,此命令用于确定网线是否插对网口
4. 检查网络连通性(测试相同网段,不同网段之间需要提前添加路由)
~# ping -c 2 10.0.2.6
PING 10.0.2.6 (10.0.2.6) 56(84) bytes of data.
64 bytes from 10.0.2.6: icmp_seq=1 ttl=64 time=0.057 ms
64 bytes from 10.0.2.6: icmp_seq=2 ttl=64 time=0.115 ms
— 10.0.2.6 ping statistics —
2 packets transmitted, 2 received, 0% packet loss, time 1027ms
rtt min/avg/max/mdev = 0.057/0.086/0.115/0.029 ms
评论前必须登录!
注册