--- 10.4.1.1 ping statistics ---
5 packet(s) transmitted
5 packet(s) received
0.00% packet loss
round-trip min/avg/max = 1/1/2 ms
Configuring OSPF route redistribution
Network requirements
As shown in
Switch B act as ABRs to forward routes between areas. Switch C is configured as an ASBR to redistribute
external routes (static routes). Routing information is propagated properly in the AS.
Figure 34 Network diagram
Configuration procedure
Configure IP addresses for interfaces. (Details not shown.)
1.
Configure OSPF basic functions. (See
2.
Configure OSPF to redistribute routes:
3.
# On Switch C, configure a static route destined for network 3.1.2.0/24.
<SwitchC> system-view
[SwitchC] ip route-static 3.1.2.1 24 10.4.1.2
# On Switch C, configure OSPF to redistribute static routes.
[SwitchC] ospf 1
[SwitchC-ospf-1] import-route static
Verify the configuration:
4.
# Display the ABR/ASBR information of Switch D.
<SwitchD> display ospf abr-asbr
Type
Intra
Inter
# Display the OSPF routing table of Switch D.
Figure
34, all the switches run OSPF, and the AS is divided into three areas. Switch A and
OSPF Process 1 with Router ID 10.5.1.1
Routing Table to ABR and ASBR
Destination
10.3.1.1
10.4.1.1
"Configuring OSPF basic
Area
Cost
0.0.0.2
10
0.0.0.2
22
94
functions")
Nexthop
RtType
10.3.1.1
ABR
10.3.1.1
ASBR