网络安全 频道

关于网络故障的全面分析排除实战

如果这一信息符合PC上的MAC地址,接下来就要确定交换机端口上没有不相关的配置。例如:

Switch# show run interface fa0/14

Building configuration...

Current configuration : 82 bytes

interface FastEthernet0/14

switchport mode access

spanning-tree portfast
end

Switch#

尽管可能还有第二层别的问题存在,至少在这一层看起来情况还不错。接下来,查看第三层。在PC上使用IPCONFIG /ALL命令进行检查,如列表C列所示。

列表C

C:> ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : PC100

Primary Dns Suffix  . . . . . . . : TechRepublic.com

Node Type . . . . . . . . . . . . : Peer-Peer

IP Routing Enabled. . . . . . . . : No

WINS Proxy Enabled. . . . . . . . : No

DNS Suffix Search List. . . . . . : TechRepublic.com
Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix  . : TechRepublic.com

Description . . . . . . . . . . . : Intel(R) PRO/1000 MT Network Connection

Physical Address. . . . . . . . . : 00-C0-B7-68-54-09

Dhcp Enabled. . . . . . . . . . . : Yes

Autoconfiguration Enabled . . . . : Yes

IP Address. . . . . . . . . . . . : 10.80.2.2

Subnet Mask . . . . . . . . . . . : 255.255.0.0

Default Gateway . . . . . . . . . : 10.80.2.1

DHCP Server . . . . . . . . . . . : 10.2.1.26

DNS Servers . . . . . . . . . . . : 10.2.1.26

Primary WINS Server . . . . . . . : 10.2.1.26

Secondary WINS Server . . . . . . : 10.2.1.21

Lease Obtained. . . . . . . . . . : Wednesday, November 02, 2005 5:43:55 AM

Lease Expires . . . . . . . . . . : Thursday, November 10, 2005 5:43:55 AM

这里,我们可以看到PC有IP地址,但是这地址对么?这台PC通过DHCP获得10.80.x.x范围内的地址,但是现在地址却是10.1.x.x。

所以,我们终于发现了问题。DHCP服务器分发的IP地址不属于子网。这种问题多出现在PC从某个子网挪到另一个子网时,PC依然请求旧的IP地址就产生了问题。

可以尝试这样解决问题,让所有接口的租用IP地址重新交付给DHCP服务器(即归还IP地址)。使用IPCONFIG /RELEASE,然后使用IPCONFIG /RENEW命令,然后PC就会获得正确的IP地址,所有的网络应用就都可以使用了。

分而治之

假设情况:某个用户说所有的应用除了IE浏览器都可以使用。当尝试浏览网页时,出现“找不到主机或DNS错误,网页无法显示”的提示。

如何开始:由于是跟应用相关的问题,可能会想采用从上到下的方法从OSI模型的应用层查起。但是,其实有多种原因可能造成这种错误。

采用分而治之的方法,先从我们了解的情况入手。用户说除IE外其他应用都可以工作。问题可能就出现在本地网和外网。

0
相关文章