- Table of Contents
-
- 08-IP Multicast Command Reference
- 00-Preface
- 01-IGMP Snooping Commands
- 02-PIM Snooping Commands
- 03-Multicast VLAN Commands
- 04-Multicast Routing and Forwarding Commands
- 05-IGMP Commands
- 06-PIM Commands
- 07-MSDP Commands
- 08-MBGP Commands
- 09-Multicast VPN Commands
- 10-MLD Snooping Commands
- 11-IPv6 PIM Snooping Commands
- 12-IPv6 Multicast VLAN Commands
- 13-IPv6 Multicast Routing and Forwarding Commands
- 14-MLD Commands
- 15-IPv6 PIM Commands
- 16-IPv6 MBGP Commands
- Related Documents
-
Title | Size | Download |
---|---|---|
03-Multicast VLAN Commands | 59.22 KB |
Contents
Multicast VLAN configuration commands····································································································································· 1
display multicast-vlan······················································································································································ 1
multicast-vlan······································································································································································ 2
multicast-vlan entry-limit··················································································································································· 2
subvlan (multicast VLAN view)······································································································································ 3
display multicast-vlan
Syntax
display multicast-vlan [ vlan-id ] [ | { begin | exclude | include } regular-expression ]
View
Any view
Default level
1: Monitor level
Parameters
vlan-id: Specifies a multicast VLAN ID in the range of 1 to 4094. If this argument is not specified, the information about all multicast VLANs will be displayed.
|: Filters command output by specifying a regular expression. For more information about regular expressions, see Fundamentals Configuration Guide.
begin: Displays the first line that matches the specified regular expression and all lines that follow.
exclude: Displays all lines that do not match the specified regular expression.
include: Displays all lines that match the specified regular expression.
regular-expression: Specifies a regular expression, a case-sensitive string of 1 to 256 characters.
Description
Use display multicast-vlan to display information about the specified multicast VLAN.
Examples
# Display information about all multicast VLANs.
<Sysname> display multicast-vlan
Total 1 multicast-vlan(s)
Multicast vlan 10
subvlan list:
vlan 2-4
Table 1 Command output
Field |
Description |
Total 1 multicast-vlan(s) |
Total number of multicast VLANs. |
subvlan list |
List of sub-VLANs of the multicast VLAN. |
multicast-vlan
Syntax
multicast-vlan vlan-id
undo multicast-vlan { all | vlan-id }
View
System view
Default level
2: System level
Parameters
vlan-id: Specifies a VLAN ID in the range of 1 to 4094.
all: Deletes all multicast VLANs.
Description
Use multicast-vlan to configure the specified VLAN as a multicast VLAN and enter multicast VLAN view.
Use undo multicast-vlan to remove the specified multicast VLAN.
The VLAN to be configured is not a multicast VLAN by default.
The specified VLAN to be configured as a multicast VLAN must exist.
The multicast VLAN feature cannot be enabled on a device with IP multicast routing enabled.
You need to enable IGMP snooping only in the multicast VLAN.
Related commands: igmp-snooping enable and multicast routing-enable.
Examples
# Enable IGMP snooping in VLAN 100. Configure it as a multicast VLAN and enter multicast VLAN view.
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 100
[Sysname-vlan100] igmp-snooping enable
[Sysname-vlan100] quit
[Sysname] multicast-vlan 100
[Sysname-mvlan-100]
multicast-vlan entry-limit
Syntax
multicast-vlan entry-limit limit
undo multicast-vlan entry-limit
View
System view
Default level
2: System level
Parameters
limit: Specifies the maximum number of entries in the IGMP snooping forwarding table of multicast VLANs. The value range depends on the system operating mode. For more information about system operating modes, see Fundamentals Configuration Guide.
Description
Use multicast-vlan entry-limit to configure the maximum number of IGMP snooping forwarding entries of multicast VLANs.
Use undo multicast-vlan entry-limit to restore the default.
The default upper limit depends on the system operating mode. For more information about system operating modes, see Fundamentals Configuration Guide.
Related commands: entry-limit.
Examples
# Configure the IGMP snooping forwarding table of multicast VLANs to contain 512 entries at most.
<Sysname> system-view
[Sysname] multicast-vlan entry-limit 512
subvlan (multicast VLAN view)
Syntax
subvlan vlan-list
undo subvlan { all | vlan-list }
View
Multicast VLAN view
Default level
2: System level
Parameters
vlan-list: Specifies a VLAN in the form of vlan-id, or a VLAN range in the form of start-vlan-id to end-vlan-id, where the end VLAN ID must be greater than the start VLAN ID. The value range of a VLAN ID is 1 to 4094.
all: Deletes all the sub-VLANs of the current multicast VLAN.
Description
Use subvlan to configure sub-VLAN or sub-VLANs for the current multicast VLAN.
Use undo subvlan to remove the specified sub-VLAN or sub-VLANs or all sub-VLANs from the current multicast VLAN.
A multicast VLAN has no sub-VLANs by default.
The VLANs to be configured as sub-VLANs of the multicast VLAN must exist and must not be multicast VLANs or sub-VLANs of any other multicast VLAN.
The number of sub-VLANs of the multicast VLAN must not exceed 1024.
Examples
# Configure VLAN 10 through VLAN 15 as sub-VLANs of multicast VLAN 100.
<Sysname> system-view
[Sysname] multicast-vlan 100
[Sysname-mvlan-100] subvlan 10 to 15