46
Configuring a port-based multicast VLAN
To configure a port-based multicast VLAN, perform the following steps:
1.
Configure a VLAN as the multicast VLAN.
2.
Configure the attributes for user ports that are connected to the multicast receivers.
3.
Assign the user ports to the multicast VLAN.
You can assign a port to a multicast VLAN only when the port is an Ethernet port or a Layer 2
aggregate interface.
Configuration prerequisites
Before you configure a port-based multicast VLAN, complete the following tasks:
•
Create VLANs as required.
•
Enable IGMP snooping for the VLAN to be configured as the multicast VLAN.
•
Enable IGMP snooping for all the VLANs that contain the multicast receivers.
Configuring user port attributes
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view.
interface
interface-type interface-number
N/A
3.
Configure the link
type of the user port
as hybrid.
port link-type hybrid
The default setting is
access
.
For more information about this
command, see
Layer 2—LAN
Switching Command Reference.
4.
Specify the PVID of
the current user port
as the VLAN to
which the user port
belongs.
port hybrid pvid vlan
vlan-id
By default, the PVID for a hybrid
port is VLAN 1.
For more information about this
command, see
Layer 2—LAN
Switching Command Reference.
5.
Configure the
current user port to
permit the multicast
VLAN and to untag
the packets.
port hybrid vlan
vlan-id-list
untagged
By default, a hybrid port permits
only VLAN 1.
For more information about this
command, see
Layer 2—LAN
Switching Command Reference.
Assigning user ports to a multicast VLAN
You can either assign the user ports to the multicast VLAN in multicast VLAN view, or assign the user
ports to the multicast VLAN in interface view.
When you perform this task, follow these guidelines:
•
The VLAN to be configured as a multicast VLAN must exist.
•
A port can belong to only one multicast VLAN.