配置OSPFv3的DR选择

如下图所示,R1的优先级最高为DR,R2优先级次高为BDR,R3不参与选举;
HuaWei ❀ 配置OSPFv3的DR选择_优先级
配置接口IPv6地址:

[r1]ipv6
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ipv6 enable
[r1-GigabitEthernet0/0/0]ipv6 address 1001::1/64

配置OSPFv3:

[r1]ospfv3 100
[r1-ospfv3-100]router-id 1.1.1.1
[r1-ospfv3-100]int g0/0/0
[r1-GigabitEthernet0/0/0]ospfv3 100 area 0

[r2]ospfv3 100
[r2-ospfv3-100]router-id 2.2.2
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospfv3 100 area 0

[r3]ospfv3 100
[r3-ospfv3-100]router-id 3.3.3.3
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospfv3 100 area 0

修改接口选举优先级:

[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ospfv3 dr-priority 100

[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ospfv3 dr-priority 80

[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ospfv3 dr-priority 0

查看配置结果:

[r3]display ospfv3 peer 
OSPFv3 Process (100)
OSPFv3 Area (0.0.0.0)
Neighbor ID Pri State Dead Time Interface Instance ID
1.1.1.1 80 Full/Backup 00:00:37 GE0/0/0 0
2.2.2.2 100 Full/DR 00:00:37 GE0/0/0 0