User Guide
280
Configuring Layer 2 Multicast
Configuration Examples
Switch(config-if)#switchport pvid 10
Switch(config-if)#exit
Switch(config)#interface fastEthernet 1/0/2
Switch(config-if)#switchport general allowed vlan 20 untagged
Switch(config-if)#switchport pvid 20
Switch(config-if)#exit
Switch(config)#interface fastEthernet 1/0/3
Switch(config-if)#switchport general allowed vlan 30 untagged
Switch(config-if)#switchport pvid 30
Switch(config-if)#exit
Switch(config)#interface fastEthernet 1/0/4
Switch(config-if)#switchport general allowed vlan 40 tagged
Switch(config-if)#switchport pvid 40
Switch(config-if)#exit
3) Check whether port1/0/1-3 only belong to VLAN 10, VLAN 20 and VLAN 30
respectively. If not, delete them from the other VLANs. By default, all ports are in VLAN 1,
so you need to delete them from VLAN 1.
Switch(config)#show vlan brief
VLAN Name Status Ports
------- ---------------- --------- ----------------------------------------
1 System-VLAN active Gi1/0/1, Gi1/0/2, Gi1/0/3, Gi1/0/4,
Gi1/0/5, Gi1/0/6, Gi1/0/7, Gi1/0/8,
...
10 VLAN10 active Gi1/0/1
20 VLAN20 active Gi1/0/2
30 VLAN30 active Gi1/0/3
40 VLAN40 active Gi1/0/4
Switch(config)#interface range fastEthernet 1/0/1-3
Switch(config-if-range)#no switchport general allowed vlan 1
Switch(config-if-range)#exit
4) Enable MVR globally, and configure the MVR mode as
Dynamic
, multicast VLAN ID as
40
. Add multicast group 225.1.1.1 to MVR.
Downloaded from