[SwitchA-Vlan-interface100] ospfv3 1 area 0
[SwitchA-Vlan-interface100] quit
# Configure Switch B.
<SwitchB> system-view
[SwitchB] ipv6
[SwitchB] ospfv3
[SwitchB-ospfv3-1] router-id 2.2.2.2
[SwitchB-ospfv3-1] quit
[SwitchB] interface vlan-interface 200
[SwitchB-Vlan-interface200] ospfv3 1 area 0
[SwitchB-Vlan-interface200] quit
# Configure Switch C.
<SwitchC> system-view
[SwitchC] ipv6
[SwitchC] ospfv3
[SwitchC-ospfv3-1] router-id 3.3.3.3
[SwitchC-ospfv3-1] quit
[SwitchC] interface vlan-interface 100
[SwitchC-Vlan-interface100] ospfv3 1 area 0
[SwitchC-Vlan-interface100] quit
# Configure Switch D.
<SwitchD> system-view
[SwitchD] ipv6
[SwitchD] ospfv3
[SwitchD-ospfv3-1] router-id 4.4.4.4
[SwitchD-ospfv3-1] quit
[SwitchD] interface vlan-interface 200
[SwitchD-Vlan-interface200] ospfv3 1 area 0
[SwitchD-Vlan-interface200] quit
# Display neighbor information on Switch A. You can find the switches have the same default DR
priority 1. In this case, the switch with the highest Router ID is elected as the DR. Therefore, Switch D
is the DR, and Switch C is the BDR.
[SwitchA] display ospfv3 peer
OSPFv3 Area ID 0.0.0.0 (Process 1)
----------------------------------------------------------------------
Neighbor ID
Pri
2.2.2.2
1
2-Way/DROther
3.3.3.3
1
Full/Backup
4.4.4.4
1
Full/DR
# Display neighbor information on Switch D. You can find the neighbor states are all full.
[SwitchD] display ospfv3 peer
OSPFv3 Area ID 0.0.0.0 (Process 1)
----------------------------------------------------------------------
Neighbor ID
Pri
1.1.1.1
1
Full/DROther
2.2.2.2
1
Full/DROther
3.3.3.3
1
Full/Backup
3)
Configure DR priorities for interfaces.
# Configure the DR priority of VLAN-interface 100 as 100 on Switch A.
State
Dead Time
00:00:36
00:00:35
00:00:33
State
Dead Time
00:00:30
00:00:37
00:00:31
9-22
Interface
Instance ID
Vlan200
0
Vlan100
0
Vlan200
0
Interface
Instance ID
Vlan100
0
Vlan200
0
Vlan100
0