Operation Manual – Routing Protocol
H3C S3600 Series Ethernet Switches-Release 1510 Chapter 4
OSPF Configuration
4-29
[SwitchB-Vlan-interface1] quit
[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-Vlan-interface1] quit
[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
[SwitchD-Vlan-interface1] ip address 196.1.1.4 255.255.255.0
[SwitchD-Vlan-interface1] quit
[SwitchD] router id 4.4.4.4
[SwitchD] ospf
[SwitchD-ospf-1] area 0
[SwitchD-ospf-1-area-0.0.0.0] network 196.1.1.0 0.0.0.255
On SwitchA, run the display ospf peer command to display its OSPF peers. Note
that SwitchA has three peers.
The state of each peer is full, which means that adjacency is established between
SwitchA and each peer. SwitchA and SwitchC must establish adjacencies with all the
switches on the network so that they can serve as the DR and BDR respectively on
the network. SwitchA is DR, while SwitchC is BDR on the network. All the other
neighbors are DR others (This means that they are neither DRs nor BDRs).
# Change the priority of SwitchB to 200.
<SwitchB> system-view
[SwitchB] interface Vlan-interface 1
[SwitchB-Vlan-interface1] ospf dr-priority 200
On SwitchA, run the display ospf peer command to display its OSPF peers. Note
that the priority of SwitchB has been changed to 200, but it is still not the DR.
The DR is changed only when the current DR turn offline. Shut down SwitchA, and run
the display ospf peer command on SwitchD to display its peers. Note that the
original BDR (SwitchC) becomes the DR and SwitchB becomes BDR now.