mac

Commands for Multicast VLAN
408
35.4 switchport association multicast-vlan
Command: switchport association multicast-vlan <vlan-id> out-tag <tag-id>
no switchport association multicast-vlan <vlan-id>
Function: Associate a port with the specified multicast VLAN; the no command cancels
the association.
Parameter: <vlan-id>: The multicast VLAN associates with the port. Each port can only
be associated with one multicast VLAN, and the association will be successful only when
the multicast VLAN is existent.
<tag-id>: Specify vlan tag of the multicast data forwarded by the
associated port, only the tag of the associated port allows the multicast VLAN, the tag-id
takes effect. Its range from 1 to 4094.
Command Mode: Port mode.
Default: The port is not associated with any multicast VLAN by default.
Usage Guide: After a port is associated with the multicast VLAN, when there comes the
multicast order in the port, then the multicast data will be sent from the multicast VLAN to
this port, so to reduce the data traffic. If the associated port is set as trunk port and allows
the multicast VLAN, the multicast traffic with the specified vlan tag will be forwarded. The
port can only be associated with the multicast VLAN after the multicast VLAN is enabled.
Example:
Switch(config)#vlan 2
Switch(Config-Vlan2)#multicast-vlan
Switch(config)#interface ethernet 1/1
Switch(config-if-ethernet1/1)#switchport mode trunk
Switch(config-if-ethernet1/1)#switchport association multicast-vlan 2 out-tag 5