11-2. Protocol Filtering
ConfigurationBy configuring protocol filtering on a switch, you are preventing the port from flooding traffic of that type received from other ports in the VLAN out the given port. This can be useful in controlling traffic from clients within the same VLAN running different and "chatty" protocols. To configure protocol filtering, use the following steps.
VerificationTo verify the configuration of protocol filtering, use the following commands:
These show commands display the configuration for the specified ports. In IOS, the command show protocol-filtering without any port designations will only show ports that have at least one protocol that is in the nondefault mode. Feature ExampleThis example shows the configuration for protocol filtering. This example enables protocol filtering. It then sets the Fast Ethernet ports 5/1 through 5/6 to allow IP traffic to pass without being filtered and blocks all other traffic. This example also configures ports 5/7 to 5/8 to allow only IPX traffic. In this example, ports 5/9 to 5/10 allow IP and IPX traffic only if the ports detect an IP or IPX client on the specific port and allow all other traffic to be forwarded. An example of the Catalyst OS configuration follows: Catalyst(enable)>set protocolfilter enable Catalyst(enable)>set port protocol 5/1-6 ip on Catalyst(enable)>set port protocol 5/1-6 ipx off Catalyst(enable)>set port protocol 5/1-6 group off Catalyst(enable)>set port protocol 5/7-8 ip off Catalyst(enable)>set port protocol 5/7-8 ipx on Catalyst(enable)>set port protocol 5/7-8 group off Catalyst(enable)>set port protocol 5/9-10 ip auto Catalyst(enable)>set port protocol 5/9-10 ipx auto Catalyst(enable)>set port protocol 5/9-10 group on An example of the Supervisor IOS configuration follows: Switch(config)#protocol-filter Switch(config)#interface fastethernet 5/1 Switch(config-if)#switchport protocol ip on Switch(config-if)#switchport protocol ipx off Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/2 Switch(config-if)#switchport protocol ip on Switch(config-if)#switchport protocol ipx off Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/3 Switch(config-if)#switchport protocol ip on Switch(config-if)#switchport protocol ipx off Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/4 Switch(config-if)#switchport protocol ip on Switch(config-if)#switchport protocol ipx off Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/5 Switch(config-if)#switchport protocol ip on Switch(config-if)#switchport protocol ipx off Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/6 Switch(config-if)#switchport protocol ip on Switch(config-if)#switchport protocol ipx off Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/7 Switch(config-if)#switchport protocol ip off Switch(config-if)#switchport protocol ipx on Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/8 Switch(config-if)#switchport protocol ip off Switch(config-if)#switchport protocol ipx on Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/9 Switch(config-if)#switchport protocol ip auto Switch(config-if)#switchport protocol ipx auto Switch(config-if)#switchport protocol group off Switch(config-if)#interface fastethernet 5/10 Switch(config-if)#switchport protocol ip auto Switch(config-if)#switchport protocol ipx auto Switch(config-if)#switchport protocol group off Switch(config-if)#end Switch(config)#copy running-config startup-config |