Information Technology Reference
In-Depth Information
R2(config)# ip route 192.168.2.0 255.255.255.0 192.168.1.1
R2(config)#
View the routing table to verify the new static route entry.
Step 5.
Notice that the route is coded with an S , which means the route is a static route.
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, * - candidate
default
U - per-user static route, o - ODR
Gateway of last resort is not set
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, FastEthernet0/0
C 172.16.2.0 is directly connected, Serial0/0/0
C 192.168.1.0/24 is directly connected, Serial0/0/1
S 192.168.2.0/24 [1/0] via 192.168.1.1
Use ping to check connectivity between the host PC3 and the host PC2.
Step 6.
From the host PC3, is it possible to ping the host PC2? yes
This ping should be successful.
Task 9: Configure a Static Route Using an Exit Interface
To configure static routes with an exit interface specified, use the following syntax:
Router(config)# ip route network-address subnet-mask exit-interface
where:
network-address indicates the destination network address of the remote network to be added to
the routing table.
subnet-mask indicates the subnet mask of the remote network to be added to the routing table.
The subnet mask can be modified to summarize a group of networks.
exit-interface indicates the outgoing interface that would be used in forwarding packets to the
destination network.
On the R3 router, configure a static route.
Step 1.
On the R3 router, configure a static route to the 172.16.2.0 network using the Serial 0/0/0
interface of the R3 router as the exit interface.
R3(config)# ip route 172.16.2.0 255.255.255.0 Serial0/0/1
R3(config)#
Search WWH ::




Custom Search