
28
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping special-query source-ip 10.1.1.1
igmp-snooping static-group
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
Layer 2 Ethernet interface view, Layer 2 aggregate interface view
Default level
2: System level
Parameters
group-address
: Specifies the address of the multicast group that the port joins as a static member port, in
the range of 224.0.1.0 to 239.255.255.255.
source-address
: Specifies the address of the multicast source that the port joins as a static member port.
The value of this argument should be a valid unicast address or 0.0.0.0. A source IP address of 0.0.0.0
means no restriction on the multicast source.
vlan
vlan-id
: Specifies the VLAN that comprises the ports, where
vlan-id
is in the range of 1 to 4094.
Description
Use
igmp-snooping static-group
to configure the static (*, G) or (S, G) entry for the port, namely, to
configure the port as a static member port of the specified multicast group or source-group.
Use
undo igmp-snooping static-group
to restore the default.
By default, no ports are static member ports.
The
source-ip
source-address
option in the command is meaningful only for IGMPv3 snooping. If
IGMPv2 snooping is running, the
source-ip
source-address
option does not take effect although you can
include
source-ip
source-address
in the command.
In Layer 2 Ethernet interface view or Layer 2 aggregate interface view, this command takes effect only if
the interface belongs to the specified VLAN.
Examples
# Configure GigabitEthernet 1/0/1 in VLAN 2 to be a static member port for (1.1.1.1, 232.1.1.1).
<Sysname> system-view
[Sysname] igmp-snooping
[Sysname-igmp-snooping] quit
[Sysname] vlan 2
[Sysname-vlan2] igmp-snooping enable
[Sysname-vlan2] igmp-snooping version 3
[Sysname-vlan2] quit
[Sysname] interface gigabitethernet 1/0/1