O'Reilly logo

Cisco IOS Cookbook, 2nd Edition by Ian Brown, Kevin Dooley

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

Multicast Over MPLS

Problem

You want to pass customer multicast traffic through an MPLS network.

Solution

For this recipe, we must configure Multicast capabilities on all of the different types of routers: C, CE, P, and PE. First, the C and CE routers, which we configure for multicast using exactly the same techniques that we used in Chapter 23:

Router-C-An#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-C-An(config)#ip multicast-routing
Router-C-An(config)#interface FastEthernet0/0
Router-C-An(config-if)#ip address 192.168.5.12 255.255.255.0
Router-C-An(config-if)#ip pim sparse-dense-mode
Router-C-An(config-if)#exit
Router-C-An(config)#end
Router-C-An#

For the CE routers, we need to configure the interfaces that point to both the C and PE routers:

Router-CE-A1#configure terminal
Enter configuration commands, one per line.  End with CNTL/Z.
Router-CE-A1(config)#ip multicast-routing
Router-CE-A1(config)#interface FastEthernet0/0.1
Router-CE-A1(config-subif)#encapsulation dot1Q 101
Router-CE-A1(config-subif)#ip address 192.168.1.5 255.255.255.0
Router-CE-A1(config-subif)#ip pim sparse-dense-mode
Router-CE-A1(config-subif)#exit
Router-CE-A1(config)#interface FastEthernet0/0.2
Router-CE-A1(config-subif)#encapsulation dot1Q 111
Router-CE-A1(config-subif)#ip address 192.168.5.1 255.255.255.0
Router-CE-A1(config-subif)#ip pim sparse-dense-mode
Router-CE-A1(config-subif)#exit
Router-CE-A1(config)#end
Router-CE-A1#

We will configure a static IGMP join-group ...

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