应用说明:

运营商A要把自己网络的组播信号传送给运营商B,但为了安全起见,两家运营商各自使用自己的路由域与组播域,不交互三层信息(即运营商A将组播源强制吞给运营商B)。

实验拓扑如下:


配置说明:

1.ISPA与ISPB均使用稀疏模式,分别使用R1与R6的环回口做为自己的RP

2.R2,R3模拟用户加组将组播拉到与ISB互联的接口上

3.R2,R3上与ISPB互联的接口上开启PIM并且必须保证这个接口为DR,否则组播流不向下转放,R4,R5上就看不到(S,G)的条目。

3.R4,R5将在接口上收到相关的组播,将R2,R3视为组播源

4.由于收到的组播流里包含原有RP信息,新组播流要在ISPB中使用,必须使用在收到组播流的接口上开启组播RP注册代理功能,将新源注册到新RP上来。

( ip pim dense-mode proxy-register list 101)

5.此时收到的组播路由信息,看不到组播源的信息,因为ISPB中没有源的路由,所以必须在R4,R5上指一条静态路由,下一跳指向incoming interface,然后重分布到ISPB的路由域中。(如果不指源的路由,看到的(S,G)的路由的incoming interface 则为NULL)


配置如下:

R1的配置:

hostname R1
ip multicast-routing
ip pim rp-address 1.1.1.1

interface Loopback0
ip address 1.1.1.1 255.255.255.255
!
interface FastEthernet0/0
description TO_R2
ip address 192.168.12.1 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet0/1
description TO_R3
ip address 192.168.13.1 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/0
description TO_Multicast_Source
ip address 192.168.10.20 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router eigrp 100
network 1.1.1.1 0.0.0.0
network 192.168.10.0
network 192.168.12.0
network 192.168.13.0
no auto-summary
eigrp router-id 1.1.1.1

R2的配置:

hostname R2
ip multicast-routing
ip pim rp-address 1.1.1.1

interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface FastEthernet0/0
description TO_R1
ip address 192.168.12.2 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto

interface FastEthernet1/0
description TO_R3
ip address 192.168.23.2 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/1
description TO_ISPB
ip address 10.10.10.1 255.255.255.252
ip pim dr-priority 10
ip pim sparse-mode
ip igmp join-group 239.49.1.1
duplex auto
speed auto
!
router eigrp 100
network 2.2.2.2 0.0.0.0
network 192.168.12.0
network 192.168.23.0
no auto-summary
eigrp router-id 2.2.2.2

R3的配置:

hostname R3
ip multicast-routing
ip pim rp-address 1.1.1.1

interface Loopback0
ip address 3.3.3.3 255.255.255.255
!

interface FastEthernet0/1
description TO_R1
ip address 192.168.13.3 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/0
description TO_R2
ip address 192.168.23.3 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/1
description TO_ISPB
ip address 10.10.10.5 255.255.255.252
ip pim dr-priority 10
ip pim sparse-mode
ip igmp join-group 239.49.1.1
duplex auto
speed auto
!
router eigrp 100
network 1.1.1.1 0.0.0.0
network 3.3.3.3 0.0.0.0
network 192.168.13.0
network 192.168.23.0
no auto-summary
eigrp router-id 3.3.3.3
!

R4的配置:

hostname R4
ip multicast-routing

interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface FastEthernet0/0
description TO_R6
ip address 172.25.46.4 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/0
description TO_ISPA
ip address 10.10.10.2 255.255.255.252
ip pim dense-mode proxy-register list 101  #开启组播RP代理注册功能
duplex auto
speed auto
!
interface FastEthernet1/1
description TO_R5
ip address 172.25.45.4 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router ospf 100
router-id 4.4.4.4
log-adjacency-changes
redistribute static subnets #将源静态路由重分布到ISPB的路由域中来
network 4.4.4.4 0.0.0.0 area 0
network 172.25.45.4 0.0.0.0 area 0
network 172.25.46.4 0.0.0.0 area 0
!
ip forward-protocol nd
ip route 192.168.10.0 255.255.255.0 FastEthernet1/0 #指向源的静态路由
no ip http server
no ip http secure-server
!
!
ip pim rp-address 6.6.6.6
ip pim register-rate-limit 65535 #限制代理注册的速度
!
logging alarm informational
access-list 101 permit ip any any

R5的配置:

hostname R5
ip multicast-routing

interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface FastEthernet0/1
description TO_R6
ip address 172.25.56.5 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/0
description TO_ISPA
ip address 10.10.10.6 255.255.255.252
ip pim dense-mode proxy-register list 101  #开启组播RP代理注册功能
duplex auto
speed auto
!
interface FastEthernet1/1
ip address 172.25.45.5 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router ospf 100
router-id 5.5.5.5
log-adjacency-changes
redistribute static subnets #将源静态路由重分布到ISPB的路由域中来
network 5.5.5.5 0.0.0.0 area 0
network 172.25.45.5 0.0.0.0 area 0
network 172.25.56.5 0.0.0.0 area 0
!
ip forward-protocol nd
ip route 192.168.10.0 255.255.255.0 FastEthernet1/0 #指向源的静态路由
no ip http server
no ip http secure-server
!
!
ip pim rp-address 6.6.6.6
ip pim register-rate-limit 65535  #限制代理注册的速度
!
logging alarm informational
access-list 101 permit ip any any
!

R6的配置:

hostname R6
ip multicast-routing

interface Loopback0
ip address 6.6.6.6 255.255.255.255
!
interface FastEthernet0/0
description TO_R4
ip address 172.25.46.6 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet0/1
description TO_R5
ip address 172.25.56.6 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
interface FastEthernet1/1
description TO_ R7
ip address 172.25.67.6 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router ospf 100
router-id 6.6.6.6
log-adjacency-changes
network 6.6.6.6 0.0.0.0 area 0
network 172.25.46.6 0.0.0.0 area 0
network 172.25.56.6 0.0.0.0 area 0
network 172.25.67.6 0.0.0.0 area 0
!
ip forward-protocol nd
no ip http server
no ip http secure-server
!
!
ip pim rp-address 6.6.6.6
!

R7的配置:

模拟PC加入组

hostname R7
ip multicast-routing

interface Loopback0
ip address 7.7.7.7 255.255.255.255
ip pim sparse-mode
ip igmp join-group 239.49.1.1 #模拟PC加入组播组
!
interface FastEthernet1/0
description TO_R6
ip address 172.25.67.7 255.255.255.0
ip pim sparse-mode
duplex auto
speed auto
!
router ospf 100
router-id 7.7.7.7
log-adjacency-changes
network 172.25.67.7 0.0.0.0 area 0

模拟组播发送与接收工具:

MCastTest20