Table of Contents
Chapter 1 IGMP Snooping Configuration Commands. 1-1
1.1 IGMP Snooping Configuration Commands. 1-1
1.1.1 display igmp-snooping configuration. 1-1
1.1.2 display igmp-snooping group. 1-2
1.1.3 display igmp-snooping statistics. 1-3
1.1.4 igmp-snooping. 1-5
1.1.5 igmp-snooping fast-leave. 1-5
1.1.6 igmp-snooping general-query source-ip. 1-7
1.1.7 igmp-snooping group-limit 1-8
1.1.8 igmp-snooping group-policy. 1-9
1.1.9 igmp-snooping host-aging-time. 1-11
1.1.10 igmp-snooping nonflooding-enable. 1-12
1.1.11 igmp-snooping querier 1-13
1.1.12 igmp-snooping query-interval 1-14
1.1.13 igmp-snooping router-aging-time. 1-15
1.1.14 igmp-snooping version. 1-15
1.1.15 igmp-snooping vlan-mapping. 1-16
1.1.16 igmp host-join. 1-17
1.1.17 multicast static-group interface. 1-18
1.1.18 multicast static-group vlan.
1-19
1.1.19 multicast static-router-port 1-20
1.1.20 multicast static-router-port vlan. 1-20
1.1.21 reset igmp-snooping statistics. 1-21
1.1.22 service-type multicast 1-22
Chapter 2 Common Multicast Configuration Commands. 2-1
2.1 Common Multicast Configuration Commands. 2-1
2.1.1 display mac-address multicast static. 2-1
2.1.2 display multicast-source-deny. 2-2
2.1.3 mac-address multicast interface. 2-3
2.1.4 mac-address multicast vlan. 2-4
2.1.5 multicast-source-deny. 2-4
2.1.6 unknown-multicast drop enable. 2-6
Chapter 1 IGMP Snooping Configuration Commands
The feature
Suppressing Flooding of Unknown Multicast Traffic in a VLAN is added in the
software version Release 2301. The related command is igmp-snooping
nonflooding-enable.
1.1 IGMP Snooping Configuration Commands
1.1.1 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.
If IGMP Snooping is disabled on this
switch, this command displays a message showing that IGMP Snooping is not
enabled.
With IGMP Snooping enabled, this command
displays the following information:
l IGMP Snooping status
l aging time of the router port
l maximum response time in IGMP queries
l aging time of multicast member ports
l non-flooding feature status
Related commands: igmp-snooping, igmp-snooping
router-aging-time, igmp-snooping host-aging-time.
Examples
# Display IGMP Snooping configuration
information on the switch.
<Sysname> 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).
The above-mentioned information shows: IGMP
Snooping is enabled, the aging time of the router port is 105 seconds, the
maximum response time in IGMP queries is 10 seconds, and the aging time of
multicast member ports is 260 seconds.
1.1.2 display igmp-snooping group
Syntax
display igmp-snooping
group [ vlan vlan-id ]
View
Any view
Parameters
vlan
vlan-id: Specifies the VLAN in which the multicast
group information is to be displayed, where vlan-id ranges from 1 to
4094.. If you do not specify a VLAN, this command displays the multicast group
information of all VLANs.
Description
Use the display igmp-snooping group
command to display the IGMP Snooping multicast group information.
Related commands: igmp-snooping, igmp
host-join, multicast static-group interface, multicast
static-group vlan, multicast static-router-port, multicast
static-router-port vlan
Examples
# Display the information about the
multicast groups in VLAN 100.
<Sysname> display igmp-snooping
group vlan 100
Total 1 IP Group(s).
Total 1 MAC Group(s).
Vlan(id):100.
Total 1 IP
Group(s).
Total 1 MAC
Group(s).
Static Router
port(s):
Ethernet1/0/11
Dynamic Router
port(s):
Ethernet1/0/22
IP group(s):the following ip group(s)
match to one mac group.
IP group address:228.0.0.1
Static host port(s):
Ethernet1/0/23
Dynamic host port(s):
Ethernet1/0/10
MAC group(s):
MAC group address:0100-5e00-0001
Host port(s):Ethernet1/0/10 Ethernet1/0/23
Table 1-1 display igmp-snooping
group command output description
|
Field
|
Description
|
|
Total 1 IP Group(s).
|
Total number of IP multicast groups in
all VLANs
|
|
Total 1 MAC Group(s).
|
Total
number of MAC multicast groups in all VLANs
|
|
Vlan(id):
|
ID of the
VLAN whose multicast group information is displayed
|
|
Total 1 IP Group(s).
|
Total number of IP multicast groups in
VLAN 100
|
|
Total 1 MAC Group(s).
|
Total number of MAC multicast groups in
VLAN 100
|
|
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
|
1.1.3 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.
When IGMPv3
Snooping is enabled, the device makes statistics of IGMPv3 messages as IGMPv2
messages.
Related commands: igmp-snooping.
Examples
# Display IGMP Snooping statistics.
<Sysname> 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
1.1.4 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.
Caution:
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
switch.
<Sysname>system-view
System View: return to User View with
Ctrl+Z.
[Sysname] igmp-snooping enable
Enable IGMP-Snooping ok.
1.1.5 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 vlan-list:
Specifies a VLAN list. With the vlan-list argument, you can provide one
or more individual VLAN IDs (in the form of vlan-id) and/or one or more
VLAN ID ranges (in the form of vlan-id1 to vlan-id2, where
vlan-id2 must be greater than vlan-id1). The effective range for
a VLAN ID is 1 to 4094 and the total number of individual VLANs plus VLAN
ranges cannot exceed 10.
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 switch 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
Ethernet 1/0/1 in VLAN 2.
<Sysname>system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] igmp-snooping
fast-leave vlan 2
1.1.6 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 IP address of the current VLAN interface as the source address of
IGMP general queries. If the current VLAN interface does not have an IP
address, the default IP address 0.0.0.0 will be
used as the source IP address of IGMP general queries.
ip-address:
Specifies the source address of IGMP general queries, which can be any legal IP
address.
Description
Use the igmp-snooping general-query
source-ip command to configure the source address of IGMP general
queries.
Use the undo igmp-snooping
general-query source-ip command to restore the default.
This command can take effect only if the
IGMP Snooping querier function is enabled on the switch.
By default, the Layer 2 multicast switch
sends general query messages with the source IP address of 0.0.0.0.
Related commands: igmp-snooping querier,
igmp-snooping query-interval.
Examples
# Configure the switch to send general
query messages with the source IP address 2.2.2.2
in VLAN 3.
<Sysname> system-view
System view, return to user view with
Ctrl+Z.
[Sysname] igmp-snooping enable
[Sysname] vlan 3
[Sysname-vlan3] igmp-snooping enable
[Sysname-vlan3] igmp-snooping querier
[Sysname-vlan3] igmp-snooping
general-query source-ip 2.2.2.2
1.1.7 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 512.
overflow-replace:
Allows a new multicast group to replace an existing multicast group with the
lowest IP address.
vlan vlan-list:
Specifies a VLAN list. With the vlan-list argument, you can provide one
or more individual VLAN IDs (in the form of vlan-id) and/or one or more
VLAN ID ranges (in the form of vlan-id1 to vlan-id2, where
vlan-id2 must be greater than vlan-id1). The effective range for
a VLAN ID is 1 to 4094 and the total number of individual VLANs plus VLAN
ranges cannot exceed 10.
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.
If you do not specify any VLAN, the command
will take effect for all the VLANs to which the current port belongs; if you
specify a VLAN or multiple VLANs, the command will take effect for the port
only if the port belongs to the specified VLAN(s). It is recommended to specify
a VLAN or multiple VLANs to save memory.
The system default is 512.
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 switch should
process.
l
When the number of multicast groups exceeds the
configured limit, the switch 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.
Examples
# Configure to allow Ethernet 1/0/1 in VLAN 2 to join a maximum of 200
multicast groups.
<Sysname>system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] igmp-snooping
group-limit 200 vlan 2
1.1.8 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 vlan-list:
Specifies a VLAN list. With the vlan-list argument, you can provide one
or more individual VLAN IDs (in the form of vlan-id) and/or one or more
VLAN ID ranges (in the form of vlan-id1 to vlan-id2, where
vlan-id2 must be greater than vlan-id1). The effective range for
a VLAN ID is 1 to 4094 and the total number of individual VLANs plus VLAN
ranges cannot exceed 10.
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 switch 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 a multicast group filter to
allow receivers attached to Ethernet 1/0/1 to access the multicast streams for
groups 225.0.0.0 to 225.255.255.255.
l Configure ACL 2000.
<Sysname>system-view
System View: return to User View with
Ctrl+Z.
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit
source 225.0.0.0 0.255.255.255
[Sysname-acl-basic-2000] quit
l Create VLAN 2 and add Ethernet1/0/1 to VLAN 2.
[Sysname] vlan
2
[Sysname-vlan2]
port Ethernet 1/0/1
[Sysname-vlan2]
quit
l Apply ACL 2000 on Ethernet1/0/1 to allow it to join only the IGMP
multicast groups defined in the rule of ACL 2000.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] igmp-snooping
group-policy 2000 vlan 2
[Sysname-Ethernet1/0/1] quit
# Configure a multicast group filter to
allow receivers attached to Ethernet 1/0/2 to access the multicast streams for
any groups except groups 225.0.0.0 to 225.0.0.255.
l Configure ACL 2001.
[Sysname] acl number 2001
[Sysname-acl-basic-2001] rule deny
source 225.0.0.0 0.0.0.255
[Sysname-acl-basic-2001] rule permit
source any
[Sysname-acl-basic-2001] quit
l Create VLAN 2 and add Ethernet1/0/2 to VLAN 2.
[Sysname] vlan
2
[Sysname-vlan2]
port Ethernet 1/0/2
[Sysname-vlan2]
quit
l Configure ACL 2001 on Ethernet1/0/2 to it to join any IGMP multicast
groups except those defined in the deny rule of ACL 2001.
[Sysname] interface Ethernet 1/0/2
[Sysname-Ethernet1/0/2] igmp-snooping
group-policy 2001 vlan 2
1.1.9 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
ports.
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: display igmp-snooping
configuration.
Examples
# Set the aging time of multicast member
ports to 300 seconds.
<Sysname>system-view
System View: return to User View with
Ctrl+Z.
[Sysname] igmp-snooping
host-aging-time 300
1.1.10 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. With this
function enabled, unknown multicast packets are passed to the router ports of
the switch rather than being flooded in the VLAN.
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, namely unknown multicast packets are flooded in the VLAN.
The difference between the IGMP Snooping
non-flooding function and the function of dropping unknown multicast packets is
in that the former passes unknown multicast packets to the router ports while
the latter directly discards unknown multicast packets.
You can configure this command only after
IGMP Snooping is enabled globally. When IGMP Snooping is disabled globally, the
configuration of the igmp-snooping nonflooding-enable command is also
removed.
l
IGMP Snooping must be enabled before you enable the
function of unknown multicast flooding suppression.
l
If the function of dropping unknown multicast packets
is enabled, you cannot enable the IGMP Snooping non-flooding function.
l
The IGMP Snooping non-flooding function and the
multicast source port suppression function cannot take effect at the same time.
If both are configured, only the multicast source port suppression function
takes effect.
Related commands: unknown-multicast drop
enable, multicast-source-deny, display multicast-source-deny
Examples
# Enable IGMP Snooping non-flooding after
you enable IGMP Snooping globally and disable both port stacking and unknown-multicast
dropping.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] igmp-snooping enable
[Sysname] igmp-snooping
nonflooding-enable
1.1.11 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.
Use the undo igmp-snooping
querier command to restore the default.
By default, the IGMP Snooping querier feature
is disabled.
This command takes effect only if IGMP
Snooping is enabled globally and also enabled in the current VLAN.
Related commands: igmp-snooping enable,
igmp-snooping query-interval, igmp-snooping general-query source-ip
Examples
# Enable the IGMP Snooping querier in VLAN
3.
<Sysname> system-view
System view, return to user view with
Ctrl+Z.
[Sysname] igmp-snooping enable
[Sysname] vlan 3
[Sysname-vlan3] igmp-snooping enable
[Sysname-vlan3] igmp-snooping querier
1.1.12 igmp-snooping query-interval
Syntax
igmp-snooping
query-interval seconds
undo igmp-snooping
query-interval
View
VLAN view
Parameters
seconds:
IGMP query interval, ranging from 1 to 300, in seconds.
Description
Use the igmp-snooping
query-interval command to configure the IGMP query interval, namely the
interval at which the switch sends IGMP general queries.
Use the undo igmp-snooping
query-interval command to restore the default.
By default, the IGMP query interval is 60
seconds.
These commands are effective only after the
IGMP Snooping querier feature is enabled. Otherwise, the switch will not send
general queries. The configured query interval must be longer than the maximum
response time in general queries.
Related commands: igmp-snooping, igmp-snooping
querier, igmp-snooping general-query source-ip
Examples
# Configure the IGMP query interval to 100
seconds in VLAN 3.
<Sysname> system-view
System view, return to user view with
Ctrl+Z.
[Sysname] igmp-snooping enable
[Sysname] vlan 3
[Sysname-vlan3] igmp-snooping enable
[Sysname-vlan3] igmp-snooping querier
[Sysname-vlan3] igmp-snooping
query-interval 100
1.1.13 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 of router ports, in the range of 1 to 1,000, in seconds.
Description
Use the igmp-snooping router-aging-time
command to configure the aging time of router ports.
Use the undo igmp-snooping
router-aging-time command to restore the default aging time.
By default, the aging time of router ports
is 105 seconds.
The aging time of router ports should be
about 2.5 times the IGMP query interval.
Related commands: igmp-snooping.
Examples
# Set the aging time of the router port to
500 seconds.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] igmp-snooping
router-aging-time 500
1.1.14 igmp-snooping
version
Syntax
igmp-snooping version version-number
undo igmp-snooping version
View
VLAN view
Parameters
version-number: IGMP Snooping 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.
This command can take effect only if IGMP
Snooping is enabled in the VLAN.
Related commands: igmp-snooping enable.
Examples
# Set IGMP Snooping version to version 3 in VLAN 100.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] igmp-snooping enable
Enable IGMP-Snooping ok.
[Sysname] vlan 100
[Sysname -vlan100] igmp-snooping
enable
[Sysname -vlan100] igmp-snooping
version 3
1.1.15 igmp-snooping
vlan-mapping
Syntax
igmp-snooping
vlan-mapping vlan vlan-id
undo igmp-snooping vlan-mapping
View
System view
Parameters
vlan vlan-id: VLAN ID, in the range of 1 to 4094.
Description
Use the igmp-snooping vlan-mapping vlan
command to configure to transmit IGMP general and group-specific query messages
in a specific VLAN.
Use the undo igmp-snooping vlan-mapping
command to restore the default.
By default, the VLAN tag carried in IGMP
general and group-specific query messages is not changed.
Examples
# Configure IGMP general and group-specific
query messages to be transmitted in VLAN 2.
<Sysname>system-view
System View: return to User View with
Ctrl+Z.
[Sysname] igmp-snooping enable
[Sysname] igmp-snooping vlan-mapping
vlan 2
1.1.16 igmp host-join
Syntax
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 to join.
source-address: Address of the multicast source to join. You can specify a
multicast source address only when IGMPv3 Snooping is running in a VLAN.
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 to join
the specified multicast group or source and group.
Use the undo igmp host-join command
to remove the current port as a simulated member host for the specified
multicast group or source-group.
Unlike a static member port, a port
configured as a simulated member host will age out like a dynamic member port.
Related commands: igmp-snooping enable,
multicast static-group interface, multicast static-group vlan
Caution:
l
Before configuring a port as 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 Ethernet 1/0/1 in VLAN 1 as a simulated member host for
multicast source 1.1.1.1 and
multicast group 225.0.0.1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname]igmp-snooping enable
Enable IGMP-Snooping ok.
[Sysname]vlan 1
[Sysname-vlan1]igmp-snooping enable
[Sysname-vlan1]igmp-snooping version
3
[Sysname-vlan1]quit
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet 1/0/1] igmp
host-join 225.0.0.1 source-ip 1.1.1.1 vlan 10
1.1.17 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 to join, in the range of
224.0.0.0 to 239.255.255.255.
interface interface-list:
Specifies a port list. With the interface-list argument, you can define
one or more individual ports (in the form of interface-type interface-number)
and/or one or more port ranges (in the form of interface-type interface-number1
to interface-type interface-number2, where interface-number2
must be greater than interface-number1). The total number of individual
ports plus port ranges cannot exceed 10. For port types and port numbers, refer
to the parameter description in the “Port Basic Configuration” part
in this manual.
Description
Use the multicast static-group interface
command to configure the specified port(s) under the current VLAN interface 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 Ethernet 1/0/1 to
Ethernet 1/0/3 under VLAN-interface 1 as static members ports for multicast
group 225.0.0.1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Vlan-interface 1
[Sysname-Vlan-interface1] multicast
static-group 225.0.0.1 interface Ethernet 1/0/1 to Ethernet 1/0/3
1.1.18 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 join, in the range of
224.0.0.0 to 239.255.255.255.
vlan vlan-id:
Specifies the VLAN the Ethernet port belongs to, where vlan-id ranges
from 1 to 4094.
Description
Use the multicast static-group vlan
command to configure the current port in the specified VLAN 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 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 Ethernet1/0/1 in VLAN 2 as a static member port for
multicast group 225.0.0.1.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname]interface Ethernet 1/0/1
[Sysname-Ethernet1/0/1] multicast
static-group 225.0.0.1 vlan 2
1.1.19 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: Specifies a port by its type and number.
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, a port is not a static router
port.
Examples
# Configure Ethernet 1/0/1 in VLAN 10 as a static router port.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] vlan 10
[Sysname-vlan10] multicast
static-router-port Ethernet1/0/1
1.1.20 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 Ethernet 1/0/1 in VLAN 10 as a static router port.
<Sysname> system-view
System View: return to User View with
Ctrl+Z.
[Sysname] interface Ethernet 1/0/1
[Sysname-Ethernet 1/0/1] multicast
static-router-port vlan 10
1.1.21 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: display igmp-snooping
statistics.