5.
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.
Figure 29 Network diagram
Switch A
DR
Vlan-int1
192.168.1.1/24
Vlan-int1
192.168.1.3/24
Switch C
OSPF Process 1 with Router ID 10.5.1.1
Routing Table
Cost
22
10
25
10
12
Cost
1
Inter area: 3
Figure
29:
Switch B
Vlan-int1
192.168.1.2/24
Vlan-int1
192.168.1.4/24
Switch D
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
BDR
115
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
Area
0.0.0.2
0.0.0.2
0.0.0.2
0.0.0.2
0.0.0.2