1.1 IGMP Snooping Configuration Commands
Syntax
display igmp-snooping group [ vlan vlan-id ] [ verbose ]
View
Any view
Parameter
vlan vlan-id:
Displays the multicast group information in the specified VLAN, where vlan-id
is in the range of 1 to 4094. If you do not specify a VLAN, this command
will display the multicast group information in all VLANs.
verbose:
Specifies to display the detailed information of multicast groups.
Description
Use the display igmp-snooping
group command to view the multicast group information learned by IGMP
Snooping.
Example
# View the detailed information of
multicast groups in VLAN 2 learned by IGMP Snooping.
<H3C> display igmp-snooping
group vlan 2 verbose
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Port flags: D-Dynamic port,
S-Static port, A-Aggregation port, C-Copy port
Subvlan flags: R-Real VLAN, C-Copy
VLAN
Vlan(id):2.
Total 1 IP Group(s).
Total 1 IP Source(s).
Total 1 MAC Group(s).
Router
port(s):total 1 port.
GigabitEthernet1/0/2
(D) ( 00:01:30 )
IP group(s):the following ip
group(s) match to one mac group.
IP group address:224.1.1.1
(1.1.1.1, 224.1.1.1):
Attribute: Host Port
Host
port(s):total 1 port.
GigabitEthernet1/0/1
(D) ( 00:03:23 )
MAC group(s):
MAC group
address:0100-5e01-0101
Host port(s):total 1 port.
GigabitEthernet1/0/1
Table 1-1
Description of the fields of the display
igmp-snooping group command
|
Field
|
Description
|
|
Total 1 IP Group(s).
|
Total number of IP multicast groups
|
|
Total 1 IP Source(s).
|
Total number of multicast sources
|
|
Total 1 MAC Group(s).
|
Total number of MAC multicast groups
|
|
Port flags: D-Dynamic port, S-Static
port, A-Aggregation port, C-Copy port
|
Port flags: D for dynamic port, S for
static port, A for aggregation port, C for port copied from a (*, G) entry to
an (S, G) entry
|
|
Subvlan flags: R-Real VLAN, C-Copy VLAN
|
Sub-VLAN flags: R for real egress
sub-VLAN under the current entry, C for sub-VLAN copied from a (*, G) entry
to an (S, G) entry
|
|
Router port(s)
|
Number of router ports
|
|
IP group address
|
Address of IP multicast group
|
|
MAC group address
|
Address of MAC multicast group
|
|
Attribute
|
Attribute of IP multicast group
|
|
Host port(s)
|
Number of host member ports
|
Syntax
display igmp-snooping statistics
View
Any view
Parameter
None
Description
Use the display igmp-snooping statistics
command to view the statistics information of IGMP messages learned by IGMP
Snooping.
Example
# View the statistics information of IGMP
messages learned by IGMP Snooping. .
<H3C> display igmp-snooping
statistics
Received IGMP general query
packet(s) number:0.
Received IGMP V1 report packet(s)
number:0.
Received IGMP V2 report packet(s)
number:19.
Received IGMP leave packet(s)
number:0.
Received IGMP V2 specific query
packet(s) number:0.
Sent IGMP V2 specific query
packet(s) number:0.
Received IGMP V3 report packet(s)
number:1.
Received IGMP V3 specific query
packet(s) number:0.
Received IGMP V3 specific sg query
packet(s) number:0.
Sent IGMP V3 specific query
packet(s) number:0.
Sent IGMP V3 specific sg query
packet(s) number:0.
Received error IGMP packet(s)
number:19.
Table 1-2
Description of the fields of the display
igmp-snooping statistics command
|
Field
|
Description
|
|
general query packet(s)
|
General query message(s)
|
|
specific query packet(s)
|
Group-specific query message(s)
|
|
report packet(s)
|
Report message(s)
|
|
leave packet(s)
|
Leave message(s)
|
|
specific sg query packet(s)
|
Group- and source-specific query
message(s)
|
1.1.3 fast-leave
Syntax
fast-leave [
vlan vlan-list ]
undo fast-leave [ vlan vlan-list ]
View
IGMP Snooping view
Parameter
vlan vlan-list: Configures the fast leave feature in the specified VLAN. Here vlan-list
is a VLAN list. You can specify multiple VLANs or VLAN ranges by providing this
argument in the form of vlan-list = { vlan-id [ to vlan-id
] }&<1-10>, where vlan-id is in the range of 1 to 4094, and
&<1-10> means that you can specify up to 10 VLANs or VLAN ranges for
this argument.
Description
Use the fast-leave command to enable
the fast leave feature globally.
Use the undo fast-leave command to
disable the fast leave feature globally.
By default, the fast leave feature is
disabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN, the command will
take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command
will take effect for the specified VLAN(s) only.
Related command: igmp-snooping
fast-leave.
Example
# Enable the fast leave feature globally in
VLAN 2.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] fast-leave vlan 2
1.1.4 group-policy
Syntax
group-policy acl-number [ vlan vlan-list
]
undo group-policy [ vlan vlan-list ]
View
IGMP Snooping view
Parameter
acl-number:
Basic ACL number, in the range of 2000 to 2999.
vlan vlan-list: Configures a multicast group filter in the specified VLAN(s). Here
vlan-list is a VLAN list. You can specify multiple VLANs or VLAN ranges
by providing this argument in the form of vlan-list = { vlan-id [
to vlan-id ] }&<1-10>, where vlan-id is in the
range of 1 to 4094, and &<1-10> means that you can specify up to 10
VLANs or VLAN ranges for this argument.
Description
Use the group-policy command to
configure a global multicast group filter.
Use the undo group-policy command to
remove the configured global multicast group filter.
By default, no global multicast group filter is configured, namely a host can join any
multicast group.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN, the command will
take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command
will take effect for the specified VLAN(s) only.
l
If the specified ACL rule does not exist or the
ACL rule is null, all multicast groups will be filtered out.
l
You can configure different ACL rules for a port
in different VLANs, and the newly configured ACL rules will override the
existing ones.
Related command: igmp-snooping
group-policy.
Example
# Configure ACL 2000 as the multicast group
filter in VLAN 2.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] group-policy 2000
vlan 2
1.1.5
host-aging-time
Syntax
host-aging-time interval
undo host-aging-time
View
IGMP Snooping view
Parameter
interval:
Member port aging time, in units of seconds. The effective range is 200 to
1,000.
Description
Use the host-aging-time command to
configure the aging time of group member ports
globally..
Use the undo host-aging-time command
to restore the default setting.
By default, the aging time of group member
ports is 260 seconds.
This command works only on an IGMP
Snooping–enabled VLAN, but not on a VLAN with IGMP enabled on its VLAN
interface.
Related command: igmp-snooping
host-aging-time.
Example
# Set the aging time of group member ports
globally to 300 seconds.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] host-aging-time
300
1.1.6 igmp-snooping
Syntax
igmp-snooping
undo igmp-snooping
View
System view
Parameter
None
Description
Use the igmp-snooping command to
enable IGMP Snooping globally and enter IGMP Snooping view.
Use the undo igmp-snooping command
to disable IGMP Snooping globally.
By default, IGMP Snooping is disabled.
Related command: igmp-snooping
enable.
Example
Enable IGMP Snooping globally and enter
IGMP Snooping view
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping]
1.1.7 igmp-snooping drop-unknown
Syntax
igmp-snooping drop-unknown
undo igmp-snooping drop-unknown
View
VLAN view
Parameter
None
Description
Use the igmp-snooping drop-unknown
command to enable the function of silently dropping unknown multicast data in
the current VLAN.
Use the undo igmp-snooping drop-unknown
command to disable the function of silently dropping unknown multicast data in
the current VLAN.
By default, this function is disabled, that
is, unknown multicast data is flooded.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: drop-unknown.
Example
# In VLAN 2, enable the function of
silently dropping unknown multicast data.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
drop-unknown
1.1.8
igmp-snooping enable
Syntax
igmp-snooping enable
undo igmp-snooping enable
View
VLAN view
Parameter
None
Description
Use the igmp-snooping enable command
to enable IGMP Snooping in the current VLAN.
Use the undo igmp-snooping enable
command to disable IGMP Snooping in the current VLAN.
By default, IGMP Snooping is disabled in a
VLAN.
IGMP Snooping must be enabled globally
before it can be enabled in a VLAN.
Related command: igmp-snooping.
Example
# Enable IGMP Snooping in VLAN 2.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] quit
[H3C] vlan 2
[H3C-vlan2] igmp-snooping enable
1.1.9 igmp-snooping fast-leave
Syntax
igmp-snooping fast-leave [ vlan vlan-list ]
undo igmp-snooping fast-leave [ vlan vlan-list ]
View
Ethernet port view/Port group view
Parameter
vlan vlan-list: Configures the fast leave feature in the specified VLAN. Here vlan-list
is a VLAN list. You can specify multiple VLANs or VLAN ranges by providing this
argument in the form of vlan-list = { vlan-id [ to vlan-id
] }&<1-10>, where vlan-id is in the range of 1 to 4094, and
&<1-10> means that you can specify up to 10 VLANs or VLAN ranges for
this argument.
Description
Use the igmp-snooping fast-leave
command to enable the fast leave feature on the current port or group of ports.
Use the undo igmp-snooping fast-leave
command to disable the fast leave feature on the current port or group of
ports.
By default, the fast leave feature is
disabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN in Ethernet port
view, the command will take effect for the port no matter which VLAN the port
belongs to; 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).
l
If you do not specify any VLAN in port-group
view, the command will take effect for all the ports in this group no matter which
VLANs these port belong to; if you specify a VLAN or multiple VLANs, the
command will take effect for those ports in this group that belong to the
specified VLAN(s).
Related command: fast-leave.
Example
# Enable the fast leave feature on
GigabitEthernet 1/0/1, which belongs to VLAN 2.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C- GigabitEthernet 1/0/1]
igmp-snooping fast-leave vlan 2
Syntax
igmp-snooping general-query source-ip { current-interface | ip-address }
undo igmp-snooping general-query
source-ip
View
VLAN view
Parameter
current-interface: Sets the source address of IGMP general queries to the address of
the current VLAN interface. 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 configuration.
By default, the source IP address of IGMP
general queries is 0.0.0.0. .
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Example
# Set the IP address of the interface of
VLAN 2 to 10.1.1.1, with the subnet mask of 255.255.255.0, and specify this IP
address as the source IP address of IGMP general queries. .
<H3C> system-view
[H3C] interface vlan-interface 2
[H3C-Vlan-interface2] ip address
10.1.1.1 255.255.255.0
[H3C-Vlan-interface2] quit
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
general-query source-ip current-interface
Syntax
igmp-snooping group-limit limit [ vlan vlan-list ]
undo igmp-snooping group-limit [ vlan vlan-list ]
View
Ethernet port view/Port group view
Parameter
limit:
Maximum number of multicast groups that can pass the port(s), in the range of 1
to 128.
vlan vlan-list: Configures the maximum number of multicast groups that can pass
the ports in the specified VLAN(s). Here vlan-list is a VLAN list. You
can specify multiple VLANs or VLAN ranges by providing this argument in the
form of vlan-list = { vlan-id [ to vlan-id ]
}&<1-10>, where vlan-id is in the range of 1 to 4094, and
&<1-10> means that you can specify up to 10 VLANs or VLAN ranges for
this argument.
Description
Use the igmp-snooping
group-limit command to configure the maximum number of multicast groups
that can pass the port(s).
Use the undo igmp-snooping group-limit
command to restore the default setting.
By default, the maximum number of multicast
groups that can pass the port(s) is 256.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN in Ethernet port
view, the command will take effect for the port no matter which VLAN the port
belongs to; 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).
l
If you do not specify any VLAN in port-group
view, the command will take effect for all the ports in this group no matter
which VLANs these port belong to; if you specify a VLAN or multiple VLANs, the
command will take effect for those ports in this group that belong to the
specified VLAN(s).
Example
# Specify to allow a maximum of 10
multicast groups to pass GigabitEthernet1/0/1, which belongs to VLAN 2.
<H3C> system-view
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]
igmp-snooping group-limit 10 vlan 2
1.1.12 igmp-snooping group-policy
Syntax
igmp-snooping group-policy acl-number [ vlan vlan-list ]
undo igmp-snooping group-policy [ vlan vlan-list ]
View
Ethernet port view/Port group view
Parameter
acl-number:
Basic ACL number, in the range of 2000 to 2999.
vlan vlan-list: Configures a multicast group filter in the specified VLAN(s). Here
vlan-list is a VLAN list. You can specify multiple VLANs or VLAN ranges
by providing this argument in the form of vlan-list = { vlan-id [
to vlan-id ] }&<1-10>, where vlan-id is in the
range of 1 to 4094, and &<1-10> means that you can specify up to 10
VLANs or VLAN ranges for this argument.
Description
Use the igmp-snooping
group-policy command to configure a multicast group filter on the current
port(s).
Use the undo igmp-snooping group-policy
command to remove a multicast group filter on the current port(s).
Be default, no multicast group filter is
configured on an interface, namely a host can join any multicast group.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN in Ethernet port
view, the command will take effect for the port no matter which VLAN the port
belongs to; 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).
l
If you do not specify any VLAN in port-group
view, the command will take effect for all the ports in this group no matter
which VLANs these port belong to; if you specify a VLAN or multiple VLANs, the
command will take effect for those ports in this group that belong to the
specified VLAN(s).
l
If the specified ACL rule does not exist or the
ACL rule is null, all multicast groups will be filtered out.
l
You can configure different ACL rules for a port
in different VLANs, and the newly configured ACL rules will override the
existing one.
Related command: group-policy.
Example
# Configure ACL 2000 as the multicast group
filter on GigabitEthernet1/0/1, which belongs to VLAN 2.
<H3C> system-view
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]
igmp-snooping group-policy 2000 vlan 2
1.1.13 igmp-snooping host-aging-time
Syntax
igmp-snooping host-aging-time interval
undo igmp-snooping host-aging-time
View
VLAN view
Parameter
interval: Member port aging time, in units of seconds. The effective range
is 200 to 1,000.
Description
Use the igmp-snooping host-aging-time command
to configure the aging time of group member ports in the current VLAN.
Use the undo igmp-snooping
host-aging-time command to restore default setting.
By default, the aging time of group member
ports is 260 seconds.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: host-aging-time.
Example
# Set the aging time of group member ports
to 300 seconds in VLAN 2.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
host-aging-time 300
Syntax
igmp-snooping
host-join group-address [ source-ip source-address ] vlan vlan-id
undo igmp-snooping host-join group-address [ source-ip
source-address ] vlan vlan-id
View
Ethernet port view/Port group view
Parameter
group-address: Address of the multicast group that the
simulated host is to join, in the range of 224.0.1.0 to 239.255.255.255. .
source-address: Address of the multicast source that the
simulated host is to join. The value of this argument should be a valid unicast
address or 0.0.0.0. If the value is 0.0.0.0, this means that no multicast
source is specified.
vlan vlan-id:
Specifies the VLAN that comprises the Ethernet port(s), where vlan-id is
in the range of 1 to 4094.
Description
Use the igmp-snooping host-join command
to enable the function of simulating a member host of a multicast group or a
multicast source/group.
Use the undo igmp-snooping host-join
command to disable the function of simulating a member host of a multicast
group or a multicast source/group.
By default, this function is disabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
The source-ip source-address
statement in the command is meaningful only for IGMP Snooping version 3. If
IGMP Snooping version 2 is running, although you can include the source-ip source-address
statement in your command, the simulated host responses with only an IGMPv2
report when receiving a query message.
l
If configured in Ethernet port view, this
feature takes effect on the port only if the port belongs to the specified
VLAN.
l
If configured in port group view, this feature
takes effect only on those ports in this port group that belong to the
specified VLAN.
Example
# Enable the function of simulating a
member host of a multicast source/group on Ethernet 1/0, which belongs to VLAN
2. The multicast source address is 1.1.1.1 and the multicast group address is
224.1.1.1. .
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] quit
[H3C] vlan 2
[H3C-vlan2] igmp-snooping enable
[H3C-vlan2] igmp-snooping version 3
[H3C-vlan2] quit
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1] igmp-snooping
host-join 224.1.1.1 source-ip 1.1.1.1 vlan 2
Syntax
igmp-snooping last-member-query-interval
interval
undo igmp-snooping last-member-query-interval
View
VLAN view
Parameter
interval: Interval between IGMP last-member queries, in units of seconds. The
effective range is 1 to 5
Description
Use the igmp-snooping
last-member-query-interval command to configure the interval between IGMP
last-member queries in the VLAN.
Use the undo igmp-snooping
last-member-query-interval command to restore the default setting.
By default, the IGMP last-member query
interval is 1 second.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: last-member-query-interval.
Example
# Set the interval between IGMP last-member
queries to 3 seconds in VLAN 2.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping last-member-query-interval
3
1.1.16 igmp-snooping max-response-time
Syntax
igmp-snooping max-response-time interval
undo igmp-snooping max-response-time
View
VLAN view
Parameter
interval:
Maximum response time to IGMP general queries, in units of seconds. The
effective range is 1 to 25.
Description
Use the igmp-snooping max-response-time
command to configure the maximum response time to IGMP general queries in the
VLAN.
Use the undo igmp-snooping
max-response-time command to restore the default setting.
By default, the maximum response time to
IGMP general queries is 10 seconds.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: max-response-time and igmp-snooping query-interval.
Example
# Set the maximum response time to IGMP
general queries to 5 seconds in VLAN 2.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
max-response-time 5
1.1.17 igmp-snooping overflow-replace
Syntax
igmp-snooping overflow-replace [ vlan vlan-list ]
undo igmp-snooping overflow-replace [ vlan vlan-list ]
View
Ethernet port view/Port group view
Parameter
vlan vlan-list: Configures the multicast group replacement function in the
specified VLAN(s). Here vlan-list is a VLAN list. You can specify
multiple VLANs or VLAN ranges by providing this argument in the form of vlan-list
= { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id
is in the range of 1 to 4094, and &<1-10> means that you can
specify up to 10 VLANs or VLAN ranges for this argument.
Description
Use the igmp-snooping overflow-replace command
to enable the multicast group replacement function on the current port(s).
Use the undo igmp-snooping
overflow-replace command to disable the multicast group replacement
function on the current port(s).
By default, the multicast group replacement
function is disabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN in Ethernet port
view, the command will take effect for the port no matter which VLAN the port
belongs to; 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).
l
If you do not specify any VLAN in port-group
view, the command will take effect for all the ports in this group no matter
which VLANs these port belong to; if you specify a VLAN or multiple VLANs, the
command will take effect for those ports in this group that belong to the
specified VLAN(s).
Related command: overflow-replace.
Example
# Enable the multicast group replacement
function on GigabitEthernet1/0/1, which belongs to VLAN 2.
<H3C> system-view
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1]
igmp-snooping overflow-replace vlan 2
1.1.18
igmp-snooping querier
Syntax
igmp-snooping querier
undo igmp-snooping querier
View
VLAN view
Parameter
None
Description
Use the igmp-snooping querier command
to enable the IGMP Snooping querier function.
Use the undo igmp-snooping querier
command to disable the IGMP Snooping querier function.
By default, the IGMP Snooping querier
function is disabled.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Example
# Enable the IGMP Snooping querier function
in VLAN 2.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping querier
1.1.19 igmp-snooping query-interval
Syntax
igmp-snooping query-interval interval
undo igmp-snooping query-interval
View
VLAN view
Parameter
interval:
Interval between IGMP general queries, in units of seconds. The effective range
is 2 to 300.
Description
Use the igmp-snooping query-interval command
to configure the interval between IGMP general queries.
Use the undo igmp-snooping
query-interval command to restore the default setting.
By default, the IGMP general query interval
is 60 seconds.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: igmp-snooping
querier, igmp-snooping max-response-time and max-response-time.
Example
# Set the interval between IGMP general
queries to 20 seconds in VLAN 2.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
query-interval 20
1.1.20 igmp-snooping router-aging-time
Syntax
igmp-snooping router-aging-time interval
undo igmp-snooping router-aging-time
View
VLAN view
Parameter
interval:
Router port aging time, in units of seconds. The effective range is 1 to 1,000.
Description
Use the igmp-snooping router-aging-time command
to configure the aging time of router ports in the current VLAN.
Use the undo igmp-snooping
router-aging-time command to restore the default setting .
By default, the aging time of router ports
is 180 seconds.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: router-aging-time.
Example
# Set the aging time of router ports to 100
seconds in VLAN 2.
<H3C> system-view
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
router-aging-time 100
Syntax
igmp-snooping
source-deny
undo igmp-snooping source-deny
View
Ethernet port view/Port group view
Parameter
None
Description
Use the igmp-snooping source-deny command
to enable multicast source port filtering.
Use the undo igmp-snooping source-deny
command to disable multicast source port filtering.
By default, multicast source port filtering
is disabled.
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
When enabled to
filter IPv4 multicast data based on the source ports, are automatically enabled
to filter IPv6 multicast data based on the source ports.
Example
# Enable source port filtering for
multicast data on GigabitEthernet 1/0/1.
<H3C> system-view
[H3C] interface GigabitEthernet 1/0/1
[H3C-GigabitEthernet1/0/1]
igmp-snooping source-deny
1.1.22 igmp-snooping special-query
source-ip
Syntax
igmp-snooping special-query source-ip { current-interface | ip-address }
undo igmp-snooping special-query
source-ip
View
VLAN view
Parameter
current-interface: Sets the source address of IGMP group-specific queries to the
address of the current VLAN interface. 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 group-specific queries.
ip-address:
Sets the source address of IGMP group-specific queries to the specified
address.
Description
Use the igmp-snooping special-query
source-ip command to configure the source IP address of IGMP group-specific
queries.
Use the undo igmp-snooping special-query
source-ip command to restore the default configuration.
By default, the source IP address of IGMP
group-specific queries is 0.0.0.0. .
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Example
# Set the IP address of the interface of
VLAN 2 to 10.1.1.1, with the subnet mask of 255.255.255.0, and specify this IP
address as the source IP address of IGMP group-specific queries. .
<H3C> system-view
[H3C] interface vlan-interface 2
[H3C-Vlan-interface2] ip address
10.1.1.1 255.255.255.0
[H3C-Vlan-interface2] quit
[H3C] vlan 2
[H3C-vlan2] igmp-snooping
special-query source-ip current-interface
Syntax
igmp-snooping
static-group group-address [ source-ip source-address
] vlan vlan-id
undo igmp-snooping static-group
group-address [ source-ip source-address
] vlan vlan-id
View
Ethernet port view/Port group view
Parameter
group-address: Address of the multicast group to be statically joined, in the
range of 224.0.0.0 to 239.255.255.255. .
source-address: Address of multicast source to be statically joined. The value of
this argument should be a valid unicast address or 0.0.0.0. If the value is
0.0.0.0, this means no multicast source is specified.
vlan vlan-id:
Specifies the VLAN that comprises the Ethernet port(s), where vlan-id is
in the range of 1 to 4094.
Description
Use the igmp-snooping static-group command
to enable the static member port function, namely to configure a port or ports
as static member port(s) of a multicast group or multicast source/group.
Use the undo igmp-snooping static-group
command to disable the static member port function.
By default, the static member port function
is disabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
The source-ip source-address
statement in the command is meaningful only for IGMP Snooping version 3. If
IGMP Snooping version 2 is running, although you can include the source-ip source-address
statement in your command, the configuration will not take effect. .
l
If configured in Ethernet port view, this
feature takes effect on the port only if the port belongs to the specified
VLAN.
l
If configured in port group view, this feature
takes effect only on those ports in this port group that belong to the
specified VLAN.
Example
# Configure GigabitEthernet1/0/1, which
belongs to VLAN 2, to be a static member port of a multicast source/group. The
multicast source address is 1.1.1.1 and the multicast group address is
224.1.1.1. .
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] quit
[H3C] vlan 2
[H3C-vlan2] igmp-snooping enable
[H3C-vlan2] igmp-snooping version 3
[H3C-vlan2] quit
[H3C] interface GigabitEthernet1/0/1
[H3C-GigabitEthernet1/0/1] igmp-snooping
static-group 224.1.1.1 source-ip 1.1.1.1 vlan 2
Syntax
igmp-snooping
static-router-port vlan vlan-id
undo igmp-snooping static-router-port vlan vlan-id
View
Ethernet port view/Port group view
Parameter
vlan vlan-id:
Specifies a VLAN in which one or more static router ports are to be configured,
where vlan-id is in the range of 1 to 4094.
Description
Use the igmp-snooping static-router-port
command to enable the static router port function.
Use the undo igmp-snooping
static-router-port command to disable the static router port function.
By default, the static router port function
is not enabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If configured in Ethernet port view, this
feature takes effect on the port only if the port belongs to the specified
VLAN.
l
If configured in port group view, this feature
takes effect only on those ports in this port group that belong to the
specified VLAN.
Example
# Enable the static router port function on
GigabitEthernet1/0/1, which belongs to VLAN 2.
<H3C> system-view
[H3C] interface GigabitEthernet1/0/1
[H3C- GigabitEthernet1/0/1]
igmp-snooping static-router-port vlan 2
Syntax
igmp-snooping version version-number
undo igmp-snooping version
View
VLAN view
Parameter
version-number: IGMP snooping version, in the range of 2 to 3.
Description
Use the igmp-snooping version
command to configure the IGMP Snooping version. .
Use the undo igmp-snooping version
command to restore the default setting. .
By default, the IGMP version is 2.
This command takes effect only if IGMP
Snooping is enabled in the VLAN.
Related command: igmp-snooping
enable.
Example
# Enable IGMP Snooping in VLAN 2, and set
the IGMP Snooping version to version 3.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] quit
[H3C] vlan 2
[H3C-vlan2] igmp-snooping enable
[H3C-vlan2] igmp-snooping version 3
1.1.26 last-member-query-interval
Syntax
last-member-query-interval interval
undo last-member-query-interval
View
IGMP Snooping view
Parameter
interval:
Interval between IGMP last-member queries, in units of seconds. The effective
range is 1 to 5.
Description
Use the last-member-query-interval command
to configure the interval between IGMP last-member queries globally.
Use the undo last-member-query-interval
command to restore the default setting.
By default, the interval between IGMP
last-member queries is 1 second.
This command works only on an IGMP
Snooping–enabled VLAN, but not on a VLAN with IGMP enabled on its VLAN
interface.
Related command: igmp-snooping
last-member-query-interval.
Example
# Set the interval between IGMP last-member
queries globally to 3 seconds.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping]
last-member-query-interval 3
1.1.27
max-response-time
Syntax
max-response-time interval
undo max-response-time
View
IGMP Snooping view
Parameter
interval: Maximum response time to IGMP general queries, in units of seconds.
The effective range is 1 to 25.
Description
Use the max-response-time command to
configure the maximum response time to IGMP general queries globally.
Use the undo max-response-time
command to restore the default value.
By default, the maximum response time to
IGMP general queries is 10 seconds.
This command works only on an IGMP
Snooping–enabled VLAN, but not on a VLAN with IGMP enabled on its VLAN
interface.
Related command: igmp-snooping
max-response-time and igmp-snooping query-interval.
Example
# Set the maximum response time to IGMP
general queries globally to 5 seconds.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] max-response-time
5
1.1.28
overflow-replace
Syntax
overflow-replace [ vlan vlan-list ]
undo overflow-replace [ vlan vlan-list ]
View
IGMP Snooping view
Parameter
vlan vlan-list: Configures the multicast group replacement function in the
specified VLAN(s). Here vlan-list is a VLAN list. You can specify
multiple VLANs or VLAN ranges by providing this argument in the form of vlan-list
= { vlan-id [ to vlan-id ] }&<1-10>, where vlan-id
is in the range of 1 to 4094, and &<1-10> means that you can
specify up to 10 VLANs or VLAN ranges for this argument.
Description
Use the overflow-replace command to
enable the multicast group replacement function globally.
Use the undo overflow-replace command
to disable the multicast group replacement function globally.
By default, the multicast group replacement
function is disabled.
Note that:
l
This command works on an IGMP
Snooping–enabled VLAN or on a VLAN with IGMP enabled on its VLAN
interface.
l
If you do not specify any VLAN, the command will
take effect for all VLANs; if you specify a VLAN or multiple VLANs, the command
will take effect for the specified VLAN(s) only.
Related command: igmp-snooping
overflow-replace.
Example
# Enable the multicast group replacement
function in VLAN 2.
<H3C> system-view
[H3C] igmp-snooping
[H3C-igmp-snooping] overflow-replace
vlan 2
Syntax
reset igmp-snooping group { group-address | all
} [ vlan vlan-id ]
View
User view
Parameter
group-address: Address of the multicast group of which the IGMP Snooping entries
are to be cleared. The value range is 224.0.1.0 to 239.255.255.255. .
all:
Specifies to clear all IGMP Snooping entries.
vlan
vlan-id: Specifies a VLAN in which all IGMP
Snooping entries are to be cleared, where vlan-id is in the range of 1
to 4094.
Description
Use the reset igmp-snooping group
command to clear IGMP Snooping entries.
Note that:
l
This command works only on an IGMP
Snooping–enabled VLAN, but not on a VLAN with IGMP enabled on its VLAN
interface.
l
This command cannot clear IGMP Snooping
forwarding entries derived from static configuration.
Example
# Clear all IGMP Snooping entries saved in
the switch.
<H3C> reset igmp-snooping group all