Information Technology Reference
In-Depth Information
Task 10: Redistribute an OSPF Default Route
Configure a loopback address on the R1 router to simulate a link to an ISP.
Step 1.
R1(config)# interface loopback1
%LINK-5-CHANGED: Interface Loopback1, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback1, changed state to
up
R1(config-if)# ip address 172.30.1.1 255.255.255.252
Configure a static default route on the R1 router.
Step 2.
Use the loopback address that has been configured to simulate a link to an ISP as the exit
interface:
R1(config)# ip route 0.0.0.0 0.0.0.0 loopback1
R1(config)#
Use the default-information originate command to include the static route in the OSPF
updates that are sent from the R1 router.
Step 3.
R1(config)# router ospf 1
R1(config-router)# default-information originate
R1(config-router)#
View the routing table on the R2 router to verify that the static default route is being redis-
tributed through OSPF.
Step 4.
R2# show ip route
<output omitted>
Gateway of last resort is 192.168.10.1 to network 0.0.0.0
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.2.2.2/32 is directly connected, Loopback0
C 10.10.10.0/24 is directly connected, FastEthernet0/0
172.16.0.0/16 is variably subnetted, 2 subnets, 2 masks
O 172.16.1.16/28 [110/1172] via 192.168.10.10, 00:29:28, Serial0/0/1
O 172.16.1.32/29 [110/782] via 192.168.10.10, 00:29:28, Serial0/0/1
192.168.10.0/30 is subnetted, 3 subnets
C 192.168.10.0 is directly connected, Serial0/0/0
O 192.168.10.4 [110/1171] via 192.168.10.10, 00:25:56, Serial0/0/1
C 192.168.10.8 is directly connected, Serial0/0/1
O*E2 0.0.0.0/0 [110/1] via 192.168.10.10, 00:01:11, Serial0/0/1
Search WWH ::




Custom Search