--- title: "Adding a multicast filter in your Cisco switch" slug: "adding-a-multicast-filter-in-your-cisco-switch" updated: 2024-12-13T09:37:40Z published: 2024-12-13T09:37:40Z canonical: "docs.telosalliance.com/adding-a-multicast-filter-in-your-cisco-switch" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.telosalliance.com/llms.txt > Use this file to discover all available pages before exploring further. # Adding a multicast filter in your Cisco switch ## Scope When connecting Cisco switches used for Livewire to other network switches sometimes it is useful to be able to create a filter that specifically blocks certain address ranges. This document will provide you guidance for creating filters. ## Description Make sure you know what you are blocking. The entire multicast range goes from 224.0.0.0 all the way to 239.255.255.255. If you block the entire range, you could block certain multicast addresses that are used for things other than Livewire. As one example, mDNS (or multicast dns) which is used by Apply Bonjour could block the discovery of other things (like printers). In this example, we're only going to block addresses used by Livewire that are in the **Organization-Local Scope** range as defined by the [IANA Multicast Address Space Registry](https://www.iana.org/assignments/multicast-addresses/multicast-addresses.xhtml). Specifically the range of addresses 239.192.0.0 to 239.193.255.255 ## Configuration ### Adding a Filter 1. Using PuTTy or another terminal program make a connection to the CLI (Command Line Interface) of your Cisco switch. > [!WARNING] > This is normally done using Telnet but could also be using SSH or Serial connections. 1. Enter privileged mode using the `enable` command followed by your enable password. The prompt will change from `>` to a `#` sign when in privileged mode. ```plaintext BryansCiscoSw>enable Password: BryansCiscoSw# ``` 1. Enter terminal config mode using the `config t` command. The hostname will be appended with (config) mode when you are in this mode. ```plaintext BryansCiscoSw#config t Enter configuration commands, one per line.  End with CNTL/Z. BryansCiscoSw(config)# ``` 1. Enter the following commands ```plaintext BryansCiscoSw(config)#ip igmp profile 10 BryansCiscoSw(config-igmp-profile)# ``` > [!WARNING] > We're using 10 for a profile number. If this is your first filter you can use profile 1. Profile IDs can be any number from 1 to more than four million. ```plaintext BryansCiscoSw(config-igmp-profile)#range 239.192.0.0 239.193.255.255     BryansCiscoSw(config-igmp-profile)# ``` ```plaintext BryansCiscoSw(config-igmp-profile)#deny BryansCiscoSw(config-igmp-profile)# ``` ```plaintext BryansCiscoSw(config-igmp-profile)#exit BryansCiscoSw(config)# ``` ```plaintext BryansCiscoSw(config)#end BryansCiscoSw# ``` ### Check your filter 1. From the command prompt, enter the command `show run` to show the current configuration. The configuration will be displayed one page at a time. Use the spacebar to display the next page. 2. Near the top of the page, in the IGMP section, look for the appearance of your new filter and confirm the range setting is correct. ![](https://cdn.document360.io/57e3cd80-d493-453c-9672-ad1b043dadc3/Images/Documentation/06846af3-ee33-4546-b600-ed2de5c26274-image.png?sv=2026-02-06&spr=https&st=2026-11-23T00%3A09%3A42Z&se=2026-11-23T01%3A09%3A42Z&sr=b&sp=r&sig=j%2FBwvcvEU%2FIIRi%2FLN6SfeN556x5qeuFY4c3njFOgTS8%3D) If you have made a mistake, re-enter the terminal configuration mode (`conf t`). You can remove filter profiles by using the `no` command in front of the command. For example, to remove the filter profile we just created, enter the command; ```plaintext BryansCiscoSw(config)#no ip igmp profile 10 BryansCiscoSw(config)# ``` When you send the `show run` command you will see that the profile is gone. ### Apply the filter to your network ports Once you have created the filter it must be applied to the ports where filtering is required. In our example, we're going to apply this filter to a port that connects to an Office network where we do not want any Multicast traffic. 1. Enter the terminal config mode by using the`config t` command. You will know you are in this mode by the (config) indication next to the hostname. ```plaintext BryansCiscoSw#config t Enter configuration commands, one per line.  End with CNTL/Z. BryansCiscoSw(config)# ``` 1. Specify the port you want to configure by using the `int` command. This will vary from switch to switch. In our example, we're configuring gigabit ethernet port 4. This is referred to by cisco as `gi0/4` ```plaintext BryansCiscoSw(config)#int gi0/4 BryansCiscoSw(config-if)# ``` > [!NOTE] > If there are any questions about the names of your interfaces they are shown when you issue the show run command. Show run displays the current configuration on each port. Here is the example from this configuration. > > ![](https://cdn.document360.io/57e3cd80-d493-453c-9672-ad1b043dadc3/Images/Documentation/006534cf-cf97-4a8b-ba6b-5f4e3c35fd85-gi-0-4.png?sv=2026-02-06&spr=https&st=2026-11-23T00%3A09%3A42Z&se=2026-11-23T01%3A09%3A42Z&sr=b&sp=r&sig=jUGQ933zRk4eqy57ehxqDN9Uqa8X14jriw6tVYb9vOM%3D) > > Interface GigabitEthernet0/4 is abbreviated by gi0/4 in this case 1. Apply the filter profile to this port ```plaintext BryansCiscoSw(config-if)#ip igmp filter 10 BryansCiscoSw(config-if)# ``` 1. Exit port configuration mode ```plaintext BryansCiscoSw(config-if)#exit BryansCiscoSw(config)# ``` 1. Exit global config mode ```plaintext BryansCiscoSw(config)#exit BryansCiscoSw# ``` ### Check your port configuration Send the show run command again. Make sure that your filter is shown in the port configuration as shown here. ![](https://cdn.document360.io/57e3cd80-d493-453c-9672-ad1b043dadc3/Images/Documentation/3eff8867-9be7-4a2f-b2b5-fe4db51ac7f7-image.png?sv=2026-02-06&spr=https&st=2026-11-23T00%3A09%3A42Z&se=2026-11-23T01%3A09%3A42Z&sr=b&sp=r&sig=XNu4HRarrNqknZdXXlVrlgQAUVia%2BEAS1cGzbN7aAHo%3D) ### Finally, save your work Once everything is configured, you must write the configuration back to the switch so that if it ever reboots it has this same configuration after the restart. If you do not save your work the configuration will revert when you restart. 1. From the command prompt, send the `wr` command (wr is short for write). ```plaintext BryansCiscoSw#wr     Building configuration... [OK] BryansCiscoSw# ``` ## Let us know how we can help If you have further questions on this topic or have ideas about improving this document, please [contact us](https://www.telosalliance.com/support-request).