- Table of Contents
- Related Documents
-
Title | Size | Download |
---|---|---|
05-Multicast VLAN Commands | 38.39 KB |
Chapter 1 Multicast VLAN Configuration Commands
1.1 Multicast VLAN Configuration Commands
1.2 Multicast VLAN PLUS Configuration Commands
1.2.2 display multicast-vlan forwarding-table
1.3 Layer 3 Multicast Disabling Command
Chapter 1 Multicast VLAN Configuration Commands
1.1 Multicast VLAN Configuration Commands
1.1.1 service-type multicast
Syntax
service-type multicast
undo service-type multicast
View
VLAN view
Parameters
None
Description
Use the service-type multicast command to configure the current VLAN as multicast VLAN.
Use the undo service-type multicast command to remove the configuration.
By default, all VLANs are not multicast VLANs.
If you configure multicast VLAN, add the corresponding switch ports to the multicast VLAN and enable IGMP Snooping, users in different VLANs can share one multicast VLAN, and multicast flow can be transmitted in the multicast VLAN only, thus saving bandwidth. The completely isolated multicast VLAN and user VLAN can effectively ensure security.
& Note:
l A port can belong to only one multicast VLAN.
l The type of port connected with user terminals must be hybrid untagged.
l The system supports up to three multicast VLANs.
Examples
# Configure VLAN 2 as a multicast VLAN.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] vlan 2
[H3C-vlan2] service-type multicast
1.2 Multicast VLAN PLUS Configuration Commands
& Note:
If not otherwise specified, the multicast VLAN feature mentioned in this section refers to multicast VLAN PLUS.
1.2.1 display multicast-vlan
Syntax
display multicast-vlan [ vlan-id ]
View
Any view
Parameters
vlan-id: ID of a multicast VLAN to be displayed.
Description
Use the display multicast-vlan command to display the mappings between the specifed multicast VLAN or all the configured multicast VLANs and multicast sub-VLANs. If no VLAN ID is specified, this command displays the mappings between all the configured multicast VLANs and their sub-VLANs.
Examples
# Display the mappings between multicast VLAN 10 and its multicast sub-VLANs.
<H3C> display multicast-vlan 10
multicast vlan 10's subvlan list:
Vlan 100
1.2.2 display multicast-vlan forwarding-table
Syntax
display multicast-vlan forwarding-table [ group-id ]
View
Any view
Parameters
group-id: IP address of the multicast group to be displayed.
Description
Use the display multicast-vlan forwarding-table command to display the created forwarding table entries. If no group ID is specified, this command displays all the created forwarding table entries. The displayed information includes incoming VLANs, outgoing VLANs, and port information in the VLANs.
Examples
# Display all the created forwarding table entries.
<H3C> display multicast-vlan forwarding-table
Multicast vlan Forwarding Table.
Total 1 entry(entries).
(*,227.1.1.3)
in-vlan: Vlan 50
GigabitEthernet2/1/5
GigabitEthernet2/1/21
GigabitEthernet4/1/1
2 out-vlan(s):
Vlan51
GigabitEthernet4/1/1
Vlan99
GigabitEthernet4/1/1
Total 1 entry(entries) Listed.
Table 1-1 display multicast-vlan forwarding-table command output description
Field |
Description |
in-vlan |
Incoming VLAN |
out-vlan(s) |
Outgoing VLANs |
& Note:
l In a multicast VLAN, (*, G) entries are used for multicast traffic forwarding.
l The incoming VLAN of an (*, G) entry is the multicast VLAN, while the outgoing VLANs are the multicast VLAN’s sub-VLANs.
1.2.3 multicast-vlan enable
Syntax
multicast-vlan enable
undo multicast-vlan enable
View
VLAN view
Parameters
None
Description
Use the multicast-vlan enable command to configure the current VLAN as a multicast VLAN.
Use the undo multicast-vlan enable command to remove the current VLAN as a multicast VLAN.
By default, no VLAN is configured as a multicast VLAN.
To make a multicast VLAN effective, you must enable IGMP Snooping in the multicast VLAN.
& Note:
l Multicast VLANs are connected with Layer-3 devices.
l The switch supports up to five multicast VLANs.
l The switch supports up to 64 sub-VLANs for each multicast VLAN.
l Layer-3 multicast protocols must not be configured in multicast VLANs. VLANs with Layer-3 multicast protocols enabled cannot be configured as multicast VLANs.
l A multicast VLAN must not be a sub-VLAN.
l Configure a multicast VLAN before enabling IGMP Snooping.
Related commands: igmp-snooping enable.
Examples
# Configure VLAN 10 as a multicast VLAN.
<H3C> system-view
[H3C] vlan 10
[H3C-vlan10] multicast-vlan enable
1.2.4 multicast-vlan subvlan
Syntax
multicast-vlan multicast vlan-id subvlan multicast subvlan-id [ to multicast subvlan-id]
undo multicast-vlan multicast vlan-id subvlan multicast subvlan-id [ to multicast subvlan-id ]
View
System view
Parameters
multicast vlan-id: ID of a multicast VLAN to which sub-VLANs will be added.
multicast vlan-id: ID of a VLAN to be configured as a sub-VLAN.
Description
Use the multicast-vlan subvlan command to configure the specified VLAN(s) as sub-VLAN(s) of the specified multicast VLAN.
Use the undo multicast-vlan subvlan command to remove the specified VLAN(s) as sub-VLAN(s) of the specified multicast VLAN.
By default, a VLAN is not a sub-VLAN of a multicast VLAN.
Before a sub-VLAN can come into effect, you must enable IGMP Snooping first.
& Note:
l Sub-VLANs are connected with users.
l Layer-3 multicast protocols must not be configured in multicast sub-VLANs. VLANs with layer-3 multicast protocols enabled cannot be configured as multicast sub-VLANs.
l A multicast sub-VLAN belongs to only one multicast VLAN at the same time.
l Before configuring a multicast sub-VLAN, you must configure the corresponding multicast VLAN.
l Configure a multicast VLAN before enabling IGMP Snooping.
Related commands: igmp-snooping enable.
Examples
# Configure VLAN 100 as a sub-VLAN of VLAN 10.
<H3C> system-view
[H3C]multicast-vlan 10 subvlan 100
1.3 Layer 3 Multicast Disabling Command
1.3.1 l3multicast disable
Syntax
l3multicast disable [ vlan vlan-id-list ]
undo l3multicast disable [ vlan vlan-id-list ]
View
Ethernet port view/RPR logical port view
Parameters
vlan-id-list: VLAN interface list, in the form of vlan-id-list = [ vlan-id1 [ to vlan-id2 ] ]&<1-10>, where vlan-id is in the range of 1 to 4,094, and &<1-10> means that you can specify up to 10 VLANs or VLAN ranges for this argument.
Description
Use the l3multicast disable command to disable Layer 3 multicast in a specified VLAN on the current port.
Use the undo l3multicast disable command to restore the default.
By default, whether this function is enabled depends on the VLAN configuration.
l If no VLAN ID is specified, the command has effect on all the VLANs of the current port.
l This command is superior to all other commands that may affect Layer 3 multicast, such as PIM.
& Note:
l Boards with the suffix B or D and Type C boards with FE ports do not support vlan vlan-id-list in this command. The l3multicast disable command disables Layer 3 multicast in all the VLANs on the current port.
l For aggregation ports, you need to synchronize configuration manually.
l This command does not check validity of VLANs. Even if the specified VLAN does not exist or the port does not belong to the specified VLAN, this command can be successfully configured.
l If you configure this command on a port of an XP4 board, this configuration has effect also on neighboring ports (ports 1 and 2 are neighboring ports, and ports 3 and 4 are neighboring ports).
Examples
# Disable Layer 3 multicast in VLAN 10 on Ethernet1/1/1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet1/1/1
[H3C-Ethernet1/1/1] l3multicast disable vlan 10