网络故障检测与排除
来源:互联网 发布:剑三喵萝捏脸数据 编辑:程序博客网 时间:2024/04/27 03:22
当用户端出现网络故障时,请用户先依据以下步骤进行检测网络故障原因,看是自己计算机端故障,还是外界线路或其他故障,对于故障排除做到有的放矢。
1.利用ipconfig命令:检测网卡的配置,是否获上地址。
1.1 ipconfig:显示网卡的简单配置。
ipconfig
若出现如下信息,则表示获上IP,线路完全畅通:
Windows IP Configuration
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.1.11.11(本机地址)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.1.11.1(本网段网关)
若出现如下信息,则表示未获上IP,利用ipconfig/renew命令重新获取IP:
Windows IP Configuration
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 192.168.1.2
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
1.2 ipconfig/all:显示网卡的详细配置。
ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : Seal
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Unknown
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . : lzu.edu.cn
Description . . . . . . . . . . . : Intel(R) PRO/100+ PCI Adapter
Physical Address. . . . . . . . . : 00-D0-B7-E0-6D-E0
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.1.11.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.1.11.1
DNS Servers . . . . . . . . . . . : 192.168.1.2
10.1.2.10
202.201.0.132
Lease Obtained. . . . . . . . . . :
Lease Expires . . . . . . . . . . :
1.3 ipconfig/renew:释放并更新网卡的配置。
ipconfig/renew
Windows IP Configuration
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 10.1.11.11
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.1.11.1
1.4 ipconfig/release:释放网卡的配置。
ipconfig/release:
Windows IP Configuration
Ethernet adapter 本地连接:
Connection-specific DNS Suffix . :
IP Address. . . . . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . . . . :
2、Ping命令:验证本机到被Ping目标主机的物理线路连通性。
2.1Ping 127.0.0.1 验证本机TCP/IP协议是否安装好;
打开命令提示符,键入“Ping 127.0.0.1”命令
如出现如下所示字样,则表示本机TCP/IP协议安装完好:
Pinging 127.0.0.1 with 32 bytes of data:
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Reply from 127.0.0.1: bytes=32 time<10ms TTL=128
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
否则如出现如下所示字样,则表示本机TCP/IP协议安装不完整,请重新添加TCP/IP协议:
Pinging 127.0.0.1 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 127.0.0.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
2.2 Ping 你的本机IP:验证你本机IP地址是否配置完成或者网卡物理属性是否完好;
例如Ping我的本机IP(10.1.15.120——举例,实践中是你主机对应的IP),如出现如下所示字样,则表示本机IP地
址已配置好且网卡物理属性完好:
Pinging 10.1.15.120 with 32 bytes of data:
Reply from 10.1.15.120: bytes=32 time<10ms TTL=128
Reply from 10.1.15.120: bytes=32 time<10ms TTL=128
Reply from 10.1.15.120: bytes=32 time<10ms TTL=128
Reply from 10.1.15.120: bytes=32 time<10ms TTL=128
Ping statistics for 10.1.15.120:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
否则如出现“Request timed out.”所示字样,则表示本机IP地址未配置好或网卡物理属性不好,请配置好IP地址,如果 还有问题的话请更换你的网卡或重新安装你的网卡驱动程序试一下。
2.3 Ping 你的网关IP:验证从你本机到网关的物理线路是否连通;
例如Ping您的网关(10.1.15.1——举例,实践中是你主机对应的网关),如出现“Reply from.....”字样,则表示本机到它的网关物理线路连通性完好;否则如出现“Request timed out.”所示字样,则表示本机到它的网关物理线路连通性有故障,请联系网管解决。
3. Tracert命令:跟踪数据包到达目的主机的路径,可以探测网络故障是发生在校内还是校外。
例如跟踪到263在线站点的路由:单击操作系统的“开始”菜单,点击“运行”,在出现的“打开”命令框中键入“Tracert www.263.net”命令,可以得到类似如以下字样的结果(“—>”表解释说明):
tracert www.263.net
Tracing route to www.263.net [211.100.24.131] —>解析出263在线站点的主机IP地址;
over a maximum of 30 hops:
1 1 ms 2 ms 2 ms 10.1.11.2—>到这一步,就说明校园网内的线路连通性完好,线路故障只能发生在校外了;
2 2 ms 2 ms 2 ms 10.4.2.4
3 * * * Request timed out. —>说明从10.4.2.4到上一级路由器之间发生了故障,导致连接不了263在线站点
ping 局域网内其他IP--这个命令应该离开你的计算机,经过网卡及网络电缆到达其他计算机,再返回。收到回送应答表明本地网络中的网卡和载体运行正确。但如果收到0个回送应答,那么表示子网掩码(进行子网分割时,将IP地址的网络部分与主机部分分开的代码)不正确或网卡配置错误或电缆系统有问题。
ping 网关IP--这个命令如果应答正确,表示局域网中的网关路由器正在运行并能够作出应答。
ping 远程IP--如果收到4个应答,表示成功的使用了缺省网关。对于拨号上网用户则表示能够成功的访问Internet(但不排除ISP的DNS会有问题)。
ping localhost--localhost是个作系统的网络保留名,它是127.0.0.1的别名,每太计算机都应该能够将该名字转换成该地址。如果没有做到这一带内,则表示主机文件(/Windows/host)中存在问题。
ping www.yahoo.com--对这个域名执行Pin ... 地址,通常是通过DNS 服务器 如果这里出现故障,则表示DNS服务器的IP地址配置不正确或DNS服务器有故障(对于拨号上网用户,某些ISP已经不需要设置DNS服务器了)。顺便说一句:你也可以利用该命令实现域名对IP地址的转换功能。
如果上面所列出的所有Ping命令都能正常运行,那么你对你的计算机进行本地和远程通信的功能基本上就可以放心了。但是,这些命令的成功并不表示你所有的网络配置都没有问题,例如,某些子网掩码错误就可能无法用这些方法检测到。
- 网络故障检测与排除
- 网络故障检测与排除之己见
- 思科路由器:网络故障诊断与排除命令
- RS-485网络故障查找与排除
- 怎样用Ping命令轻松解决检测网络故障+排除网络故障从Ping命令开始
- 中小异构Linux网络故障分析与排除
- 局域网网络故障排除策略
- 网络故障排除参考大全
- 局域网网络故障排除策略
- 网络故障诊断和排除
- 基本网络故障排除
- 局域网网络故障排除策略
- 网络故障检查及排除
- 网络故障诊断和排除
- 巧用Netstat排除网络故障
- 网络故障检测
- 一次网络故障的排除小结
- 网管手册-网络故障排除方法
- 等待下一个长假
- 有关ACE的一点杂音
- Sense of Humor
- 早期的程序
- 一起来回忆一些经典的台词吧~~
- 网络故障检测与排除
- RSS 的一点简介(转载)
- 心甘情愿-张艾嘉
- 一个难以实现的想法
- 保持左右脑平衡的方法
- 程序员是怎么喝酒的(转帖)
- 入侵检测系统研究现状
- 转一下,ADSL宽带常见问题及解决办法
- DirectX 9高层着色语言介绍1——引言、简单例子、汇编语言和编译对象