R3303-HP HSR6800 Routers IP Multicast Command Reference
8
group-policy (IGMP-snooping view)
Use group-policy to configure a global multicast group filter to control the multicast groups that a host in
the specified VLAN can join.
Use undo group-policy to remove the configured global multicast group filter.
Syntax
group-policy acl-number [ vlan vlan-list ]
undo group-policy [ vlan vlan-list ]
Default
No global multicast group filter is configured. Namely, a host in the specified VLAN can join any valid
multicast group.
Views
IGMP-snooping view
Default command level
2: System level
Parameters
acl-number: Specifies a basic or advanced ACL number in the range of 2000 to 3999. A host can join
only the multicast groups that match the permit statement in the specified ACL. The source address or
address range specified in the advanced ACL rule matches the multicast source addresses specified in
IGMPv3 reports, rather than the source address in the IP packets. The system assumes that an IGMPv1 or
IGMPv2 report or an IGMPv3 IS_EX or TO_EX report that does not carry a multicast source address
carries a multicast source address of 0.0.0.0.
vlan vlan-list: Specifies one or multiple VLANs. You can provide up to 10 VLAN lists. For each list, 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 value range of a VLAN
ID is 1 to 4094. If you do not specify any VLAN, the command takes effect for all VLANs. If you specify
one or more VLANs, the command takes effect for the specified VLANs only.
Usage guidelines
If the specified ACL does not exist or the ACL rule is null, all multicast groups are filtered out.
You can configure different ACL rules for a port in different VLANs. For a given VLAN, a newly
configured ACL rule overrides the existing one.
Examples
# Apply ACL 2000 as a multicast group filter in VLAN 2 so that hosts in this VLAN can join only the
m u l t i c a s t g r o u p 2 2 5 .1.1.1.
<Sysname> system-view
[Sysname] acl number 2000
[Sysname-acl-basic-2000] rule permit source 225.1.1.1 0
[Sysname-acl-basic-2000] quit
[Sysname] igmp-snooping
[Sysname-igmp-snooping] group-policy 2000 vlan 2
Related commands
igmp-snooping group-policy