常见网络设备故障及解决方法优秀PPT.ppt
常见网络设备故障及解决方法你现在浏览的是第一页,共41页交换机常见问题分析路由器常见问题分析客户端常见问题分析客户端常见问题分析本章内容你现在浏览的是第二页,共41页交换机常见问题分析路由器常见问题分析路由器常见问题分析客户端常见问题分析客户端常见问题分析课程议题你现在浏览的是第三页,共41页故障现象 当通过RJ-45和DB9连接到Console口后无法连接到交换机?你现在浏览的是第四页,共41页故障分析分析:通常连接交换机的配置线缆有三种:l l1 1、DB9-to-DB9 DB9-to-DB9 l l2 2、RJ-45RJ-45反转线反转线DB9DB9转换器转换器 l l3 3、RJ-45-to-DB9RJ-45-to-DB9l l此故障是由于采用了第二种连接方式所产生,故分析此故障是由于采用了第二种连接方式所产生,故分析这要线缆及这要线缆及DB9DB9转换器问题。经检查发现此网线为普通转换器问题。经检查发现此网线为普通的直连网线,故无法登录交换机的直连网线,故无法登录交换机 解决:将这根网线换成交换机的配置线缆,即全反 RJ45双绞线 你现在浏览的是第五页,共41页故障现象 当通过RJ45-to-DB9配置线缆连接到交换机的Console口后,用超级终端发现无法登录交换机。你现在浏览的是第六页,共41页故障分析分析:经检查配置线缆无任何问题。则怀疑超级终端属性设 置问题,正确的超级终端的COM口属性应设置为 9600bps、无奇偶校验、无流控、数据位8位、停止位1位。发现速率误设成了115200bps 解决:重新建立一正确属性的连接。你现在浏览的是第七页,共41页故障现象 当配置交换机支持Telnet方式访问时,在2126G交换机上配置了管理vlan 1的地址后,却无法Telnet上来。你现在浏览的是第八页,共41页故障分析分析:l l1 1、交换机、交换机VLAN1VLAN1的的IPIP和主机的和主机的IPIP不在同一子网不在同一子网l l2 2、主机所连接的交换机接口不属于、主机所连接的交换机接口不属于VLAN1VLAN1l l3 3、交换机、交换机VLAN1VLAN1配置配置IPIP地址以后没有地址以后没有no shutdownno shutdownl l4 4、同时给二层交换机配置两个管理、同时给二层交换机配置两个管理IPIP,先配置的,先配置的VLAN1,VLAN1,后配置的别的后配置的别的VLANVLAN你现在浏览的是第九页,共41页故障分析分析:分析:l l通过通过show ip interfaceshow ip interface查看查看VLAN 1VLAN 1接口的地址接口的地址SwitchA#show ip interface SwitchA#show ip interface Interface :VL1Interface :VL1Description :Vlan 1Description :Vlan 1OperStatus :downOperStatus :downManagementStatus :EnabledManagementStatus :EnabledPrimary Internet address:192.168.0.138/24Primary Internet address:192.168.0.138/24Broadcast address :255.255.255.255Broadcast address :255.255.255.255PhysAddress :00d0.f8fe.1e48PhysAddress :00d0.f8fe.1e48l l交换机的管理交换机的管理VLANVLAN地址未用地址未用no shutno shut打开。在打开。在S2126GS2126G上默认情况下上默认情况下VLANVLAN接口是关闭的。接口是关闭的。解决解决:进入进入VLAN 1VLAN 1接口,用接口,用no shutdownno shutdown打开打开 你现在浏览的是第十页,共41页故障现象故障现象:当管理员telnet到交换机时提示:l lPassword requied,but none setPassword requied,but none set分析:当设置交换机支持telnet管理时,除了需要设置管理IP地址外,还需要设置登录密码解决:在交换机上增加如下命令l lSwitch(config)#enable secret level 1 0 star /*Switch(config)#enable secret level 1 0 star /*配置远程配置远程登陆密码登陆密码 你现在浏览的是第十一页,共41页故障现象故障现象:l l当管理员当管理员telnettelnet到交换机时成功了,当输入了到交换机时成功了,当输入了enableenable后,后,提示:提示:%No password set%No password set。分析:l l当设置交换机支持当设置交换机支持telnettelnet管理时,除了需要设置管理管理时,除了需要设置管理IPIP地址外,还需要设置登录密码,登录密码是为能够正地址外,还需要设置登录密码,登录密码是为能够正 常常telnettelnet到交换机时使用的。但如果想完全配置交换机到交换机时使用的。但如果想完全配置交换机必须设置特权密码。必须设置特权密码。解决:在交换机上增加如下命令l lSwitch(config)#enable secret level 15 0 star Switch(config)#enable secret level 15 0 star!配置进!配置进入特权模式密码入特权模式密码你现在浏览的是第十二页,共41页故障现象如何跨VLAN管理交换机?VLAN20VLAN30192.168.2.8VLAN20192.168.1.1VLAN30192.168.2.1switchAswitchB你现在浏览的是第十三页,共41页故障分析分析:网管员所在VLAN和交换机管理IP不属于同一个VLAN,根据路由过程分析为交换机无法向网管员发送数据包,即交换机缺少一个网关解决:SwitchB(config)#ip default-gateway 192.168.2.1你现在浏览的是第十四页,共41页故障现象当管理员将原来测试用的vlan删除后,通过show vlan来验证发现已经无VLAN存在,却意外地发现在VLAN 1中的f0/5-10接口不见了 你现在浏览的是第十五页,共41页故障分析分析:交换机保存配置文件的名称是config.text,保存VLAN配置文件的名称为vlan.dat,这两者均保存在FLASH中。当删除了vlan.dat只是将创建的VLAN及名称删除,并没有删除VLAN的成员所属关系。所以如果只删vlan.dat,而不删除config.text或相应的配置,则已经被分配到某些VLAN的端口就不会在VLAN 1中出现。解决:此时应用show run来查看一下,这几个接口均属于哪个VLAN,然后进入这几个物理接口,用no switchport access vlan来清除其与已删除VLAN的所属关系。你现在浏览的是第十六页,共41页交换机常见问题分析交换机常见问题分析路由器常见问题分析路由器常见问题分析客户端常见问题分析课程议题你现在浏览的是第十七页,共41页故障现象当设置路由器R2624支持telnet管理时,管理员的PC与路由器的fastethernet 0是通过一台交换机相连的。此时在路由器上配置了IP地址为10.1.1.1/24,但从PC telnet到路由器时却无反应。你现在浏览的是第十八页,共41页故障分析通过通过show int f 0show int f 0来查看路由器的接口配置,发现接来查看路由器的接口配置,发现接口状态为口状态为Fastehternet 0 is administratively down,line Fastehternet 0 is administratively down,line protocol is down.protocol is down.路由器接口不象交换机,默认是关闭的。故必须通过手工打路由器接口不象交换机,默认是关闭的。故必须通过手工打开才可以使用。开才可以使用。分析分析:解决:进入路由器的解决:进入路由器的FastehternetFastehternet 0 0接口配置模式,然后接口配置模式,然后 用用no shutno shut打开。打开。你现在浏览的是第十九页,共41页故障现象当管理员telnet到路由器时提示:l lPassword requied,but none setPassword requied,but none set。你现在浏览的是第二十页,共41页故障分析当设置路由器支持当设置路由器支持telnettelnet管理时,除了需要设置可到管理时,除了需要设置可到达接口的达接口的IPIP地址外,还需要设置登录密码。地址外,还需要设置登录密码。在路由器上增加如下命令在路由器上增加如下命令RouterA(config)#line vty 0 4 RouterA(config)#line vty 0 4 !进入路由器线!进入路由器线路配置模式路配置模式RouterA(config-line)#login RouterA(config-line)#login !配置远程登录!配置远程登录RouterA(config-line)#password star RouterA(config-line)#password star !设置路由器远!设置路由器远程登录密码为程登录密码为 “starstar”RouterA(config-line)#endRouterA(config-line)#end分析分析:解决解决:你现在浏览的是第二十一页,共41页故障现象当管理员telnet到路由器时成功了,当输入了enable后,提示:%No password set 你现在浏览的是第二十二页,共41页故障分析当设置路由器支持当设置路由器支持telnettelnet管理时,除了需要设置管理管理时,除了需要设置管理IPIP地址外,还需要设置登录密码,登录密码是为能够地址外,还需要设置登录密码,登录密码是为能够正常正常telnettelnet到路由器时使用的。但如果想完全配置路到路由器时使用的。但如果想完全配置路由器必须设置特权密码。由器必须设置特权密码。在路由器上增加如下命令在路由器上增加如下命令RouterA(config)#enable secret star RouterA(config)#enable secret star !设置路由器!设置路由器特权模式的密文密码为特权模式的密文密码为 “starstar”或或RouterA(config)#enable password starRouterA(config)#enable password star!设置路由!设置路由器特权模式的明文密码为器特权模式的明文密码为 “starstar”如果同时设置则密文密码生效。如果同时设置则密文密码生效。分析分析:解决解决:你现在浏览的是第二十三页,共41页故障现象172.16.1.0/24PC1PC2172.16.2.0/24172.16.3.0/24.1.11.2.22Router1Router2.1(DCE).2(DTE)图7-2-1 如图所示,当在实验室时通过V.35线缆将两台路由器背靠背连接进行配置后,却无法ping通直连的路由器。你现在浏览的是第二十四页,共41页故障分析通过在Router1上查看结果如下Router1#show ip interface brief Router1#show ip interface brief Interface IP-Address OK?Method Status Interface IP-Address OK?Method Status ProtocolProtocolFastEthernet0 172.16.1.1 YES manual up FastEthernet0 172.16.1.1 YES manual up upupSerial0 172.16.2.1 YES manual up Serial0 172.16.2.1 YES manual up downdownSerial1 unassigned YES unset Serial1 unassigned YES unset administratively down downadministratively down down你现在浏览的是第二十五页,共41页故障分析Router1#show interface serial 0Serial0 is up,line protocol is down Hardware is HDLC4530A Internet address is 172.16.2.1/24 MTU 1500 bytes,BW 2048 Kbit,DLY 20000 usec,rely 255/255,load 1/255 Encapsulation HDLC,loopback not set,keepalive set(10 sec)Last input never,output never,output hang never Last clearing of show interface counters never Input queue:0/75/0(size/max/drops);Total output drops:0 Queueing strategy:weighted fair Output queue:0/64/0(size/threshold/drops)Conversations 0/0(active/max active)Reserved Conversations 0/0(allocated/max allocated)5 minute input rate 0 bits/sec,0 packets/sec 5 minute output rate 0 bits/sec,0 packets/sec 0 packets input,0 bytes,0 no buffer Received 0 broadcasts 0 input errors,0 CRC,0 frame,0 overrun,0 ignored,0 abort 0 packets output,0 bytes,0 underruns 0 output errors,0 collisions,8 interface resets 0 output buffer failures,0 output buffers swapped out 0 carrier transitions DCD=down DSR=down DTR=down RTS=down CTS=down你现在浏览的是第二十六页,共41页故障分析分析分析:实际中的路由器是实际中的路由器是DTEDTE设备,必须通过设备,必须通过DCEDCE设备(如设备(如DSU/CSUDSU/CSU、ModemModem)等进行两个)等进行两个DTEDTE之间的通信,但是在实验室中之间的通信,但是在实验室中只能通过只能通过V.35 DCEV.35 DCE线(母头)来模拟实际中的线(母头)来模拟实际中的DCEDCE设备,故需要设备,故需要在在V.35 DCEV.35 DCE线连接的路由器的串口模式下配置时钟速率。通线连接的路由器的串口模式下配置时钟速率。通常指定为常指定为64K64K、128K128K等。等。查看接口类型查看接口类型 属于属于DCEDCE或或DTEDTE Router#Show controllers s0 Router#Show controllers s0你现在浏览的是第二十七页,共41页故障解决解决:在路由器Router1上增加如下配置l l Router1(config)#interface serial 0 Router1(config)#interface serial 0 !进入接口!进入接口S0S0配置模式配置模式l l Router1(config-if)#clock rate 64000 Router1(config-if)#clock rate 64000 !配置!配置Router1Router1的时钟频率(的时钟频率(DCEDCE)你现在浏览的是第二十八页,共41页故障现象172.16.1.0/24PC1PC2172.16.2.0/24172.16.3.0/24.1.11.1.2.2.22Router1Router2要实现PC1和PC2互相访问,在两台路由器上配置静态路由。配置完成后从PC1 ping PC2却不通。你现在浏览的是第二十九页,共41页故障分析当使用show run看到以下配置:Router1#show running-config !显示路由器Router1的全部配置Building configuration.Current configuration:!version 6.14(2)!hostname Router1!ip subnet-zero!interface FastEthernet0 ip address 172.16.1.1 255.255.255.0!interface Serial0 ip address 172.16.2.1 255.255.255.0 clock rate 64000!interface Serial1 no ip address shutdown!ip classless你现在浏览的是第三十页,共41页故障分析ip route 172.16.1.0 255.255.255.0 172.16.2.2!line con 0line aux 0line vty 0 4 login!end你现在浏览的是第三十一页,共41页故障分析Router2#show running-config !显示路由器Router2的全部配置Building configuration.Current configuration:!version 6.14(2)!hostname Router2!ip subnet-zero!interface FastEthernet0 ip address 172.16.3.2 255.255.255.0!interface Serial0 ip address 172.16.2.2 255.255.255.0!interface Serial1 no ip address shutdown!ip classless你现在浏览的是第三十二页,共41页故障分析ip route 172.16.3.0 255.255.255.0 172.16.2.1!line con 0line aux 0line vty 0 4 login!end发现在配置静态路由时都指向了本端直连的网段。在配置静态路由时,要指定如何到达非直连的网段。你现在浏览的是第三十三页,共41页故障解决解决:分别将route1 和 route2上的原静态路由删除分别添加下面命令l lroute1(config)#ip route 172.16.3.0 255.255.255.0 route1(config)#ip route 172.16.3.0 255.255.255.0 serial 0serial 0l lroute2(config)#ip route 172.16.1.0 255.255.255.0 route2(config)#ip route 172.16.1.0 255.255.255.0 serial 0serial 0你现在浏览的是第三十四页,共41页故障现象在公司的网络:172.18.3.0/24要连接到Internet时无法成功。你现在浏览的是第三十五页,共41页故障分析当在配置了当在配置了NATNAT的路由器上查看的路由器上查看R1#sh ip nat translations R1#sh ip nat translations Pro Inside global Inside local Outside local Outside globalPro Inside global Inside local Outside local Outside global 转换表中是空的,则怀疑是配置错误。通过转换表中是空的,则怀疑是配置错误。通过show runshow run查看配置文件。查看配置文件。Current configuration:Current configuration:version 6.14(2)version 6.14(2)hostname R1hostname R1ip subnet-zeroip subnet-zerointerface FastEthernet0interface FastEthernet0 ip address 172.18.3.254 255.255.255.0 ip address 172.18.3.254 255.255.255.0 ip nat outside ip nat outsideinterface FastEthernet1interface FastEthernet1ip address 200.24.5.8 255.255.255.0ip address 200.24.5.8 255.255.255.0 ip nat inside ip nat insideinterface FastEthernet2interface FastEthernet2 no ip address no ip address shutdown shutdowninterface FastEthernet3interface FastEthernet3 no ip address no ip address shutdown shutdowninterface Serial0interface Serial0no ip addressno ip address shutdown shutdowninterface Serial1interface Serial1 no ip address no ip address shutdown shutdown你现在浏览的是第三十六页,共41页故障分析ip nat pool to-internet 200.24.5.8 200.24.5.8 netmask ip nat pool to-internet 200.24.5.8 200.24.5.8 netmask 255.255.255.0255.255.255.0ip nat inside source list 1 pool to-internet overloadip nat inside source list 1 pool to-internet overloadip classlessip classlessaccess-list 1 permit 172.18.3.0 0.0.0.255access-list 1 permit 172.18.3.0 0.0.0.255!line con 0line con 0line aux 0line aux 0line vty 0 4line vty 0 4 login login!在拓扑中可以看出,在拓扑中可以看出,F0F0口连接的是内部网络,口连接的是内部网络,F1F1口连接的是口连接的是外部网络。而通过以上分析,发现配置中外部网络。而通过以上分析,发现配置中F0F0口配成了外网口,口配成了外网口,而而F1F1口配成了内网口,属于理解错误。口配成了内网口,属于理解错误。你现在浏览的是第三十七页,共41页故障解决解决:输入以下命令l linterface FastEthernet0interface FastEthernet0l lip nat insideip nat insidel linterface FastEthernet1interface FastEthernet1l lip nat outsideip nat outside你现在浏览的是第三十八页,共41页交换机常见问题分析交换机常见问题分析路由器常见问题分析客户端常见问题分析客户端常见问题分析课程议题你现在浏览的是第三十九页,共41页故障现象你现在浏览的是第四十页,共41页交换机常见问题分析路由器常见问题分析路由器常见问题分析客户端常见问题分析客户端常见问题分析课程回顾你现在浏览的是第四十一页,共41页