@duyao
        
        2015-12-13T10:44:10.000000Z
        字数 16935
        阅读 1464
    At the first time, I used add all routers, switches and pcs, and set ip address and submask. Then I tried to useip route <network> <mask> <next hop> to set static routing table. After I set two neighbours,I decided to try my result.But I cannot ping each ohter at these networks.I got that.
PC>ping 219.17.100.5Pinging 219.17.100.5 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 219.17.100.5:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
So I used show ip routeto see my routing table. The amazing thing made me upset that I cannot find my static route on the table!!!
Router#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.5.5.0/24 is directly connected, FastEthernet0/0C 205.7.5.0/24 is directly connected, FastEthernet0/1
This was unbelievable! So I decide to new another one.
This time, I only built up two routers and those components. Then I add static routes. This time, they can be shown on the table. 
But I still cannot ping each other.
PC>ping 219.17.100.5Pinging 219.17.100.5 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 219.17.100.5:Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
So I searched the internet. I found this website. 
I follow those steps.
Perform the following steps when using Ping:
Ping the loopback address to verify that TCP/IP is installed and configured correctly on the local computer.
ping 127.0.0.1
If the loopback step fails, the IP stack is not responding. This might be because the TCP drivers are corrupted, the network adapter might not be working, or another service is interfering with IP.
Ping the IP address of the local computer to verify that it was added to the network correctly. Note that if the routing table is correct, this simply forwards the packet to the loopback address of 127.0.0.1.
ping < IP address of local host >
Ping the IP address of the default gateway to verify that the default gateway is functioning and that you can communicate with a local host on the local network.
ping < IP address of default gateway >
Ping the IP address of a remote host to verify that you can communicate through a router.
ping < IP address of remote host >
Ping the host name of a remote host to verify that you can resolve a remote host name.
ping < Host name of remote host >
Run a PathPing analysis to a remote host to verify that the routers on the way to the destination are operating correctly.
pathping < IP address of remote host >
After I try ping 127.0.0.1 successfully,I see the default gateway, I understood my error. I forgot the gateway!
I ping successfully after thoes errors.
Router(config)#hostname lab_alab_a(config)#interface FastEthernet0/0lab_a(config-if)#ip address 192.5.5.1 255.255.255.0lab_a(config-if)#no shutdownlab_a(config-if)#exitlab_a(config)#interface FastEthernet1/0lab_a(config-if)#ip address 205.7.5.1 255.255.255.0lab_a(config-if)#no shutdownlab_a(config-if)#exitlab_a(config)#interface Serial2/0lab_a(config-if)#ip address 201.100.11.1 255.255.255.0lab_a(config-if)#clock rate 4000000lab_a(config-if)#no shutdownlab_a(config-if)#exit//set static ip routinglab_a(config)#ip route 0.0.0.0 0.0.0.0 201.100.11.2
Router(config)#hostname lab_blab_b(config)#interface FastEthernet0/0lab_b(config-if)#ip address 219.17.100.1 255.255.255.0lab_b(config-if)#no shutdownlab_b(config-if)#exitlab_b(config)#interface Serial3/0lab_b(config-if)#clock rate 4000000lab_b(config-if)#ip address 201.100.11.2 255.255.255.0lab_b(config-if)#no shutdownlab_b(config-if)#exitlab_b(config)#interface Serial2/0lab_b(config-if)#clock rate 4000000lab_b(config-if)#ip address 199.6.13.1 255.255.255.0lab_b(config-if)#no shutdownlab_b(config-if)#exit//set static ip routinglab_b(config)#ip route 0.0.0.0 0.0.0.0 199.6.13.2lab_b(config)#ip route 205.7.5.0 255.255.255.0 201.100.11.1lab_b(config)#ip route 192.5.5.0 255.255.255.0 201.100.11.1
Router(config)#hostname lab_clab_c(config)#interface Serial3/0lab_c(config-if)#clock rate 4000000lab_c(config-if)#ip address 199.6.13.2 255.255.255.0lab_c(config-if)#no shutdownlab_c(config-if)#exitlab_c(config)#interface Serial2/0lab_c(config-if)#clock rate 4000000lab_c(config-if)#ip address 204.204.7.1 255.255.255.0lab_c(config-if)#no shutdownlab_c(config-if)#exitlab_c(config)#interface FastEthernet0/0lab_c(config-if)#ip address 223.8.151.1 255.255.255.0lab_c(config-if)#no shutdownlab_c(config-if)#exit//set static ip routinglab_c(config)#ip route 0.0.0.0 0.0.0.0 199.6.13.1lab_c(config)#ip route 210.93.105.0 255.255.255.0 204.204.7.2
Router(config)#hostname lab_dlab_d(config)#interface Serial3/0lab_d(config-if)#clock rate 4000000lab_d(config-if)#ip address 204.204.7.2 255.255.255.0lab_d(config-if)#no shutdownlab_d(config-if)#exitlab_d(config)#interface FastEthernet0/0lab_d(config-if)#ip address 210.93.105.1 255.255.255.0lab_d(config-if)#no shutdownlab_d(config-if)#exit//set static ip routinglab_d(config)#ip route 0.0.0.0 0.0.0.0 204.204.7.1lab_d(config)#
Router(config)#hostname lab_elab_e(config)#interface FastEthernet0/0lab_e(config-if)#ip address 210.93.105.2 255.255.255.0lab_e(config-if)#no shutdown
lab_a#show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 192.5.5.1 YES manual up upFastEthernet1/0 205.7.5.1 YES manual up upSerial2/0 201.100.11.1 YES manual up upSerial3/0 unassigned YES unset administratively down downFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down down
lab_b#show ip int briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 219.17.100.1 YES manual up upFastEthernet1/0 unassigned YES unset administratively down downSerial2/0 199.6.13.1 YES manual up upSerial3/0 201.100.11.2 YES manual up upFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down down
lab_c#show ip interface briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 223.8.151.1 YES manual up upFastEthernet1/0 unassigned YES unset administratively down downSerial2/0 204.204.7.1 YES manual up upSerial3/0 199.6.13.2 YES manual up upFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down down
lab_d#show ip int briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 210.93.105.1 YES manual up upFastEthernet1/0 unassigned YES unset administratively down downSerial2/0 unassigned YES unset administratively down downSerial3/0 204.204.7.2 YES manual up upFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down down
lab_e#show ip int briefInterface IP-Address OK? Method Status ProtocolFastEthernet0/0 210.93.105.2 YES manual up upFastEthernet1/0 unassigned YES unset administratively down downSerial2/0 unassigned YES unset administratively down downSerial3/0 unassigned YES unset administratively down downFastEthernet4/0 unassigned YES unset administratively down downFastEthernet5/0 unassigned YES unset administratively down down
lab_a#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 201.100.11.2 to network 0.0.0.0C 192.5.5.0/24 is directly connected, FastEthernet0/0C 201.100.11.0/24 is directly connected, Serial2/0C 205.7.5.0/24 is directly connected, FastEthernet1/0S* 0.0.0.0/0 [1/0] via 201.100.11.2
lab_b#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 199.6.13.2 to network 0.0.0.0S 192.5.5.0/24 [1/0] via 201.100.11.1C 199.6.13.0/24 is directly connected, Serial2/0C 201.100.11.0/24 is directly connected, Serial3/0S 205.7.5.0/24 [1/0] via 201.100.11.1C 219.17.100.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 199.6.13.2
lab_c#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 199.6.13.1 to network 0.0.0.0C 199.6.13.0/24 is directly connected, Serial3/0C 204.204.7.0/24 is directly connected, Serial2/0S 210.93.105.0/24 [1/0] via 204.204.7.2C 223.8.151.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 199.6.13.1
lab_d#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is 204.204.7.1 to network 0.0.0.0C 204.204.7.0/24 is directly connected, Serial3/0C 210.93.105.0/24 is directly connected, FastEthernet0/0S* 0.0.0.0/0 [1/0] via 204.204.7.1
lab_e#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 210.93.105.0/24 is directly connected, FastEthernet0/0
PC>ipconfigFastEthernet0 Connection:(default port)Link-local IPv6 Address.........: FE80::20A:F3FF:FE1D:BD1IP Address......................: 210.93.105.5Subnet Mask.....................: 255.255.255.0Default Gateway.................: 210.93.105.1PC>ping 210.93.105.1Pinging 210.93.105.1 with 32 bytes of data:Reply from 210.93.105.1: bytes=32 time=1ms TTL=255Reply from 210.93.105.1: bytes=32 time=0ms TTL=255Reply from 210.93.105.1: bytes=32 time=0ms TTL=255Reply from 210.93.105.1: bytes=32 time=0ms TTL=255Ping statistics for 210.93.105.1:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 0ms, Maximum = 1ms, Average = 0msPC>ping 205.7.5.5Pinging 205.7.5.5 with 32 bytes of data:Request timed out.Reply from 205.7.5.5: bytes=32 time=3ms TTL=124Reply from 205.7.5.5: bytes=32 time=3ms TTL=124Reply from 205.7.5.5: bytes=32 time=3ms TTL=124Ping statistics for 205.7.5.5:Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),Approximate round trip times in milli-seconds:Minimum = 3ms, Maximum = 3ms, Average = 3msPC>tracert 205.7.5.5Tracing route to 205.7.5.5 over a maximum of 30 hops:1 1 ms 0 ms 0 ms 210.93.105.12 1 ms 1 ms 0 ms 204.204.7.13 1 ms 1 ms 0 ms 199.6.13.14 0 ms 2 ms 1 ms 201.100.11.15 2 ms 1 ms 1 ms 205.7.5.5Trace complete.
I tried router rip to enables RIP as a routing protocol and configed with network w.x.y.z. w.x.y.zis the network number of the directly connected network you want to advertise. 
This time I got right at first try!
lab_a(config)#router riplab_a(config-router)#network 205.7.5.0lab_a(config-router)#network 192.5.5.0lab_a(config-router)#network 201.100.11.0
lab_b(config)#router riplab_b(config-router)#network 219.17.100.0lab_b(config-router)#network 201.100.11.0lab_b(config-router)#network 199.6.13.0
lab_c(config)#router riplab_c(config-router)#network 199.6.13.0lab_c(config-router)#network 204.204.7.0lab_c(config-router)#network 223.8.151.0
lab_d(config)#route riplab_d(config-router)#network 204.204.7.0lab_d(config-router)#network 210.93.105.0
lab_e(config)#router riplab_e(config-router)#network 210.93.105.0
The contents are same as staitc one. So those details will be skipped.
lab_a#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setC 192.5.5.0/24 is directly connected, FastEthernet0/0R 199.6.13.0/24 [120/1] via 201.100.11.2, 00:00:12, Serial2/0C 201.100.11.0/24 is directly connected, Serial2/0R 204.204.7.0/24 [120/2] via 201.100.11.2, 00:00:12, Serial2/0C 205.7.5.0/24 is directly connected, FastEthernet1/0R 210.93.105.0/24 [120/3] via 201.100.11.2, 00:00:12, Serial2/0R 219.17.100.0/24 [120/1] via 201.100.11.2, 00:00:12, Serial2/0R 223.8.151.0/24 [120/2] via 201.100.11.2, 00:00:12, Serial2/0
lab_b#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 192.5.5.0/24 [120/1] via 201.100.11.1, 00:00:09, Serial3/0C 199.6.13.0/24 is directly connected, Serial2/0C 201.100.11.0/24 is directly connected, Serial3/0R 204.204.7.0/24 [120/1] via 199.6.13.2, 00:00:26, Serial2/0R 205.7.5.0/24 [120/1] via 201.100.11.1, 00:00:09, Serial3/0R 210.93.105.0/24 [120/2] via 199.6.13.2, 00:00:26, Serial2/0C 219.17.100.0/24 is directly connected, FastEthernet0/0R 223.8.151.0/24 [120/1] via 199.6.13.2, 00:00:26, Serial2/0
lab_c#sh ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 192.5.5.0/24 [120/2] via 199.6.13.1, 00:00:09, Serial3/0C 199.6.13.0/24 is directly connected, Serial3/0R 201.100.11.0/24 [120/1] via 199.6.13.1, 00:00:09, Serial3/0C 204.204.7.0/24 is directly connected, Serial2/0R 205.7.5.0/24 [120/2] via 199.6.13.1, 00:00:09, Serial3/0R 210.93.105.0/24 [120/1] via 204.204.7.2, 00:00:07, Serial2/0R 219.17.100.0/24 [120/1] via 199.6.13.1, 00:00:09, Serial3/0C 223.8.151.0/24 is directly connected, FastEthernet0/0
lab_d#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 192.5.5.0/24 [120/3] via 204.204.7.1, 00:00:26, Serial3/0R 199.6.13.0/24 [120/1] via 204.204.7.1, 00:00:26, Serial3/0R 201.100.11.0/24 [120/2] via 204.204.7.1, 00:00:26, Serial3/0C 204.204.7.0/24 is directly connected, Serial3/0R 205.7.5.0/24 [120/3] via 204.204.7.1, 00:00:26, Serial3/0C 210.93.105.0/24 is directly connected, FastEthernet0/0R 219.17.100.0/24 [120/2] via 204.204.7.1, 00:00:26, Serial3/0R 223.8.151.0/24 [120/1] via 204.204.7.1, 00:00:26, Serial3/0lab_d#
lab_e#show ip routeCodes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGPi - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area* - candidate default, U - per-user static route, o - ODRP - periodic downloaded static routeGateway of last resort is not setR 192.5.5.0/24 [120/4] via 210.93.105.1, 00:00:14, FastEthernet0/0R 199.6.13.0/24 [120/2] via 210.93.105.1, 00:00:14, FastEthernet0/0R 201.100.11.0/24 [120/3] via 210.93.105.1, 00:00:14, FastEthernet0/0R 204.204.7.0/24 [120/1] via 210.93.105.1, 00:00:14, FastEthernet0/0R 205.7.5.0/24 [120/4] via 210.93.105.1, 00:00:14, FastEthernet0/0C 210.93.105.0/24 is directly connected, FastEthernet0/0R 219.17.100.0/24 [120/3] via 210.93.105.1, 00:00:14, FastEthernet0/0R 223.8.151.0/24 [120/2] via 210.93.105.1, 00:00:14, FastEthernet0/0
PC>ipconfigFastEthernet0 Connection:(default port)Link-local IPv6 Address.........: FE80::240:BFF:FE44:23EBIP Address......................: 210.93.105.5Subnet Mask.....................: 255.255.255.0Default Gateway.................: 210.93.105.1PC>ping 192.5.5.5Pinging 192.5.5.5 with 32 bytes of data:Reply from 192.5.5.5: bytes=32 time=3ms TTL=124Reply from 192.5.5.5: bytes=32 time=3ms TTL=124Reply from 192.5.5.5: bytes=32 time=3ms TTL=124Reply from 192.5.5.5: bytes=32 time=4ms TTL=124Ping statistics for 192.5.5.5:Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 3ms, Maximum = 4ms, Average = 3msPC>tracert 192.5.5.5Tracing route to 192.5.5.5 over a maximum of 30 hops:1 0 ms 0 ms 0 ms 210.93.105.12 0 ms 0 ms 1 ms 204.204.7.13 1 ms 1 ms 0 ms 199.6.13.14 2 ms 1 ms 8 ms 201.100.11.15 2 ms 1 ms 0 ms 192.5.5.5Trace complete.