1-6
Configuring multicast VLAN ports in port view or port group view
Follow these steps to configure multicast VLAN ports in port view or port group view:
To do… Use this command… Remarks
Enter system view
system-view
—
Configure the specified VLAN
as a multicast VLAN and enter
multicast VLAN view
multicast-vlan vlan-id
Required
Not a multicast VLAN by
default.
Return to system view
quit
—
interface interface-type
interface-number
Enter port view or port group
view
port-group manual
port-group-name
Required
Use either command.
Configure the current port(s) as
port(s) of the multicast VLAN
port multicast-vlan vlan-id
Required
By default, a user port does not
belong to any multicast VLAN.
z The VLAN to be configured as a multicast VLAN must exist.
z A port can belong to only one multicast VLAN.
Displaying and Maintaining Multicast VLAN
To do… Use the command… Remarks
Display information about a
multicast VLAN
display multicast-vlan
[ vlan-id ]
Available in any view
Multicast VLAN Configuration Examples
Sub-VLAN-Based Multicast VLAN Configuration
Network requirements
z Router A connects to a multicast source through GigabitEthernet1/0/1 and to Switch A, through
GigabitEthernet 1/0/2.
z IGMPv2 is required on Router A, and IGMPv2 Snooping is required on Switch A. Router A is the
IGMP querier.
z Switch A’s GigabitEthernet 1/0/1 belongs to VLAN 10, GigabitEthernet 1/0/2 through
GigabitEthernet1/0/4 belong to VLAN 2 through VLAN 4 respectively, and Host A through Host C
are attached to GigabitEthernet 1/0/2 through GigabitEthernet 1/0/4 of Switch A respectively.
z The multicast source sends multicast data to multicast group 224.1.1.1. Host A, Host B, and Host C
are receivers of the multicast group.