锐捷网管交换机OSPF v3 的 DR 选择配置举例

一、 组网需求
Device A、B、C在同一个广播网络中。
配置Device A的优先级为10,成为DR,Device B的优先级为5,成为BDR,Device C的优先级为0,不参与DR选
举。

二、组网图
 OSPFv3 的 DR 选择配置举例组网图

三、 配置要点
● 所有设备接口配置IPv6。
● 所有设备配置OSPFv3基本功能。
● 修改各个设备DR选举优先级。

四、 配置步骤
(1) OSPFv3基本功能配置。
# Device A的配置。
Device A> enable
Device A# configure terminal
Device A(config)# ipv6 router ospf 1
Device A(config-router)# router-id 1.1.1.1
Device A(config-router)# exit

# Device B的配置。
Device B> enable
Device B# configure terminal
Device B(config)# ipv6 router ospf 1
Device B(config-router)# router-id 2.2.2.2
Device B(config-router)# exit
# Device C的配置。
Device C> enable
Device C# configure terminal
Device C(config)# ipv6 router ospf 1
Device C(config-router)# router-id 3.3.3.3
Device C(config-router)# exit

(2) 配置接口IP,配置OSPFv3,并修改各个设备DR选举优先级。
# Device A的配置。
Device A(config)# interface gigabitethernet 0/1
Device A(config-if-GigabitEthernet 0/1)# ipv6 address 2001::1/64
Device A(config-if-GigabitEthernet 0/1)# ipv6 ospf 1 area 0
Device A(config-if-GigabitEthernet 0/1)# ipv6 ospf priority 10

# Device B的配置。
Device B(config)# interface gigabitethernet 0/1
Device B(config-if-GigabitEthernet 0/1)# ipv6 address 2001::2/64
Device B(config-if-GigabitEthernet 0/1)# ipv6 ospf 1 area 0
Device B(config-if-GigabitEthernet 0/1)# ipv6 ospf priority 5

# Device C的配置。
Device C(config)# interface gigabitethernet 0/1
Device C(config-if-GigabitEthernet 0/1)# ipv6 address 2001::3/64
Device C(config-if-GigabitEthernet 0/1)# ipv6 ospf 1 area 0
Device C(config-if-GigabitEthernet 0/1)# ipv6 ospf priority 0

五、验证配置结果
●在Device C上使用show ipv6 ospf interface命令查看DR和BDR
Device C# show ipv6 ospf interface
在Device C上使用show ipv6 ospf interface命令查看DR和BDR

●在Device A上使用show ipv6 ospf neighbor命令看到广播网络中的DROther为Device C。
Device A# show ipv6 ospf neighbor
在Device A上使用show ipv6 ospf neighbor命令看到广播网络中的DROther为Device C

六、配置文件
●Device A的配置文件。
!
interface gigabitethernet 0/1
ipv6 address 2001::1/64
ipv6 ospf priority 10
ipv6 ospf 1 area 0
!
ipv6 router ospf 1
router-id 1.1.1.1
graceful-restart
!

● Device B的配置文件。
!
interface gigabitethernet 0/1
ipv6 address 2001::2/64
ipv6 ospf priority 5
ipv6 ospf 1 area 0
!
ipv6 router ospf 1
router-id 2.2.2.2
graceful-restart
!

● Device C的配置文件。
!
interface gigabitethernet 0/1
ipv6 address 2001::3/64
ipv6 ospf priority 0
ipv6 ospf 1 area 0
!
ipv6 router ospf 1
router-id 3.3.3.3
graceful-restart
!

 

ICP备案号:晋ICP备18007549号-1
站长微信:15534641008