3Com Switch 7750 Configuration Guide Guide
308 CHAPTER 34: OSPF CONFIGURATION
Network diagram
Figure 70 DR election based on OSPF priority
Configuration procedure
# Configure SwitchA.
<SwitchA> system-view
[SwitchA] interface Vlan-interface 1
[SwitchA-Vlan-interface1] ip address 196.1.1.1 255.255.255.0
[SwitchA-Vlan-interface1] ospf dr-priority 100
[SwitchA] router id 1.1.1.1
[SwitchA] ospf
[SwitchA-ospf-1] area 0
[SwitchA-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255
# Configure SwitchB.
<SwitchB> system-view
[SwitchB] interface Vlan-interface 1
[SwitchB-Vlan-interface1] ip address 196.1.1.2 255.255.255.0
[SwitchB-Vlan-interface1] ospf dr-priority 0
[SwitchB] router id 2.2.2.2
[SwitchB] ospf
[SwitchB-ospf-1] area 0
[SwitchB-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255
# Configure SwitchC.
<SwitchC> system-view
[SwitchC] interface Vlan-interface 1
[SwitchC-Vlan-interface1] ip address 196.1.1.3 255.255.255.0
[SwitchC-Vlan-interface1] ospf dr-priority 2
[SwitchC] router id 3.3.3.3
[SwitchC] ospf
[SwitchC-ospf-1] area 0
[SwitchC-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255
# Configure SwitchD.
<SwitchD> system-view
[SwitchD] interface Vlan-interface 1
BDR
196.1.1.4/24
196.1.1.3/24
196.1.1.2/24
DR
Sw itc h A
Sw itc h D
Sw itc h B
Sw itc h 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 itc h A
Sw itc h D
Sw itc h B
Sw itc h C
1.1.1.1
4.4.4.4
3.3.3.3
2.2.2.2
196.1.1.1/24