10.5.1.0/24
10.1.1.0/24
Total nets: 5
Intra area: 2
4.
Configure route redistribution:
# Configure Switch C to redistribute static routes.
[SwitchC] ip route-static 3.1.3.1 24 10.4.1.2
[SwitchC] ospf
[SwitchC-ospf-1] import-route static
[SwitchC-ospf-1] quit
# Display OSPF routing information on Switch D.
<SwitchD> display ospf routing
Routing for network
Destination
10.2.1.0/24
10.3.1.0/24
10.4.1.0/24
10.5.1.0/24
10.1.1.0/24
Routing for ASEs
Destination
3.1.3.0/24
Total nets: 6
Intra area: 2
The output shows that an external route imported from the NSSA area exists on Switch D.
OSPF DR election configuration example
Network requirements
As shown in
•
Enable OSPF on Switches A, B, C, and D on the same network.
•
Configure Switch A as the DR, and configure Switch C as the BDR.
17
5
Inter area: 3
OSPF Process 1 with Router ID 10.5.1.1
Routing Table
Topology base (MTID 0)
Cost
22
10
25
10
12
Cost
1
Inter area: 3
Figure
29:
Inter
10.2.1.1
Inter
10.2.1.1
ASE: 0
NSSA: 0
Type
NextHop
Inter
10.3.1.1
Transit 10.3.1.2
Inter
10.3.1.1
Stub
10.5.1.1
Inter
10.3.1.1
Type
Tag
Type2
1
ASE: 1
NSSA: 0
116
10.2.1.1
10.2.1.1
AdvRouter
10.3.1.1
10.3.1.1
10.3.1.1
10.5.1.1
10.3.1.1
NextHop
AdvRouter
10.3.1.1
10.2.1.1
0.0.0.1
0.0.0.1
Area
0.0.0.2
0.0.0.2
0.0.0.2
0.0.0.2
0.0.0.2