393
# Configure Router C: enable OSPFv3, and specify the router ID as 3.3.3.3.
<RouterC> system-view
[RouterC] ospfv3
[RouterC-ospfv3-1] router-id 3.3.3.3
[RouterC-ospfv3-1] quit
[RouterC] interface gigabitethernet 1/0
[RouterC-GigabitEthernet1/0] ospfv3 1 area 0
[RouterC-GigabitEthernet1/0] quit
# Configure Router D: enable OSPFv3, and specify the router ID as 4.4.4.4.
<RouterD> system-view
[RouterD] ospfv3
[RouterD-ospfv3-1] router-id 4.4.4.4
[RouterD-ospfv3-1] quit
[RouterD] interface gigabitethernet 1/0
[RouterD-GigabitEthernet1/0] ospfv3 1 area 0
[RouterD-GigabitEthernet1/0] quit
# Display neighbors on Router A. The routers have the same default router priority 1, so Router D
(the router with the highest Router ID) is elected as the DR, and Router C is the BDR.
[RouterA] display ospfv3 peer
OSPFv3 Process 1 with Router ID 1.1.1.1
Area: 0.0.0.0
-------------------------------------------------------------------------
Router ID Pri State Dead-Time InstID Interface
2.2.2.2 1 2-Way/DROther 00:00:36 0 GE1/0
3.3.3.3 1 Full/BDR 00:00:35 0 GE1/0
4.4.4.4 1 Full/DR 00:00:33 0 GE1/0
# Display neighbors on Router D. The neighbor states are all full.
[RouterD] display ospfv3 peer
OSPFv3 Process 1 with Router ID 4.4.4.4
Area: 0.0.0.0
-------------------------------------------------------------------------
Router ID Pri State Dead-Time InstID Interface
1.1.1.1 1 Full/DROther 00:00:30 0 GE1/0
2.2.2.2 1 Full/DROther 00:00:37 0 GE1/0
3.3.3.3 1 Full/BDR 00:00:31 0 GE1/0
3.
Configure router priorities for interfaces:
# Specify the router priority for the interface GigabitEthernet 1/0 of Router A as 100.
[RouterA] interface gigabitethernet 1/0
[RouterA-GigabitEthernet1/0] ospfv3 dr-priority 100
[RouterA-GigabitEthernet1/0] quit
# Specify the router priority for the interface GigabitEthernet 1/0 of Router B as 0.
[RouterB] interface gigabitethernet 1/0
[RouterB-GigabitEthernet1/0] ospfv3 dr-priority 0