- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
- 00-Preface
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-Auto Detect Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Basic Port Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-802.1x and System Guard Command
- 16-AAA Command
- 17-MAC Address Authentication Command
- 18-IP Address and Performance Command
- 19-DHCP Command
- 20-ACL Command
- 21-QoS-QoS Profile Command
- 22-Mirroring Command
- 23-ARP Command
- 24-SNMP-RMON Command
- 25-Multicast Command
- 26-NTP Command
- 27-SSH Command
- 28-File System Management Command
- 29-FTP-SFTP-TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN-VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Smart Link-Monitor Link Command
- 36-PoE-PoE Profile Command
- 37-Routing Protocol Command
- 38-UDP Helper Command
- 39-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
25-Multicast Command | 111.47 KB |
Table of Contents
1 IGMP Snooping Configuration Commands
IGMP Snooping Configuration Commands
display igmp-snooping configuration
display igmp-snooping statistics
igmp-snooping general-query source-ip
igmp-snooping max-response-time
igmp-snooping nonflooding-enable
igmp-snooping router-aging-time
multicast static-group interface
multicast static-router-port vlan
reset igmp-snooping statistics
2 Common Multicast Configuration Commands
Common Multicast Configuration Commands
mac-address multicast interface
IGMP Snooping Configuration Commands
display igmp-snooping configuration
Syntax
display igmp-snooping configuration
View
Any view
Parameters
None
Description
Use the display igmp-snooping configuration command to display IGMP Snooping configuration information.
When IGMP Snooping is enabled on the device, this command displays the following information: IGMP Snooping status, aging time of the router port, query response timeout time, and aging time of multicast member ports.
Related commands: igmp-snooping.
Examples
# Display IGMP Snooping configuration information on the device.
<device> display igmp-snooping configuration
Enable IGMP-Snooping.
The router port timeout is 105 second(s).
The max response timeout is 10 second(s).
The host port timeout is 260 second(s).
Enable IGMP-Snooping Non-Flooding.
The above-mentioned information shows: IGMP Snooping is enabled, the aging time of the router port is 105 seconds, the query response timeout time is 10 seconds, and the aging time of multicast member ports is 260 seconds.
display igmp-snooping group
Syntax
display igmp-snooping group [ vlan vlan-id ]
View
Any view
Parameters
vlan-id: VLAN under which the multicast group information is to be displayed. If you do not provide this argument, this command displays the multicast group information of all VLANs.
Description
Use the display igmp-snooping group command to display information about the IP and MAC multicast groups under the specified VLAN (with vlan vlan-id) or all VLANs (without vlan vlan-id).
Examples
# Display the information about the multicast groups under all the VLANs.
<device> display igmp-snooping group
Total 1 IP Group(s).
Total 1 MAC Group(s).
Vlan(id):99.
Total 1 IP Group(s).
Total 1 MAC Group(s).
Static Router port(s):
GigabitEthernet1/0/11
Dynamic Router port(s):
GigabitEthernet1/0/22
IP group(s):the following ip group(s) match to one mac group.
IP group address:228.0.0.0
Static host port(s):
GigabitEthernet1/0/23
Dynamic host port(s):
GigabitEthernet1/0/10
MAC group(s):
MAC group address:0100-5e00-0000
Host port(s):GigabitEthernet1/0/10 GigabitEthernet1/0/23
Table 1-1 display igmp-snooping group command output description
Field |
Description |
Total 1 IP Group(s). Total 1 MAC Group(s). |
Total number of IP multicast groups and MAC multicast groups |
Vlan(id): |
ID of the VLAN whose multicast group information is displayed |
Static Router port(s): |
Static router port |
Dynamic Router port(s): |
Dynamic router port |
Static host port(s): |
Static member port |
Dynamic host port(s): |
Dynamic member port |
IP group address: |
IP address of a multicast group |
MAC group(s): |
MAC multicast group |
MAC group address: |
Address of a MAC multicast group |
Host port(s) |
Member ports |
display igmp-snooping statistics
Syntax
display igmp-snooping statistics
View
Any view
Parameters
None
Description
Use the display igmp-snooping statistics command to display IGMP Snooping statistics.
This command displays the following information: the numbers of the IGMP general query messages, IGMP group-specific query messages, IGMPv1 report messages, IGMPv2 report messages, IGMP leave messages and error IGMP packets received, and the number of the IGMP group-specific query messages sent.
Related commands: igmp-snooping.
Examples
# Display IGMP Snooping statistics.
<device> display igmp-snooping statistics
Received IGMP general query packet(s) number:1.
Received IGMP specific query packet(s) number:0.
Received IGMP V1 report packet(s) number:0.
Received IGMP V2 report packet(s) number:3.
Received IGMP leave packet(s) number:0.
Received error IGMP packet(s) number:0.
Sent IGMP specific query packet(s) number:0.
The information above shows that IGMP receives:
l one IGMP general query messages
l zero IGMP specific query messages
l zero IGMPv1 report messages
l three IGMPv2 report messages
l zero IGMP leave messages
l zero IGMP error packets
IGMP Snooping sends:
l zero IGMP specific query messages
igmp-snooping
Syntax
igmp-snooping { enable | disable }
View
System view, VLAN view
Parameters
enable: Enables the IGMP Snooping feature.
disable: Disables the IGMP Snooping feature.
Description
Use the igmp-snooping enable command to enable the IGMP Snooping feature.
Use the igmp-snooping disable command to disable the IGMP Snooping feature.
By default, the IGMP Snooping feature is disabled.
l Before enabling IGMP Snooping in a VLAN, be sure to enable IGMP Snooping globally in system view; otherwise the IGMP Snooping setting will not take effect.
l If IGMP Snooping and VLAN VPN are enabled on a VLAN at the same time, IGMP queries are likely to fail to pass the VLAN. You can solve this problem by configuring VLAN tags for the IGMP queries. For details, see igmp-snooping vlan-mapping.
Examples
# Enable the IGMP Snooping feature on the device.
<device>system-view
System View: return to User View with Ctrl+Z.
[device] igmp-snooping enable
Enable IGMP-Snooping ok.
igmp-snooping fast-leave
Syntax
igmp-snooping fast-leave [ vlan vlan-list ]
undo igmp-snooping fast-leave [ vlan vlan-list ]
View
System view, Ethernet port view
Parameters
vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual 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 effective range of a VLAN ID is 1 to 4094.
Description
Use the igmp-snooping fast-leave command to enable IGMP fast leave processing.
Use the undo igmp-snooping fast-leave command to disable IGMP fast leave processing.
By default, IGMP fast leave processing is disabled.
l The fast leave processing function works for a port only if the host attached to the port runs IGMPv2 or IGMPv3.
l The configuration performed in system view takes effect on all ports of the device if no VLAN is specified; if one or more VLANs are specified, the configuration takes effect on all ports in the specified VLAN(s).
l The configuration performed in Ethernet port view takes effect on the port no matter which VLAN it belongs to if no VLAN is specified; if one or more VLANs are specified, the configuration takes effect on the port only if the port belongs to the specified VLAN(s).
l If fast leave processing and unknown multicast packet dropping or non-flooding are enabled on a port to which more than one host is connected, when one host leaves a multicast group, the other hosts connected to port and interested in the same multicast group will fail to receive multicast data for that group.
Examples
# Enable IGMP fast leave processing on GigabitEthernet 1/0/1.
<device>system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] igmp-snooping fast-leave
igmp-snooping general-query source-ip
Syntax
igmp-snooping general-query source-ip { current-interface | ip-address }
undo igmp-snooping general-query source-ip
View
VLAN view
Parameters
current-interface: Specifies the current interface whose IP address is selected by the Layer 2 multicast device.
ip-address: Source IP address of the general query messages.
Description
Use the igmp-snooping general-query source-ip current-interface command to configure the Layer 2 multicast device to use the IP address of the current VLAN interface as the source IP address of the general query messages.
Use the igmp-snooping general-query source-ip ip-address command to configure the Layer 2 multicast device to use the specified IP address as the source IP address when sending general query messages.
Use the undo igmp-snooping general-query source-ip command to configure the Layer 2 multicast device to use the default IP address as the source address when sending general query messages.
This command can take effect only if the IGMP Snooping querier function is enabled on the device.
By default, the Layer 2 multicast device sends general query messages with the source IP address of 0.0.0.0.
Examples
# Configure the Layer 2 multicast device to send general query messages with the source IP address 2.2.2.2 in VLAN 3.
<device> system-view
System view, return to user view with Ctrl+Z.
[device] igmp-snooping enable
[device] vlan 3
[device-vlan3] igmp-snooping enable
[device-vlan3] igmp-snooping querier
[device-vlan3] igmp-snooping general-query source-ip 2.2.2.2
igmp-snooping group-limit
Syntax
igmp-snooping group-limit limit [ vlan vlan-list ] [ overflow-replace ]
undo igmp-snooping group-limit [ vlan vlan-list ]
View
Ethernet port view
Parameters
limit: Maximum number of multicast groups the port can join, in the range of 1 to 256.
overflow-replace: Allows a new multicast group to replace an existing multicast group with the lowest IP address.
vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual 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 effective range of a VLAN ID is 1 to 4094.
Description
Use the igmp-snooping group-limit command to define the maximum number of multicast groups the port can join.
Use the undo igmp-snooping group-limit command to restore the default setting.
The system default for the device is 256.
l To prevent bursting traffic in the network or performance deterioration of the device caused by excessive multicast groups, you can set the maximum number of multicast groups that the device should process.
l When the number of multicast groups exceeds the configured limit, the device removes its multicast forwarding entries starting from the oldest one. In this case, the multicast packets for the removed multicast group(s) will be flooded in the VLAN as unknown multicast packets. As a result, non-member ports can receive multicast packets within a period of time.
l To avoid this from happening, enable the function of dropping unknown multicast packets.
Examples
# Allow GigabitEthernet1/0/1 to join at most 200 multicast groups.
<device>system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] igmp-snooping group-limit 200
igmp-snooping group-policy
Syntax
igmp-snooping group-policy acl-number [ vlan vlan-list ]
undo igmp-snooping group-policy [ vlan vlan-list ]
View
System view, Ethernet port view
Parameters
acl-number: Basic ACL number, in the range of 2000 to 2999.
vlan-list: Defines one or multiple VLANs. You can provide up to 10 VLAN lists, by each of which you can specify an individual 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 effective range of a VLAN ID is 1 to 4094.
Description
Use the igmp-snooping group-policy command to configure a multicast group filter.
Use the undo igmp-snooping group-policy command to remove the configured multicast group filter.
By default, no multicast group filter is configured.
The ACL rule defines a multicast address or a multicast address range (for example 224.0.0.1 to 239.255.255.255) and is used to:
l Allow the port(s) to join only the multicast group(s) defined in the rule by a permit statement.
l Inhibit the port(s) from joining the multicast group(s) defined in the rule by a deny statement.
l A port can belong to multiple VLANs, you can configure only one ACL rule per VLAN on a port.
l If no ACL rule is configured, all the multicast groups will be filtered.
l Since most devices broadcast unknown multicast packets by default, this function is often used together with the function of dropping unknown multicast packets to prevent multicast streams from being broadcast as unknown multicast packets to a port blocked by this function.
l The configuration performed in system view takes effect on all ports of the device if no VLAN is specified; if one or more VLANs are specified, the configuration takes effect on all ports in the specified VLAN(s).
l The configuration performed in Ethernet port view takes effect on the port no matter which VLAN it belongs to if no VLAN is specified; if one or more VLANs are specified, the configuration takes effect on the port only if the port belongs to the specified VLAN(s).
Examples
# Configure ACL 2000 to allow users under GigabitEthernet1/0/1 to access the multicast streams in groups 225.0.0.0 to 225.255.255.255.
l Configure ACL 2000.
<device>system-view
System View: return to User View with Ctrl+Z.
[device] acl number 2000
[device-acl-basic-2000] rule permit source 225.0.0.0 0.255.255.255
[device-acl-basic-2000] quit
l Create VLAN 2 and add GigabitEthernet1/0/1 to VLAN 2.
[device] vlan 2
[device-vlan2] port GigabitEthernet 1/0/1
[device-vlan2] quit
l Configure ACL 2000 on GigabitEthernet1/0/1 to allow this VLAN 2 port to join only the IGMP multicast groups defined in the rule of ACL 2000.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] igmp-snooping group-policy 2000 vlan 2
[device-GigabitEthernet1/0/1] quit
# Configure ACL 2001 to allow users under GigabitEthernet1/0/2 to access the multicast streams in any groups except groups 225.0.0.0 to 225.0.0.255.
l Configure ACL 2001.
[device] acl number 2001
[device-acl-basic-2001] rule deny source 225.0.0.0 0.0.0.255
[device-acl-basic-2001] rule permit source any
[device-acl-basic-2001] quit
l Create VLAN 2 and add GigabitEthernet1/0/2 to VLAN 2.
[device] vlan 2
[device-vlan2] port GigabitEthernet 1/0/2
[device-vlan2] quit
l Configure ACL 2001 on GigabitEthernet1/0/2 to allow this VLAN 2 port to join any IGMP multicast groups except those defined in the deny rule of ACL 2001.
[device] interface GigabitEthernet 1/0/2
[device-GigabitEthernet1/0/2] igmp-snooping group-policy 2001 vlan 2
igmp-snooping host-aging-time
Syntax
igmp-snooping host-aging-time seconds
undo igmp-snooping host-aging-time
View
System view
Parameters
seconds: Aging time (in seconds) of multicast member ports, in the range of 200 to 1,000.
Description
Use the igmp-snooping host-aging-time command to configure the aging time of multicast member port.
Use the undo igmp-snooping host-aging-time command to restore the default aging time.
By default, the aging time of multicast member ports is 260 seconds.
The aging time of multicast member ports determines the refresh frequency of multicast group members. In an environment where multicast group members change frequently, a relatively shorter aging time is required.
Related commands: igmp-snooping.
Examples
# Set the aging time of multicast member ports to 300 seconds.
<device>system-view
System View: return to User View with Ctrl+Z.
[device] igmp-snooping host-aging-time 300
igmp-snooping max-response-time
Syntax
igmp-snooping max-response-time seconds
undo igmp-snooping max-response-time
View
System view
Parameters
seconds: Query response timeout time in seconds, in the range of 1 to 25.
Description
Use the igmp-snooping max-response-time command to configure the query response timeout time.
Use the undo igmp-snooping max-response-time command to restore the default timeout time.
By default, the query response timeout time is 10 seconds.
Related commands: igmp-snooping, igmp-snooping router-aging-time.
Examples
# Set the query response timeout time to 15 seconds.
<device>system-view
System View: return to User View with Ctrl+Z.
[device] igmp-snooping max-response-time 15
igmp-snooping nonflooding-enable
Syntax
igmp-snooping nonflooding-enable
undo igmp-snooping nonflooding-enable
View
System view
Parameters
None
Description
Use the igmp-snooping nonflooding-enable command to enable the IGMP Snooping non-flooding function.
Use the undo igmp-snooping nonflooding-enable command to disable the IGMP Snooping non-flooding function.
By default, the IGMP Snooping non-flooding function is disabled.
You can configure this command only after IGMP Snooping is enabled globally. If IGMP Snooping is disabled globally, the configuration of the igmp-snooping nonflooding-enable command is also removed.
If the function of dropping unknown multicast packets is enabled, you cannot enable unknown multicast flooding suppression.
Examples
# Enable IGMP Snooping non-flooding after you enable IGMP Snooping globally and unknown-multicast dropping.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] igmp-snooping enable
[device] igmp-snooping nonflooding-enable
igmp-snooping querier
Syntax
igmp-snooping querier
undo igmp-snooping querier
View
VLAN view
Parameters
None
Description
Use the igmp-snooping querier command to enable the IGMP Snooping querier feature on the current VLAN of the Layer 2 multicast device.
Use the undo igmp-snooping querier command to disable the IGMP Snooping querier feature on the current VLAN of the Layer 2 multicast device.
By default, the IGMP Snooping querier feature of the Layer 2 multicast device is disabled.
Examples
# Enable the IGMP Snooping feature on VLAN 3 of the Layer 2 multicast device.
<device> system-view
System view, return to user view with Ctrl+Z.
[device] igmp-snooping enable
[device] vlan 3
[device-vlan3] igmp-snooping enable
[device-vlan3] igmp-snooping querier
igmp-snooping query-interval
Syntax
igmp-snooping query-interval seconds
undo igmp-snooping query-interval
View
VLAN view
Parameters
seconds: Interval for the Layer 2 multicast device to send general queries, ranging from 1 to 300, in seconds.
Description
Use the igmp-snooping query-interval command to configure the interval for the Layer 2 multicast device to send general queries.
Use the undo igmp-snooping query-interval command to restore the interval to the default value.
By default, the Layer 2 multicast device sends general queries at the interval of 60 seconds.
These commands are effective after the IGMP Snooping querier feature is enabled. Otherwise, the device will not send general queries. The configured query interval must be longer than the maximum response time for general queries.
Examples
# Configure the Layer 2 multicast device to send general queries at the interval of 100 seconds in VLAN 3.
<device> system-view
System view, return to user view with Ctrl+Z.
[device] igmp-snooping enable
[device] vlan 3
[device-vlan3] igmp-snooping enable
[device-vlan3] igmp-snooping querier
[device-vlan3] igmp-snooping query-interval 100
igmp-snooping router-aging-time
Syntax
igmp-snooping router-aging-time seconds
undo igmp-snooping router-aging-time
View
System view
Parameters
seconds: Aging time (in seconds) of the router port, in the range of 1 to 1,000.
Description
Use the igmp-snooping router-aging-time command to configure the aging time of the IGMP Snooping router port.
Use the undo igmp-snooping router-aging-time command to restore the default aging time.
By default, the aging time of the router port is 105 seconds.
The router port here refers to the port connecting the Layer 2 device to the router. The Layer 2 device receives IGMP general query messages from the router through this port. The aging time of the router port should be a value about 2.5 times of the general query interval.
Related commands: igmp-snooping max-response-time, igmp-snooping.
Examples
# Set the aging time of the router port to 500 seconds.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] igmp-snooping router-aging-time 500
igmp-snooping version
igmp-snooping version version-number
undo igmp-snooping version
View
VLAN view
Parameters
version-number: IGMP version, in the range of 2 to 3 and defaulting to 2.
Description
Use the igmp-snooping version command to configure the IGMP Snooping version in the current VLAN.
Use the undo igmp-snooping version command to restore the default IGMP Snooping version.
Examples
# Set IGMP Snooping version to version 3 in VLAN 100.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] vlan 100
[device-vlan100] igmp-snooping version 3
igmp-snooping vlan-mapping
Syntax
igmp-snooping vlan-mapping vlan vlan-id
undo igmp-snooping vlan-mapping
View
System view
Parameters
vlan-id: VLAN ID, in the range of 1 to 4094.
Description
Use the igmp-snooping vlan-mapping vlan command to configure the VLAN Tag for general and group-specific query messages sent or forwarded by IGMP Snooping.
Use the undo igmp-snooping vlan-mapping command to cancel the configuration.
By default, no VLAN Tag is configured for general and group-specific query messages sent or forwarded by IGMP Snooping.
Examples
<device>system-view
System View: return to User View with Ctrl+Z.
[device] igmp-snooping enable
[device] igmp-snooping vlan-mapping vlan 2
igmp host-join
igmp host-join group-address [source-ip source-address] vlan vlan-id
undo igmp host-join group-address [source-ip source-address] vlan vlan-id
View
Ethernet port view
Parameters
group-address: Address of the multicast group the simulated host is to join.
source-address: Address of the multicast source the simulated host is to join. This parameter is valid only when IGMP-Snooping version 3 is enabled in a VLAN.
vlan-id: ID of the VLAN to which the port belongs, in the range of 1 to 4094.
Description
Use the igmp host-join command to configure the current port as a simulated multicast group member host.
Use the undo igmp host-join command to remove the current port as a simulated multicast group member host.
l Before configuring a simulated host, enable IGMP Snooping in VLAN view first.
l The current port must belong to the specified VLAN; otherwise this configuration does not take effect.
Examples
# Configure GigabitEthernet 1/0/1 as a simulated host for multicast source 1.1.1.1 and multicast group 225.0.0.1.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet 1/0/1] igmp host-join 225.0.0.1 source-ip 1.1.1.1 vlan 10
multicast static-group interface
Syntax
multicast static-group group-address interface interface-list
undo multicast static-group group-address interface interface-list
View
VLAN interface view
Parameters
group-address: IP address of the multicast group joined statically, in the range of 224.0.0.0 to 239.255.255.255.
interface-list: Defines one or multiple Ethernet ports. You can provide up to 10 port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type start-interface-number to interface-type end-interface-number, where the end port number must be greater than the start port number.
Description
Use the multicast static-group interface command to configure specified port(s) in the current VLAN as static member port(s) for the specified multicast group.
Use the undo multicast static-group interface command to remove the specified port(s) in the current VLAN as static member port(s) for the specified multicast group.
By default, no port is configured as a static multicast group member port.
Examples
# Configure ports GigabitEthernet 1/0/1 to GigabitEthernet 1/0/3 on VLAN-interface 1 as static members ports for multicast group 225.0.0.1.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface Vlan-interface 1
[device-Vlan-interface1] multicast static-group 225.0.0.1 interface GigabitEthernet 1/0/1 to GigabitEthernet 1/0/3
multicast static-group vlan
Syntax
multicast static-group group-address vlan vlan-id
undo multicast static-group group-address vlan vlan-id
View
Ethernet port view
Parameters
group-address: IP address of the multicast group to be joined, in the range of 224.0.0.0 to 239.255.255.255.
vlan vlan-id: Specifies the VLAN the Ethernet port belongs to. vlan-id ranges from 1 to 4094.
Description
Use the multicast static-group vlan command to configure the current port in the specified VLAN(s) as a static member port for the specified multicast group.
Use the undo multicast static-group vlan command to remove the current port in the specified VLAN(s) as a static member port for the specified multicast group.
By default, no port is configured as a static multicast group member port.
Examples
# Configure port GigabitEthernet1/0/1 in VLAN 2 as a static member port for multicast group 225.0.0.1.
<device> system-view
System View: return to User View with Ctrl+Z.
[device]interface GigabitEthernet 1/0/1
[device-GigabitEthernet1/0/1] multicast static-group 225.0.0.1 vlan 2
multicast static-router-port
Syntax
multicast static-router-port interface-type interface-number
undo multicast static-router-port interface-type interface-number
View
VLAN view
Parameters
interface-type interface-number: Type and number of an Ethernet port.
Description
Use the multicast static-router-port command to configure the specified port in the current VLAN as a static router port.
Use the undo multicast static-router-port command to remove the specified port in the current VLAN as a static router port.
By default, the static router port function is disabled.
Examples
# Configure GigabitEthernet 1/0/1 in VLAN 10 as a static router port.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] vlan 10
[device-vlan10] multicast static-router-port GigabitEthernet1/0/1
multicast static-router-port vlan
Syntax
multicast static-router-port vlan vlan-id
undo multicast static-router-port vlan vlan-id
View
Ethernet port view
Parameters
vlan-id: VLAN ID the port belongs to, in the range of 1 to 4094.
Description
Use the multicast static-router-port vlan command to configure the current port in the specified VLAN as a static router port.
Use the undo multicast static-router-port vlan command to remove the current port in the specified VLAN as a static router port.
By default, the static router port function is disabled.
Examples
# Configure GigabitEthernet 1/0/1 in VLAN 10 as a static router port.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet 1/0/1
[device-GigabitEthernet 1/0/1] multicast static-router-port vlan 10
reset igmp-snooping statistics
Syntax
reset igmp-snooping statistics
View
User view
Parameters
None
Description
Use the reset igmp-snooping statistics command to clear IGMP Snooping statistics.
Related commands: igmp-snooping.
Examples
# Clear IGMP Snooping statistics.
<device> reset igmp-snooping statistics
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 a multicast VLAN.
Use the undo service-type multicast command to remove the current VLAN as a multicast VLAN.
By default, no VLAN is a multicast VLAN.
In an IGMP Snooping environment, by configuring a multicast VLAN and adding ports to the multicast VLAN, you can allow users in different VLANs to share the same multicast VLAN. This saves bandwidth because multicast streams are transmitted only within the multicast VLAN. In addition, because the multicast VLAN is isolated from user VLANs, this method also enhances the information security.
l One port belongs to only one multicast VLAN.
l The port connected to a user terminal must be a hybrid port.
l The multicast member port must be in the same multicast VLAN with the router port. Otherwise, the port cannot receive multicast packets.
l If a router port is in a multicast VLAN, the router port must be configured as a trunk port or a hybrid port that allows tagged packets to pass for the multicast VLAN. Otherwise, all the multicast member ports in this multicast VLAN cannot receive multicast packets.
l If a multicast member port needs to receive multicast packets forwarded by a router port that does not belong to any multicast VLAN, the multicast member port must be removed from the multicast VLAN. Otherwise, the port cannot receive multicast packets.
Examples
# Configure VLAN 2 as a multicast VLAN.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] vlan 2
[device-vlan2] service-type multicast
Common Multicast Configuration Commands
display mac-address multicast
Syntax
display mac-address multicast [ static [ { { mac-address vlan vlan-id | vlan vlan-id } [ count ] } | count ] ]
View
Any view
Parameters
static: Displays static multicast MAC address entries.
mac-address vlan vlan-id: Displays multicast MAC address entry/entries in the specified VLAN.
count: Displays the number of MAC entries.
vlan vlan-id: ID of the specific VLAN.
Description
Use the display mac-address multicast command to display the multicast MAC address entry/entries manually configured on the device.
l Executing this command with neither mac-address vlan vlan-id nor vlan vlan-id will display the information about all the multicast MAC address entries manually added on the device, including the multicast MAC address, VLAN ID, state of the MAC address, port number and aging time.
l Executing this command with vlan vlan-id but without mac-address will display the information about all the multicast MAC address entries manually added in the specified VLAN, including the multicast MAC address, VLAN ID, state of the MAC address, port number and aging time.
l Executing this command with both mac-address and vlan vlan-id will display the information about the multicast MAC address entries manually added in the specified VLAN with the specified multicast MAC address, including the multicast MAC address, VLAN ID, state of the MAC address, port number and aging time.
l Executing this command with count will display the information about the number of multicast MAC address entries added on the device.
Examples
# Display all the multicast MAC address entries manually added in VLAN 1.
<device>display mac-address multicast static vlan 1
Unit 1
MAC ADDR VLAN ID STATE PORT INDEX AGING TIME(s)
0100-0001-0001 1 Config static GigabitEthernet1/0/1 NOAGED
GigabitEthernet1/0/2
GigabitEthernet1/0/3
GigabitEthernet1/0/4
--- 1 static mac address(es) found ---
mac-address multicast interface
Syntax
mac-address multicast mac-address interface interface-list vlan vlan-id
undo mac-address multicast [ mac-address [ interface interface-list ] vlan vlan-id ]
View
System view
Parameters
mac-address: Multicast MAC address.
vlan-id: VLAN ID.
interface-list: Defines one or multiple forwarding ports. You can provide up to 10 port lists, by each of which you can specify an individual port in the form of interface-type interface-number, or a port range in the form of interface-type start-interface-number to interface-type end-interface-number, where the end port number must be greater than the start port number. Refer to the parameter description in Port Basic Configuration.in H3C WX3000 Series Unified Switches Switching Engine Command Reference.
Description
Use the mac-address multicast command to add a multicast MAC address entry.
Use the undo mac-address multicast command to remove a multicast MAC address entry.
Each multicast MAC address entry contains multicast address, forward port, VLAN ID, and so on.
Related commands: display mac-address multicast static.
Examples
# Add a multicast MAC address entry, with multicast address 0100-5e0a-0805, forward port GigabitEthernet 1/0/1, and VLAN 1 to which the entry belongs.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] mac-address multicast 0100-5e0a-0805 interface GigabitEthernet 1/0/1 vlan 1
mac-address multicast vlan
Syntax
mac-address multicast mac-address vlan vlan-id
undo mac-address multicast [ [ mac-address ] vlan vlan-id ]
View
Ethernet port view
Parameters
mac-address: Multicast MAC address.
vlan-id: VLAN ID.
Description
Use the mac-address multicast vlan command to add a multicast MAC address entry.
Use the undo mac-address multicast vlan command to remove a multicast MAC address entry.
Each multicast MAC address entry contains multicast address, VLAN ID, and so on.
Related commands: display mac-address multicast static.
Examples
# Add a multicast MAC address entry on GigabitEthernet 1/0/1, with multicast address 0100-1000-1000 and VLAN 1 to which the entry belongs.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] interface GigabitEthernet1/0/1
[device-GigabitEthernet1/0/1] mac-address multicast 0100-1000-1000 vlan 1
unknown-multicast drop enable
Syntax
unknown-multicast drop enable
undo unknown-multicast drop enable
View
System view
Parameters
None
Description
Use the unknown-multicast drop enable command to enable the unknown multicast drop feature on the device.
Use the undo unknown-multicast drop enable command to disable the unknown multicast drop feature on the device.
Examples
Enable the unknown multicast drop feature.
<device> system-view
System view: return to user view with Ctrl+Z.
[device] unknown-multicast drop enable