![Cisco 2948G - Catalyst Switch Configuration Manual Download Page 305](http://html.mh-extra.com/html/cisco/2948g-catalyst-switch/2948g-catalyst-switch_configuration-manual_67462305.webp)
15-21
Catalyst 4500 Series, Catalyst 2948G, Catalyst 2980G Switches Software Configuration Guide
—
Release 8.1
78-15486-01
Chapter 15 Configuring Multicast Services
Filtering IGMP Traffic
This example shows how to permit an IP address or range of IP addresses:
Console> (enable) set igmp filter profile 1 match-action permit
igmp filter match-action set to permit
Console> (enable)
This example shows how to verify the status of an IGMP multicast filter profile to accept IP addresses:
Console> (enable) show igmp filter profile 1 match-action
igmp filter match action is permit
Console> (enable)
Denying and Verifying an IGMP Multicast Filter Match-Action
To specify an IGMP multicast filter profile on a switch deny an IP address or range of IP addresses,
perform this task in privileged mode:
This example shows how to deny an IP address or range of IP addresses:
Console> (enable) set igmp filter profile 1 match-action deny
igmp filter match-action set to deny
Console> (enable)
This example shows how to verify the status of an IGMP multicast filter profile to deny IP addresses:
Console> (enable) show igmp filter profile 1 match-action
igmp filter match action is denied
Console> (enable)
Removing an IGMP Multicast Filter Profile
To remove a multicast address from an IGMP multicast filter profile or to remove the filter profile, perform
this task in privileged mode:
Note
When you remove a filter, all associations between the filter and associated ports are removed.
This example shows how to remove an IP address (226.1.1.1) from an IGMP multicast filter profile (1):
Console> (enable) clear igmp filter profile 1 226.1.1.1
Console> (enable)
Task
Command
Step 1
Deny an IP address or range of IP addresses.
set igmp filter profile profile_id match-action deny
Step 2
Verify the deny configuration.
show igmp filter profile profile_id match-action
Task
Command
Step 1
Remove a multicast address from an IGMP
multicast filter profile or to remove the filter profile.
clear igmp filter profile profile_id {ip_addr
[- ip_addr] | all}
Step 2
Verify that an IGMP multicast filter profile was
removed.
show igmp filter profile profile_id