pim sm
#
ospf 1
area 0.0.0.0
network 10.110.1.0 0.0.0.255
network 192.168.1.0 0.0.0.255
network 192.168.2.0 0.0.0.255
#
return
1. 配置步骤
# 配置OSPF协议。
<RouterB> system-view
[RouterB] ospf 1
[RouterB-ospf-1] area 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 10.1.1.1 0.0.0.0
[RouterB-ospf-1-area-0.0.0.0] network 192.168.1.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] network 192.168.3.0 0.0.0.255
[RouterB-ospf-1-area-0.0.0.0] quit
[RouterB-ospf-1] quit
# 使能IP组播路由,并在各接口上使能PIM-SM。
[RouterB] multicast routing-enable
[RouterB] interface serial 2/1
[RouterB-Serial2/1] pim sm
[RouterB-Serial2/1] quit
[RouterB] interface serial 2/2
[RouterB-Serial2/2] pim sm
[RouterB-Serial2/2] quit
[RouterB] interface loopback 0
[RouterB-LoopBack0] pim sm
[RouterB-LoopBack0] quit
[RouterB] interface loopback 1
[RouterB-LoopBack1] pim sm
[RouterB-LoopBack1] quit
# 将Loopback1接口配置为C-BSR,将Loopback0接口配置为C-RP。
[RouterB] pim
[RouterB-pim] c-bsr loopback 1
[RouterB-pim] c-rp loopback 0
[RouterB-pim] quit
# 配置MSDP对等体。
[RouterB] msdp
[RouterB-msdp] originating-rp loopback 1
[RouterB-msdp] peer 10.2.2.2 connect-interface loopback 1
[RouterB-msdp] return
2. 配置文件
<RouterB> display current-configuration
#
sysname RouterB
#
multicast routing-enable
#
interface Serial2/1
link-protocol ppp
ip address 192.168.1.2 255.255.255.0
pim sm
#
interface Serial2/2
link-protocol ppp
ip address 192.168.3.1 255.255.255.0
pim sm
#
interface LoopBack0
ip address 1.1.1.1 255.255.255.255
pim sm
#
interface LoopBack1
ip address 10.1.1.1 255.255.255.255
pim sm
#
ospf 1
area 0.0.0.0
network 1.1.1.1 0.0.0.0
network 10.1.1.1 0.0.0.0
network 192.168.1.0 0.0.0.255
network 192.168.3.0 0.0.0.255
#
pim
c-bsr LoopBack1
c-rp LoopBack0
#
msdp
originating-rp LoopBack1
peer 10.2.2.2 connect-interface LoopBack1
#
return
1. 配置步骤
# 配置OSPF协议。
<RouterC> system-view
[RouterC] ospf 1
[RouterC-ospf-1] area 0.0.0.0
[RouterC-ospf-1-area-0.0.0.0] network 1.1.1.1 0.0.0.0
[RouterC-ospf-1-area-0.0.0.0] network 10.2.2.2 0.0.0.0
[RouterC-ospf-1-area-0.0.0.0] network 192.168.2.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] network 10.110.2.0 0.0.0.255
[RouterC-ospf-1-area-0.0.0.0] quit
[RouterC-ospf-1] quit
# 使能IP组播路由,在各接口上使能PIM-SM,并在主机侧接口上使能IGMP。
[RouterC] multicast routing-enable
[RouterC] interface ethernet 1/1
[RouterC-Ethernet1/1] pim sm
[RouterC-Ethernet1/1] igmp enable
[RouterC-Ethernet1/1] quit
[RouterC] interface serial 2/1
[RouterC-Serial2/1] pim sm
[RouterC-Serial2/1] quit
[RouterC] interface loopback 0
[RouterC-LoopBack0] pim sm
[RouterC-LoopBack0] quit
[RouterC] interface loopback 1
[RouterC-LoopBack1] pim sm
[RouterC-LoopBack1] quit
# 将Loopback1接口配置为C-BSR,将Loopback0接口配置为C-RP。
[RouterC] pim
[RouterC-pim] c-bsr loopback 1
[RouterC-pim] c-rp loopback 0
[RouterC-pim] quit
# 配置MSDP对等体。
[RouterC] msdp
[RouterC-msdp] originating-rp loopback 1
[RouterC-msdp] peer 10.1.1.1 connect-interface loopback 1
|