From PC-A, is it possible to ping the default gateway? yes
PC-A>ping 192.168.0.1
Pinging 192.168.0.1 with 32 bytes of data:
Reply from 192.168.0.1: bytes=32 time=1ms TTL=255
Reply from 192.168.0.1: bytes=32 time=0ms TTL=255
Reply from 192.168.0.1: bytes=32 time=0ms TTL=255
Reply from 192.168.0.1: bytes=32 time=14ms TTL=255
Ping statistics for 192.168.0.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 14ms, Average = 3ms
PC-A>
From PC-B, is it possible to ping the default gateway? yes
PC-B>ping 192.168.1.1
Pinging 192.168.1.1 with 32 bytes of data:
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Reply from 192.168.1.1: bytes=32 time=0ms TTL=255
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
PC-B>
From R1, is it possible to ping the S0/0/0 interface of R23? yes
R1#ping 10.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 10.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/12/19 ms
R1#
From PC-A, is it possible to ping PC-B? No
PC-A>ping 192.168.1.10
Pinging 192.168.1.10 with 32 bytes of data:
Reply from 192.168.0.1: Destination host unreachable.
Reply from 192.168.0.1: Destination host unreachable.
Reply from 192.168.0.1: Destination host unreachable.
Reply from 192.168.0.1: Destination host unreachable.
Ping statistics for 192.168.1.10:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC-A>
Step 5: Gather information.
Check the status of the interfaces on R1 with the show ip interface brief command.
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 192.168.0.1 YES manual up up
Serial0/0/0 10.1.1.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
R1#
Check the status of the interfaces on R2.
R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 unassigned YES unset administratively down down
FastEthernet0/1 192.168.1.1 YES manual up up
Serial0/0/0 10.1.1.2 YES manual up up
Loopback0 209.165.200.225 YES manual up up
Loopback1 198.133.219.1 YES manual up up
Vlan1 unassigned YES unset administratively down down
R2#
View the routing table information for R1 using the show ip route command.
R1#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
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/0/0
C 192.168.0.0/24 is directly connected, FastEthernet0/1
R1#
View the routing table information for R2.
R2#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
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
C 198.133.219.0/24 is directly connected, Loopback1
209.165.200.0/27 is subnetted, 1 subnets
C 209.165.200.224 is directly connected, Loopback0
R2#
Step 6: Configure Static Routes
On the R1 router, configure a static route to the 192.168.1.0 network using the IP address of the Serial 0/0/0 interface of R2 as the next-hop address. Write the command you used in the space provided.
R1(config)#ip route 192.168.1.0 255.255.255.0 10.1.1.2
R1(config)#^Z
R1#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
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/0/0
C 192.168.0.0/24 is directly connected, FastEthernet0/1
S 192.168.1.0/24 [1/0] via 10.1.1.2
R1#
From host PC-A, is it possible to ping the host PC-B? No
PC-A>ping 192.168.1.10
Pinging 192.168.1.10 with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 192.168.1.10:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
PC-A>
These pings should fail. If the recursive static route is correctly configured, the ping arrives at PC-B. PC-B sends a ping reply back to PC-A. However, the ping reply is discarded at R2 because R2 does not have a return route to the 192.168.0.0 network in the routing table.
On the R2 router, configure a static route to the 192.168.0.0 network using S0/0/0 as the exit interface. Write the command you used in the space provided.
R2(config)#ip route 192.168.0.0 255.255.255.0 s0/0/0
R2(config)#^Z
R2#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
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/0/0
S 192.168.0.0/24 is directly connected, Serial0/0/0
C 192.168.1.0/24 is directly connected, FastEthernet0/1
C 198.133.219.0/24 is directly connected, Loopback1
209.165.200.0/27 is subnetted, 1 subnets
C 209.165.200.224 is directly connected, Loopback0
R2#
From host PC-A, is it possible to ping the host PC-B? Yes
PC-A>ping 192.168.1.10
Pinging 192.168.1.10 with 32 bytes of data:
Reply from 192.168.1.10: bytes=32 time=1ms TTL=126
Reply from 192.168.1.10: bytes=32 time=1ms TTL=126
Reply from 192.168.1.10: bytes=32 time=1ms TTL=126
Reply from 192.168.1.10: bytes=32 time=1ms TTL=126
Ping statistics for 192.168.1.10:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 1ms, Average = 1ms
PC-A>
On the R1 router, configure a static route to the 198.133.219.0 network.
On the R1 router, configure a static route to the 209.165.200.224 network on R2.
R1(config)#ip route 209.165.200.224 255.255.255.224 10.1.1.2
R1(config)#^Z
R1#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
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/0/0
C 192.168.0.0/24 is directly connected, FastEthernet0/1
S 192.168.1.0/24 [1/0] via 10.1.1.2
S 198.133.219.0/24 is directly connected, Serial0/0/0
209.165.200.0/27 is subnetted, 1 subnets
S 209.165.200.224 [1/0] via 10.1.1.2
R1#
Step 7: Remove static routes for loopback addresses.
On R1, use the no command to remove the static routes for the two loopback addresses from the routing table. Write the commands you used in the space provided.
Note: A static route can be removed with the no command without specifying the exit interface or nexthop ip address as displayed below.
R1(config)#no ip route 209.165.200.224 255.255.255.224
R1(config)#no ip route 198.133.219.0 255.255.255.0
Step 8: Configure and Verify a Default Route
Configure the R1 router with a default route using the exit interface of S0/0/0.
R1(config)#ip route 0.0.0.0 0.0.0.0 s0/0/0
R1(config)#^Z
R1#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 0.0.0.0 to network 0.0.0.0
10.0.0.0/30 is subnetted, 1 subnets
C 10.1.1.0 is directly connected, Serial0/0/0
C 192.168.0.0/24 is directly connected, FastEthernet0/1
S 192.168.1.0/24 [1/0] via 10.1.1.2
S* 0.0.0.0/0 is directly connected, Serial0/0/0
R1#
From host PC-A, is it possible to ping the 209.165.200.225? Yes
PC-A>ping 209.165.200.225
Pinging 209.165.200.225 with 32 bytes of data:
Reply from 209.165.200.225: bytes=32 time=2ms TTL=254
Reply from 209.165.200.225: bytes=32 time=2ms TTL=254
Reply from 209.165.200.225: bytes=32 time=2ms TTL=254
Reply from 209.165.200.225: bytes=32 time=1ms TTL=254
Ping statistics for 209.165.200.225:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 1ms, Maximum = 2ms, Average = 1ms
PC-A>
Keywords:
yaser rahmati , یاسر رحمتی , Configuring IPv4 Static , Default Routes , static route , Interface , IP Address , Subnet Mask , Default Gateway , router , switch , cisco , basic setting , Configure IP settings on the router , loopback , LAN , serial interface , show ip interface brief , show ip route , directly connected , next-hop address , recursive static route , ping , request time out , exit interface , next hop ip , loopback , loopback interface , Configure and Verify a Default Route