O'Reilly logo

JUNOS Cookbook by Aviva Garrett

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

16.13. Connecting PIM-SM Domains Using MSDP and MBGP

Problem

You want to configure the routers so that customers in your AS can receive multicast streams from sources that are managed and maintained by another ISP.

Solution

Use MSDP, along with Multiprotocol BGP (MBGP), to connect the two PIM-SM domains. The MSDP connection runs parallel to the MBGP connection. Start by setting up the BGP border routers. This recipe has redundant EBGP connections between the ASs, one that runs MSDP and carries the multicast traffic and one that carries only unicast traffic.

Let's start with the multicast-enabled border router. Create RIB groups for MSDP, PIM, and the router's interfaces to use:

	[edit routing-options]
	aviva@RouterG# set rib-group mcast-rib export-rib inet.2
	aviva@RouterG# set rib-group mcast-rib import-rib inet.2
	aviva@RouterG# set rib-group if-rib import-rib [inet.0 inet.2]
	aviva@RouterG# set interface-routes rib-group inet if-rib

Configure MSDP, specifying the address of its peer and telling it to use the multicast RIB groups:

	[edit protocols msdp]
	aviva@RouterG# set local-address 192.168.19.1
	aviva@RouterG# set peer 192.168.19.1
	aviva@RouterG# set rib-group inet mcast-rib

Configure an EBGP session, enabling MBGP on it:

	[edit routing-options]
	aviva@RouterG# set router-id 192.168.19.1
	aviva@RouterG# set autonomous-system 65500

	[edit protocols bgp group external]
	aviva@RouterG# set type external
	aviva@RouterG# set peer-as 65520
	aviva@RouterG# set neighbor 10.0.1.1
	aviva@RouterG# set family ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required