[RouterD] multicast routing-enable
[RouterD] interface ethernet 1/1
[RouterD-Ethernet1/1] pim sm
[RouterD-Ethernet1/1] igmp enable
[RouterD-Ethernet1/1] quit
[RouterD] interface serial 2/1
[RouterD-Serial2/1] pim sm
[RouterD-Serial2/1] quit
[RouterD] interface pos 5/1
[RouterD-Pos5/1] pim sm
[RouterD-Pos5/1] quit
[RouterD] interface loopback 0
[RouterD-LoopBack0] pim sm
[RouterD-LoopBack0] quit
# 配置BSR的服务边界。
[RouterD] interface serial 2/1
[RouterD-Serial2/1] pim bsr-boundary
[RouterD-Serial2/1] quit
[RouterD] interface pos 5/1
[RouterD-Pos5/1] pim bsr-boundary
[RouterD-Pos5/1] quit
# 将Loopback0接口配置为C-BSR和C-RP。
[RouterD] pim
[RouterD-pim] c-bsr loopback 0
[RouterD-pim] c-rp loopback 0
[RouterD-pim] quit
# 配置BGP协议和MBGP对等体,并引入直连和OSPF路由。
[RouterD] bgp 200
[RouterD-bgp] router-id 4.4.4.4
[RouterD-bgp] peer 192.168.4.1 as-number 100
[RouterD-bgp] peer 192.168.5.2 as-number 200
[RouterD-bgp] import-route direct
[RouterD-bgp] import-route ospf 1
[RouterD-bgp] ipv4-family multicast
[RouterD-bgp-af-mul] peer 192.168.4.1 enable
[RouterD-bgp-af-mul] peer 192.168.5.2 enable
[RouterD-bgp-af-mul] import-route direct
[RouterD-bgp-af-mul] import-route ospf 1
[RouterD-bgp-af-mul] quit
[RouterD-bgp] quit
# 配置MSDP对等体。
[RouterD] msdp
[RouterD-msdp] peer 192.168.4.1 connect-interface pos 5/1
[RouterD-msdp] peer 192.168.5.2 connect-interface serial 2/1
[RouterD-msdp] return
2. 配置文件
<RouterD> display current-configuration
#
sysname RouterD
#
multicast routing-enable
#
interface Ethernet1/1
port link-mode route
ip address 10.110.2.1 255.255.255.0
igmp enable
pim sm
#
interface Serial2/1
link-protocol ppp
ip address 192.168.5.1 255.255.255.0
pim bsr-boundary
pim sm
#
interface Pos5/1
link-protocol ppp
ip address 192.168.4.2 255.255.255.0
pim bsr-boundary
pim sm
#
interface LoopBack0
ip address 4.4.4.4 255.255.255.255
pim sm
#
bgp 200
router-id 4.4.4.4
import-route direct
import-route ospf 1
undo synchronization
peer 192.168.4.1 as-number 100
peer 192.168.5.2 as-number 200
#
ipv4-family multicast
import-route direct
import-route ospf 1
peer 192.168.4.1 enable
peer 192.168.5.2 enable
#
ospf 1
area 0.0.0.0
network 4.4.4.4 0.0.0.0
network 10.110.2.0 0.0.0.255
network 192.168.4.0 0.0.0.255
network 192.168.5.0 0.0.0.255
#
pim
c-bsr LoopBack0
c-rp LoopBack0
#
msdp
peer 192.168.4.1 connect-interface Pos5/1
peer 192.168.5.2 connect-interface Serial2/1
#
return
1. 配置步骤
# 配置OSPF协议。
<RouterE> system-view
[RouterE] ospf 1
[RouterE-ospf-1] area 0.0.0.0
[RouterE-ospf-1-area-0.0.0.0] network 5.5.5.5 0.0.0.0
[RouterE-ospf-1-area-0.0.0.0] network 192.168.5.0 0.0.0.255
[RouterE-ospf-1-area-0.0.0.0] network 192.168.6.0 0.0.0.255
[RouterE-ospf-1-area-0.0.0.0] quit
[RouterE-ospf-1] quit
# 使能IP组播路由,并在各接口上使能PIM-SM。
[RouterE] multicast routing-enable
[RouterE] interface serial 2/1
[RouterE-Serial2/1] pim sm
[RouterE-Serial2/1] quit
[RouterE] interface serial 2/2
[RouterE-Serial2/2] pim sm
[RouterE-Serial2/2] quit
[RouterE] interface loopback 0
[RouterE-LoopBack0] pim sm
[RouterE-LoopBack0] quit
14/17 首页 上一页 12 13 14 15 16 17 下一页 尾页 |