Multicast 157
Multicast Routing and IGMP Snooping
In this example, ports 1/g5 and 1/g10 are members of VLAN 100, and port 1/g15 is a member of VLAN
200. Both VLANs are configured as VLAN routing interfaces and are in different subnets. IGMP
snooping is configured on VLAN 100 so that a member port will receive multicast data only if it sends an
IMGP join message for that multicast group. IGMP and PIM-DM are enabled on each VLAN so that
multicast data sent from a port on VLAN 200 can be routed to VLAN 100.
NOTE: If multicast routing and IGMP snooping are configured on the same switch, do not use the commands
bridge multicast filtering forward-all or bridge multicast filtering forbidden on the VLAN interfaces. These
commands should be used in IGMP Snooping configurations only.
1
Create VLANs 100 and 200.
console#configure
console(config)#vlan database
console(config-vlan)#vlan 100,200
2
Enable IGMP snooping on VLAN 100.
console(config-vlan)#ip igmp snooping 100
console(config-vlan)#exit
3
Enable routing on the switch.
console(config)#ip routing
4
Configure VLAN 100 as a VLAN routing interface and assign an IP address and subnet mask.
console(config)#interface vlan 100
console(config-if-vlan100)#routing
console(config-if-vlan100)#ip address 10.10.10.1 255.255.255.0
5
Enable IGMP and PIM-DM on the VLAN routing interface
console(config-if-vlan100)#ip igmp
console(config-if-vlan100)#ip pimdm
NOTE: When you enable PIM-DM on the VLAN routing interface, PIM-SM is automatically enabled. This is a
known limitation. Only one multicast routing protocol can be enabled globally on the switch at a time, so the
PIM mode that is enabled globally is the PIM mode that is active on the interface.
6
Configure VLAN 200 as a VLAN routing interface and assign an IP address and subnet mask.
console(config)#interface vlan 200
console(config-if-vlan200)#routing
console(config-if-vlan200)#ip address 20.20.20.1 255.255.255.0
7
Enable IGMP and PIM-DM on the VLAN routing interface
console(config-if-vlan200)#ip igmp
console(config-if-vlan200)#ip pimdm