组网需求
- 接收者通过组播方式接收视频点播信息,接受者与组播源位于不同的自治系统
- 需要在自治系统之间传输组播路由信息
组网拓扑
配置思路
- 配置路由基本功能以及各个接口IP地址
- 配置MBGP对等体,建立域间组播路由
- 配置MBGP要发布的路由
- 使能各路由的组播地址
- 在各个AS内部部署PIM-SM基本功能,在主机侧接口使能IGMP功能
- 在域间相连接口上配置BSR服务边界
- 配置MSDP对等体,实现传输域间组播源信息的需求
配置命令
配置各个路由基本功能以及各个接口IP地址
Router A配置
1
2
3
4
5
6
7
8sys
sys Router A
int g0/0/0
ip add 10.1.1.1 30
int g0/0/1
ip add 10.10.10.1 30
int LoopBack 0
ip add 1.1.1.1 32
Router B配置
1
2
3
4
5
6
7
8
9
10sys
sys Router B
int g0/0/0
ip add 10.1.1.2 30
int g0/0/1
ip add 10.3.1.2 30
int g0/0/2
ip add 10.2.1.2 30
int LoopBack 0
ip add 2.2.2.2 32
Router C配置
1
2
3
4
5
6
7
8
9
10sys
sys Router C
int g0/0/0
ip add 10.4.1.1 30
int g0/0/1
ip add 10.168.1.1 30
int g0/0/2
ip add 10.2.1.1 30
int LoopBack 0
ip add 3.3.3.3 32
Router D配置
1
2
3
4
5
6
7
8sys
sys Router D
int g0/0/0
ip add 10.4.1.2 30
int g0/0/1
ip add 10.3.1.1 30
int LoopBack 0
ip add 4.4.4.4 32
AS内配置OSPF协议
Router B配置
1
2
3
4
5
6sys
ospf 1 router-id 2.2.2.2
area 0
network 2.2.2.2 0.0.0.0
network 10.2.1.0 0.0.0.3
network 10.3.1.0 0.0.0.3
Router C配置
1
2
3
4
5
6
7sys
ospf 1 router-id 3.3.3.3
area 0
network 3.3.3.3 0.0.0.0
network 10.2.1.0 0.0.0.3
network 10.4.1.0 0.0.0.3
network 10.168.1.0 0.0.0.3
Router D配置
1
2
3
4
5
6sys
ospf 1 router-id 4.4.4.4
area 0
network 4.4.4.4 0.0.0.0
network 10.3.1.0 0.0.0.3
network 10.4.1.0 0.0.0.3
AS之间配置BGP并启动MBGP
Router A配置
1
2
3
4
5
6
7
8sys
bgp 100
peer 10.1.1.2 as-number 200
ipv4-family multicast
peer 10.1.1.2 enable
q
q
Router B配置
1
2
3
4
5
6
7
8
9
10
11
12sys
bgp 200
peer 10.1.1.1 as-number 100
peer 10.2.1.1 as-number 200
peer 10.3.1.1 as-number 200
ipv4-family multicast
peer 10.1.1.1 enable
peer 10.2.1.1 enable
peer 10.3.1.1 enable
q
q
Router C配置
1
2
3
4
5
6
7
8
9
10sys
bgp 200
peer 10.2.1.2 as-number 200
peer 10.4.1.2 as-number 200
ipv4-family multicast
peer 10.2.1.2 enable
peer 10.4.1.2 enable
q
q
Router D配置
1
2
3
4
5
6
7
8sys
bgp 200
peer 10.3.1.2 as-number 200
peer 10.4.1.1 as-number 200
ipv4-family multicast
peer 10.3.1.2 enable
peer 10.4.1.1 enable
配置要发布的路由
Router A配置
1
2
3
4
5
6
7
8sys
bgp 100
import-route direct
ipv4-family multicast
import-route direct
q
q
Router B配置
1
2
3
4
5
6
7
8
9
10sys
bgp 200
import-route direct
import-route ospf 1
ipv4-family multicast
import-route direct
import-route ospf 1
q
q
Router C配置
1
2
3
4
5
6
7
8
9sys
bgp 200
import-route direct
ipv4-family multicast
import-route direct
import-route ospf 1
q
q
Router D配置
1
2
3
4
5
6
7
8
9sys
bgp 200
import-route direct
ipv4-family multicast
import-route direct
import-route ospf 1
q
q
使能各个路由器以及各个接口的组播功能
Router A配置
1
2
3
4
5
6
7
8
9sys
multicast routind-enable
int g0/0/0
pim sm
q
int g0/0/1
pim sm
q
Router B配置
1
2
3
4
5
6
7
8
9
10
11
12sys
multicast routing-table
int g0/0/0
pim sm
q
int g0/0/1
pim sm
q
int g0/0/2
pim sm
q
Router C配置
1
2
3
4
5
6
7
8
9
10
11
12sys
multicast routing-enable
int g0/0/0
pim sm
q
int g0/0/1
pim sm
q
int g0/0/2
pim sm
q
Router D配置
1
2
3
4
5
6
7
8
9sys
multicast routing-enable
int g0/0/0
pim sm
q
int g0/0/1
pim sm
q
AS内部配置BSR和RP
Router A配置
1
2
3
4
5
6
7
8sys
int LoopBack 0
pim sm
q
pim
c-bsr loopback 0
c-rp loopback 0
q
Router B配置
1
2
3
4
5
6
7sys
int LoopBack 0
pim sm
q
pim
c-bsr loopback 0
c-rp loopback 0
在PIM域间相连接口上配置BSR边界
Router A配置
1
2
3
4sys
int g0/0/0
pim bsr-boundary
q
Router B配置
1
2
3
4sys
int g0/0/1
pim bsr-boundary
q
配置MSDP对等体
Router A配置
1
2
3
4sys
msdp
peer 10.1.1.2 connect-interface g0/0/0
q
Router B配置
1
2
3
4sys
msdp
peer 10.1.1.1 connect-interface g0/0/0
q
结果检查
查看MBGP对等体关系
1
2
3
4
5
6
7
8
9
10
11
12
13dis bgp multicast peer
<Router A>dis bgp multicast peer
BGP local router ID : 1.1.1.1
Local AS number : 100
Total number of peers : 1 Peers in established state : 1
Peer V AS MsgRcvd MsgSent OutQ Up/Down State Pre
fRcv
10.1.1.2 4 200 110 97 0 01:28:01 Established
8
查看MSDP对等体关系
1
2
3
4
5
6
7
8
9dis msdp brief
<Router B>dis msdp brief
MSDP Peer Brief Information of VPN-Instance: public net
Configured Up Listen Connect Shutdown Down
1 1 0 0 0 0
Peer's Address State Up/Down time AS SA Count Reset Count
10.1.1.1 Up 01:29:01 100 0 0