
45
Configuration prerequisites
Before you configure port-based multicast VLAN, complete the following tasks:
•
Create VLANs as required
•
Enable IGMP snooping in the VLAN to be configured as a multicast VLAN
•
Enable IGMP snooping in all user VLANs
Configuring user port attributes
Configure the user ports as hybrid ports that permit packets of the specified user VLAN to pass, and
configure the user VLAN to which the user ports belong as the default VLAN.
Configure the user ports to permit packets of the multicast VLAN to pass and untag the packets.
After the configuration, upon receiving multicast packets tagged with the multicast VLAN ID from the
upstream device, the Layer 2 device untags the multicast packets and forwards them to its
downstream device.
Follow these steps to configure user port attributes:
To do...
Use the command...
Remarks
Enter system view
system-view
—
Enter Layer 2 Ethernet
interface/Layer 2 aggregate
interface view or port group view
interface
interface-type
interface-number
Required
Use either command
port-group
{
manual
port-group-name
|
aggregation
agg-id
}
Configure the user port link type
as hybrid
port link-type hybrid
Required
Access by default
Specify the user VLAN that
comprises the current user port(s)
as the default VLAN
port hybrid pvid vlan
vlan-id
Required
VLAN 1 by default
Configure the current user port(s)
to permit packets of the specified
multicast VLAN(s) to pass and
untag the packets
port hybrid vlan
vlan-id-list
untagged
Required
By default, a hybrid port permits
only packets of VLAN 1 to pass.
NOTE:
For more information about the
port link-type
,
port hybrid pvid vlan
, and
port hybrid vlan
commands, see the
Layer 2—LAN Switching Command Reference
.
Configuring multicast VLAN ports
In this approach, you need to configure a VLAN as a multicast VLAN and then assign user ports to
this multicast VLAN by either adding the user ports in the multicast VLAN or specifying the multicast
VLAN on the user ports. These two configuration methods give the same result.
Configuring multicast VLAN ports in multicast VLAN view
Follow these steps to configure multicast VLAN ports in multicast VLAN view:
To do...
Use the command...
Remarks
Enter system view
system-view
—