局域网??

来源:互联网 发布:苏联二战人口知乎 编辑:程序博客网 时间:2024/04/30 00:18

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在线站点


原创粉丝点击