53
•
Create VLANs as required.
•
Enable IGMP snooping in the VLAN to be configured as a multicast VLAN.
•
Enable IGMP snooping in all the user VLANs.
Configuring user port attributes
First, 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.
Then, configure the user ports to permit packets of the multicast VLAN to pass and untag the packets.
Thus, after 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.
To configure user port attributes:
Step Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter interface view or port
group view.
•
Enter Layer 2 Ethernet interface
view or Layer 2 aggregate
interface view:
interface
interface-type
interface-number
•
Enter port group view:
port-group
manual
port-group-name
Use either command.
3.
Configure the user port link
type as hybrid.
port link-type hybrid
Access by default
4.
Specify the user VLAN that
comprises the current user
ports as the default VLAN.
port hybrid pvid vlan
vlan-id
VLAN 1 by default
5.
Configure the current user
ports to permit packets of the
specified multicast VLANs to
pass and untag the packets.
port hybrid vlan
vlan-id-list
untagged
By default, a hybrid port permits
only packets of VLAN 1 to pass.
For more information about the
port link-type
,
port hybrid pvid vlan
, and
port hybrid vlan
commands,
see
Layer 2—LAN Switching Command Reference
.
Configuring multicast VLAN ports
In this approach, you configure a VLAN as a multicast VLAN and assign user ports to it. You can do this
by either adding the user ports in the multicast VLAN or specifying the multicast VLAN on the user ports.
These two methods provide the same result.
Configuration guidelines
•
The VLAN to be configured as a multicast VLAN must exist.
•
A port can belong to only one multicast VLAN.