
98
--- Ping statistics for 10.4.1.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 0.779/1.408/1.702/0.323 ms
OSPF route redistribution configuration example
Network requirements
•
Enable OSPF on all the routers.
•
Split the AS into three areas.
•
Configure Router A and Router B as ABRs.
•
Configure Router C as an ASBR to redistribute external routes (static routes).
Figure 23
Network diagram
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Enable OSPF (see "
Basic OSPF configuration example
").
3.
Configure OSPF to redistribute routes:
# On Router C, configure a static route destined for network 3.1.2.0/24.
<RouterC> system-view
[RouterC] ip route-static 3.1.2.1 24 10.4.1.2
# On Router C, configure OSPF to redistribute the static route.
[RouterC] ospf 1
[RouterC-ospf-1] import-route static
Verifying the configuration
# Display the ABR/ASBR information on Router D.
<RouterD> display ospf abr-asbr
OSPF Process 1 with Router ID 10.5.1.1
Routing Table to ABR and ASBR
Type Destination Area Cost Nexthop RtType
Intra 10.3.1.1 0.0.0.2 10 10.3.1.1 ABR
Inter 10.4.1.1 0.0.0.2 22 10.3.1.1 ASBR
Area 0
Area 1
Stub
Area 2
Router C
Eth1/1
10.1.1.2/24
Eth1/1
10.1.1.1/24
Eth1/2
10.4.1.1/24
Eth1/1
10.2.1.2/24
Router B
Eth1/2
10.3.1.1/24
Eth1/1
10.3.1.2/24
Router A
Eth1/2
10.2.1.1/24
Eth1/2
10.5.1.1/24
Router D