@duyao
2015-12-13T10:44:10.000000Z
字数 16935
阅读 1375
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.5
Pinging 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 route
to see my routing table. The amazing thing made me upset that I cannot find my static route on the table!!!
Router#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.5.5.0/24 is directly connected, FastEthernet0/0
C 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.5
Pinging 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_a
lab_a(config)#interface FastEthernet0/0
lab_a(config-if)#ip address 192.5.5.1 255.255.255.0
lab_a(config-if)#no shutdown
lab_a(config-if)#exit
lab_a(config)#interface FastEthernet1/0
lab_a(config-if)#ip address 205.7.5.1 255.255.255.0
lab_a(config-if)#no shutdown
lab_a(config-if)#exit
lab_a(config)#interface Serial2/0
lab_a(config-if)#ip address 201.100.11.1 255.255.255.0
lab_a(config-if)#clock rate 4000000
lab_a(config-if)#no shutdown
lab_a(config-if)#exit
//set static ip routing
lab_a(config)#ip route 0.0.0.0 0.0.0.0 201.100.11.2
Router(config)#hostname lab_b
lab_b(config)#interface FastEthernet0/0
lab_b(config-if)#ip address 219.17.100.1 255.255.255.0
lab_b(config-if)#no shutdown
lab_b(config-if)#exit
lab_b(config)#interface Serial3/0
lab_b(config-if)#clock rate 4000000
lab_b(config-if)#ip address 201.100.11.2 255.255.255.0
lab_b(config-if)#no shutdown
lab_b(config-if)#exit
lab_b(config)#interface Serial2/0
lab_b(config-if)#clock rate 4000000
lab_b(config-if)#ip address 199.6.13.1 255.255.255.0
lab_b(config-if)#no shutdown
lab_b(config-if)#exit
//set static ip routing
lab_b(config)#ip route 0.0.0.0 0.0.0.0 199.6.13.2
lab_b(config)#ip route 205.7.5.0 255.255.255.0 201.100.11.1
lab_b(config)#ip route 192.5.5.0 255.255.255.0 201.100.11.1
Router(config)#hostname lab_c
lab_c(config)#interface Serial3/0
lab_c(config-if)#clock rate 4000000
lab_c(config-if)#ip address 199.6.13.2 255.255.255.0
lab_c(config-if)#no shutdown
lab_c(config-if)#exit
lab_c(config)#interface Serial2/0
lab_c(config-if)#clock rate 4000000
lab_c(config-if)#ip address 204.204.7.1 255.255.255.0
lab_c(config-if)#no shutdown
lab_c(config-if)#exit
lab_c(config)#interface FastEthernet0/0
lab_c(config-if)#ip address 223.8.151.1 255.255.255.0
lab_c(config-if)#no shutdown
lab_c(config-if)#exit
//set static ip routing
lab_c(config)#ip route 0.0.0.0 0.0.0.0 199.6.13.1
lab_c(config)#ip route 210.93.105.0 255.255.255.0 204.204.7.2
Router(config)#hostname lab_d
lab_d(config)#interface Serial3/0
lab_d(config-if)#clock rate 4000000
lab_d(config-if)#ip address 204.204.7.2 255.255.255.0
lab_d(config-if)#no shutdown
lab_d(config-if)#exit
lab_d(config)#interface FastEthernet0/0
lab_d(config-if)#ip address 210.93.105.1 255.255.255.0
lab_d(config-if)#no shutdown
lab_d(config-if)#exit
//set static ip routing
lab_d(config)#ip route 0.0.0.0 0.0.0.0 204.204.7.1
lab_d(config)#
Router(config)#hostname lab_e
lab_e(config)#interface FastEthernet0/0
lab_e(config-if)#ip address 210.93.105.2 255.255.255.0
lab_e(config-if)#no shutdown
lab_a#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.5.5.1 YES manual up up
FastEthernet1/0 205.7.5.1 YES manual up up
Serial2/0 201.100.11.1 YES manual up up
Serial3/0 unassigned YES unset administratively down down
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
lab_b#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 219.17.100.1 YES manual up up
FastEthernet1/0 unassigned YES unset administratively down down
Serial2/0 199.6.13.1 YES manual up up
Serial3/0 201.100.11.2 YES manual up up
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
lab_c#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 223.8.151.1 YES manual up up
FastEthernet1/0 unassigned YES unset administratively down down
Serial2/0 204.204.7.1 YES manual up up
Serial3/0 199.6.13.2 YES manual up up
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
lab_d#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 210.93.105.1 YES manual up up
FastEthernet1/0 unassigned YES unset administratively down down
Serial2/0 unassigned YES unset administratively down down
Serial3/0 204.204.7.2 YES manual up up
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
lab_e#show ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 210.93.105.2 YES manual up up
FastEthernet1/0 unassigned YES unset administratively down down
Serial2/0 unassigned YES unset administratively down down
Serial3/0 unassigned YES unset administratively down down
FastEthernet4/0 unassigned YES unset administratively down down
FastEthernet5/0 unassigned YES unset administratively down down
lab_a#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is 201.100.11.2 to network 0.0.0.0
C 192.5.5.0/24 is directly connected, FastEthernet0/0
C 201.100.11.0/24 is directly connected, Serial2/0
C 205.7.5.0/24 is directly connected, FastEthernet1/0
S* 0.0.0.0/0 [1/0] via 201.100.11.2
lab_b#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is 199.6.13.2 to network 0.0.0.0
S 192.5.5.0/24 [1/0] via 201.100.11.1
C 199.6.13.0/24 is directly connected, Serial2/0
C 201.100.11.0/24 is directly connected, Serial3/0
S 205.7.5.0/24 [1/0] via 201.100.11.1
C 219.17.100.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 199.6.13.2
lab_c#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is 199.6.13.1 to network 0.0.0.0
C 199.6.13.0/24 is directly connected, Serial3/0
C 204.204.7.0/24 is directly connected, Serial2/0
S 210.93.105.0/24 [1/0] via 204.204.7.2
C 223.8.151.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 199.6.13.1
lab_d#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is 204.204.7.1 to network 0.0.0.0
C 204.204.7.0/24 is directly connected, Serial3/0
C 210.93.105.0/24 is directly connected, FastEthernet0/0
S* 0.0.0.0/0 [1/0] via 204.204.7.1
lab_e#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 210.93.105.0/24 is directly connected, FastEthernet0/0
PC>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::20A:F3FF:FE1D:BD1
IP Address......................: 210.93.105.5
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 210.93.105.1
PC>ping 210.93.105.1
Pinging 210.93.105.1 with 32 bytes of data:
Reply from 210.93.105.1: bytes=32 time=1ms TTL=255
Reply from 210.93.105.1: bytes=32 time=0ms TTL=255
Reply from 210.93.105.1: bytes=32 time=0ms TTL=255
Reply from 210.93.105.1: bytes=32 time=0ms TTL=255
Ping 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 = 0ms
PC>ping 205.7.5.5
Pinging 205.7.5.5 with 32 bytes of data:
Request timed out.
Reply from 205.7.5.5: bytes=32 time=3ms TTL=124
Reply from 205.7.5.5: bytes=32 time=3ms TTL=124
Reply from 205.7.5.5: bytes=32 time=3ms TTL=124
Ping 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 = 3ms
PC>tracert 205.7.5.5
Tracing route to 205.7.5.5 over a maximum of 30 hops:
1 1 ms 0 ms 0 ms 210.93.105.1
2 1 ms 1 ms 0 ms 204.204.7.1
3 1 ms 1 ms 0 ms 199.6.13.1
4 0 ms 2 ms 1 ms 201.100.11.1
5 2 ms 1 ms 1 ms 205.7.5.5
Trace complete.
I tried router rip
to enables RIP as a routing protocol and configed with network w.x.y.z
. w.x.y.z
is the network number of the directly connected network you want to advertise.
This time I got right at first try!
lab_a(config)#router rip
lab_a(config-router)#network 205.7.5.0
lab_a(config-router)#network 192.5.5.0
lab_a(config-router)#network 201.100.11.0
lab_b(config)#router rip
lab_b(config-router)#network 219.17.100.0
lab_b(config-router)#network 201.100.11.0
lab_b(config-router)#network 199.6.13.0
lab_c(config)#router rip
lab_c(config-router)#network 199.6.13.0
lab_c(config-router)#network 204.204.7.0
lab_c(config-router)#network 223.8.151.0
lab_d(config)#route rip
lab_d(config-router)#network 204.204.7.0
lab_d(config-router)#network 210.93.105.0
lab_e(config)#router rip
lab_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 route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
C 192.5.5.0/24 is directly connected, FastEthernet0/0
R 199.6.13.0/24 [120/1] via 201.100.11.2, 00:00:12, Serial2/0
C 201.100.11.0/24 is directly connected, Serial2/0
R 204.204.7.0/24 [120/2] via 201.100.11.2, 00:00:12, Serial2/0
C 205.7.5.0/24 is directly connected, FastEthernet1/0
R 210.93.105.0/24 [120/3] via 201.100.11.2, 00:00:12, Serial2/0
R 219.17.100.0/24 [120/1] via 201.100.11.2, 00:00:12, Serial2/0
R 223.8.151.0/24 [120/2] via 201.100.11.2, 00:00:12, Serial2/0
lab_b#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
R 192.5.5.0/24 [120/1] via 201.100.11.1, 00:00:09, Serial3/0
C 199.6.13.0/24 is directly connected, Serial2/0
C 201.100.11.0/24 is directly connected, Serial3/0
R 204.204.7.0/24 [120/1] via 199.6.13.2, 00:00:26, Serial2/0
R 205.7.5.0/24 [120/1] via 201.100.11.1, 00:00:09, Serial3/0
R 210.93.105.0/24 [120/2] via 199.6.13.2, 00:00:26, Serial2/0
C 219.17.100.0/24 is directly connected, FastEthernet0/0
R 223.8.151.0/24 [120/1] via 199.6.13.2, 00:00:26, Serial2/0
lab_c#sh ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
R 192.5.5.0/24 [120/2] via 199.6.13.1, 00:00:09, Serial3/0
C 199.6.13.0/24 is directly connected, Serial3/0
R 201.100.11.0/24 [120/1] via 199.6.13.1, 00:00:09, Serial3/0
C 204.204.7.0/24 is directly connected, Serial2/0
R 205.7.5.0/24 [120/2] via 199.6.13.1, 00:00:09, Serial3/0
R 210.93.105.0/24 [120/1] via 204.204.7.2, 00:00:07, Serial2/0
R 219.17.100.0/24 [120/1] via 199.6.13.1, 00:00:09, Serial3/0
C 223.8.151.0/24 is directly connected, FastEthernet0/0
lab_d#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
R 192.5.5.0/24 [120/3] via 204.204.7.1, 00:00:26, Serial3/0
R 199.6.13.0/24 [120/1] via 204.204.7.1, 00:00:26, Serial3/0
R 201.100.11.0/24 [120/2] via 204.204.7.1, 00:00:26, Serial3/0
C 204.204.7.0/24 is directly connected, Serial3/0
R 205.7.5.0/24 [120/3] via 204.204.7.1, 00:00:26, Serial3/0
C 210.93.105.0/24 is directly connected, FastEthernet0/0
R 219.17.100.0/24 [120/2] via 204.204.7.1, 00:00:26, Serial3/0
R 223.8.151.0/24 [120/1] via 204.204.7.1, 00:00:26, Serial3/0
lab_d#
lab_e#show ip route
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - 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 - ODR
P - periodic downloaded static route
Gateway of last resort is not set
R 192.5.5.0/24 [120/4] via 210.93.105.1, 00:00:14, FastEthernet0/0
R 199.6.13.0/24 [120/2] via 210.93.105.1, 00:00:14, FastEthernet0/0
R 201.100.11.0/24 [120/3] via 210.93.105.1, 00:00:14, FastEthernet0/0
R 204.204.7.0/24 [120/1] via 210.93.105.1, 00:00:14, FastEthernet0/0
R 205.7.5.0/24 [120/4] via 210.93.105.1, 00:00:14, FastEthernet0/0
C 210.93.105.0/24 is directly connected, FastEthernet0/0
R 219.17.100.0/24 [120/3] via 210.93.105.1, 00:00:14, FastEthernet0/0
R 223.8.151.0/24 [120/2] via 210.93.105.1, 00:00:14, FastEthernet0/0
PC>ipconfig
FastEthernet0 Connection:(default port)
Link-local IPv6 Address.........: FE80::240:BFF:FE44:23EB
IP Address......................: 210.93.105.5
Subnet Mask.....................: 255.255.255.0
Default Gateway.................: 210.93.105.1
PC>ping 192.5.5.5
Pinging 192.5.5.5 with 32 bytes of data:
Reply from 192.5.5.5: bytes=32 time=3ms TTL=124
Reply from 192.5.5.5: bytes=32 time=3ms TTL=124
Reply from 192.5.5.5: bytes=32 time=3ms TTL=124
Reply from 192.5.5.5: bytes=32 time=4ms TTL=124
Ping 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 = 3ms
PC>tracert 192.5.5.5
Tracing route to 192.5.5.5 over a maximum of 30 hops:
1 0 ms 0 ms 0 ms 210.93.105.1
2 0 ms 0 ms 1 ms 204.204.7.1
3 1 ms 1 ms 0 ms 199.6.13.1
4 2 ms 1 ms 8 ms 201.100.11.1
5 2 ms 1 ms 0 ms 192.5.5.5
Trace complete.