Tuning and optimizing ospf networks, Configuration prerequisites, Ospf dr election configuration example – H3C Technologies H3C S12500-X Series Switches User Manual
Page 122
108
10.3.1.0/24 10 Transit 10.3.1.2 10.3.1.1 0.0.0.2
10.4.1.0/24 25 Inter 10.3.1.1 10.3.1.1 0.0.0.2
10.5.1.0/24 10 Stub 10.5.1.1 10.5.1.1 0.0.0.2
10.1.1.0/24 12 Inter 10.3.1.1 10.3.1.1 0.0.0.2
Routing for ASEs
Destination Cost Type Tag NextHop AdvRouter
3.1.3.0/24 1 Type2 1 10.3.1.1 10.2.1.1
Total Nets: 6
Intra Area: 2 Inter Area: 3 ASE: 1 NSSA: 0
The output shows an external route imported from the NSSA area exists on Switch D.
241B
OSPF DR election configuration example
513B
Network requirements
•
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 27 Network diagram
514B
Configuration procedure
1.
Configure IP addresses for interfaces. (Details not shown.)
2.
Enable OSPF:
# Configure Switch A.
[SwitchA] router id 1.1.1.1
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[SwitchA-ospf-1-area-0.0.0.0] quit
[SwitchA-ospf-1] quit
# Configure Switch B.
[SwitchB] router id 2.2.2.2
[SwitchB] ospf