
46
To do...
Use the command...
Remarks
Configure the specified VLAN as a
multicast VLAN and enter multicast
VLAN view
multicast-vlan
vlan-id
Required
Not a multicast VLAN by default
Assign ports to the multicast VLAN
port
interface-list
Required
By default, a multicast VLAN has
no ports.
Configuring multicast VLAN ports in interface view or port group view
Follow these steps to configure multicast VLAN ports in interface 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
—
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
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.
NOTE:
•
Do not configure multicast VLAN on a device with multicast routing enabled.
•
The VLAN to be configured as a multicast VLAN must exist.
•
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 ]
[
|
{
begin
|
exclude
|
include
}
regular-expression ]
Available in any view
Multicast VLAN configuration examples
Network requirements
•
As shown in
, Router A connects to a multicast source—Source—through
GigabitEthernet1/0/1, and to Switch A through GigabitEthernet1/0/2.
•
IGMPv2 is required on Router A. IGMPv2 snooping is required on Switch A. Router A acts as
the IGMP querier.