Operation Manual – Routing Protocol
Quidway S3900 Series Ethernet Switches-Release 1510 Chapter 4 OSPF Configuration
Huawei Technologies Proprietary
4-28
II. Network diagram
BDR
196.1.1.4/24
196.1.1.3/24
196.1.1.2/24
DR
Sw itch A
Sw itch D
Sw itch B
Sw itch C
1.1.1.1
4.4.4.4
3.3.3.3
2.2.2.2
196.1.1.1/24
BDR
196.1.1.4/24
196.1.1.3/24
196.1.1.2/24
DR
Sw itch A
Sw itch D
Sw itch B
Sw itch C
1.1.1.1
4.4.4.4
3.3.3.3
2.2.2.2
196.1.1.1/24
Figure 4-3 DR election based on OSPF priority
III. Configuration procedure
# Configure Switch A.
<Switch A> system-view
[Switch A] interface Vlan-interface 1
[Switch A-Vlan-interface1] ip address 196.1.1.1 255.255.255.0
[Switch A-Vlan-interface1] ospf dr-priority 100
[Switch A] router id 1.1.1.1
[Switch A] ospf
[Switch A-ospf-1] area 0
[Switch A-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255
# Configure Switch B.
<Switch B> system-view
[Switch B] interface Vlan-interface 1
[Switch B-Vlan-interface1] ip address 196.1.1.2 255.255.255.0
[Switch B-Vlan-interface1] ospf dr-priority 0
[Switch B] router id 2.2.2.2
[Switch B] ospf
[Switch B-ospf-1] area 0
[Switch B-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255
# Configure Switch C.
<Switch C> system-view
[Switch C] interface Vlan-interface 1
[Switch C-Vlan-interface1] ip address 196.1.1.3 255.255.255.0
[Switch C-Vlan-interface1] ospf dr-priority 2
[Switch C] router id 3.3.3.3
[Switch C] ospf