「Multicast」- PIM-Sparse Mode

  CREATED BY JENKINSBOT

静态 RP 配置

[Huawei] multicast routing-enable
[pim] static-rp x.x.x.x {ACL}  # 每台设备都要进行配置

参考设备手册,以获取更多细节。

动态 RP 配置

配置命令:

[AR3]display current-configuration interface 
[V200R003C00]
#
interface GigabitEthernet0/0/0
 ip address 192.168.2.253 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/1
 ip address 10.0.45.3 255.255.255.0 
 pim sm
#
interface GigabitEthernet0/0/2
#
interface NULL0
#
interface LoopBack0
 ip address 10.0.0.3 255.255.255.255 
 pim sm
#
return
--------------------------------------------------------------------------- C-RP
[AR3-pim]display this 
[V200R003C00]
#
pim
 c-rp LoopBack0
#
return
-------------------------------------------------------------------------- C-BSR
[AR5-pim]display this 
[V200R003C00]
#
pim
 c-bsr LoopBack0
#
return

查看信息:

[AR3-pim]display pim rp-info 
 VPN-Instance: public net
 PIM-SM BSR RP Number:2
 Group/MaskLen: 224.0.0.0/4
     RP: 10.0.0.2
     Priority: 0
     Uptime: 00:02:30
     Expires: 00:02:00
 Group/MaskLen: 224.0.0.0/4
     RP: 10.0.0.3 (local)
     Priority: 0
     Uptime: 00:08:02
     Expires: 00:02:00
	
[AR3-pim]display pim bsr-info 
 VPN-Instance: public net
 Elected AdminScoped BSR Count: 0
 Elected BSR Address: 10.0.0.4
     Priority: 30
     Hash mask length: 30
     State: Accept Preferred
     Scope: Not scoped
     Uptime: 00:09:09
     Expires: 00:01:16
     C-RP Count: 2
     
// 查看某个组播组使用的 RP 设备

[AR3-pim]display pim rp-info 239.1.1.3
 VPN-Instance: public net
 BSR RP Address is: 10.0.0.3
     Priority: 0
     Uptime: 00:09:39
     Expires: 00:02:23
 RP mapping for this group is: 10.0.0.3 (local host)

[AR3-pim]display pim rp-info 239.1.1.5
 VPN-Instance: public net
 BSR RP Address is: 10.0.0.2
     Priority: 0
     Uptime: 00:04:10
     Expires: 00:02:20
 RP mapping for this group is: 10.0.0.2