API Guide
This system is a candidate BSR
Candidate BSR address: 11.1.1.8, priority: 255, hash mask length: 31
2. (可选)配置 BSR 计时器。
OS10(config)# ip pim bsr-candidate-timers ethernet 1/1/9 advt-interval 40
要查看 BSR 计时器值,请执行以下操作:
OS10# show ip pim bsr-router
This system is the Bootstrap Router (v2)
BSR address: 10.1.1.8
BSR Priority: 255, Hash mask length: 31
Next bootstrap message in 00:00:39
This system is a candidate BSR
Candidate BSR address: 11.1.1.8, priority: 255, hash mask length: 31
3. 配置候选 RP。
OS10# configure terminal
OS10(config)# interface loopback 10
OS10(conf-if-lo-10)# ip address 10.1.2.8/24
OS10(conf-if-lo-10)# no shutdown
OS10(conf-if-lo-10)# exit
OS10(config)# ip access-list acl-rp
OS10(config-ipv4-acl)# permit ip any 225.1.1.0/24
OS10(config)# ip pim rp-candidate loopback 10 priority 23 acl acl-rp
注: 系统不会覆盖候选 RP 配置。您必须删除该条目并进行重新配置。例如,在使用优先级配置候选 RP 并将 ACL 与其关联
后,要重置优先级并将 ACL 与候选 RP 取消关联,或将候选 RP 重置为默认值,则必须使用 no ip pim rp-candidate
命令并重新配置候选 RP。
要查看候选 RP、候选 BSR 和选举的 BSR,请执行以下操作:
OS10# show ip pim bsr-router
This system is the Bootstrap Router (v2)
BSR address: 10.1.1.8
BSR Priority: 255, Hash mask length: 31
Next bootstrap message in 00:00:20
This system is a candidate BSR
Candidate BSR address: 10.1.1.8, priority: 255, hash mask length: 31
Next Cand_RP_advertisement in 00:00:50
RP: 10.1.2.8(loopback10)
要查看 RP 映射详细信息,请执行以下操作:
OS10# show ip pim rp mapping
Group(s) : 225.1.1.0/24
RP : 10.1.2.8, v2
Info source: 10.1.1.8, via bootstrap, priority 0
expires: 00:00:00
4. (可选)配置 RP 计时器。
OS10(config)# ip pim rp-candidate-timers loopback 10 advt-interval 10 hold-time 25
要查看候选 RP 详细信息:
OS10# show ip pim bsr-router
This system is the Bootstrap Router (v2)
BSR address: 10.1.1.8
BSR Priority: 255, Hash mask length: 31
Next bootstrap message in 00:00:00
This system is a candidate BSR
756
多播