Cisco Cisco Gigabit Ethernet Switch Module (CGESM) for HP Technical References
2-492
Cisco Gigabit Ethernet Switch Module for the HP p-Class BladeSystem Command Reference Guide
380265-002
Chapter 2 CGESM Switch Cisco IOS Commands
switchport block
switchport block
Use the switchport block interface configuration command to prevent unknown multicast or unicast
packets from being forwarded. Use the no form of this command to allow forwarding unknown multicast
or unicast packets.
packets from being forwarded. Use the no form of this command to allow forwarding unknown multicast
or unicast packets.
switchport block {multicast | unicast}
no switchport block {multicast | unicast}
Syntax Description
Defaults
Unknown multicast and unicast traffic is not blocked.
Command Modes
Interface configuration
Command History
Usage Guidelines
By default, all traffic with unknown MAC addresses is sent to all ports. You can block unknown multicast
or unicast traffic on protected or nonprotected ports. If unknown multicast or unicast traffic is not
blocked on a protected port, there could be security issues.
or unicast traffic on protected or nonprotected ports. If unknown multicast or unicast traffic is not
blocked on a protected port, there could be security issues.
Blocking unknown multicast or unicast traffic is not automatically enabled on protected ports; you must
explicitly configure it.
explicitly configure it.
For more information about blocking packets, see the Cisco Gigabit Ethernet Switch Module for HP
p-Class BladeSystem Software Configuration Guide for this release.
p-Class BladeSystem Software Configuration Guide for this release.
Examples
This example shows how to block unknown multicast traffic on an interface:
Switch(config-if)# switchport block multicast
You can verify your setting by entering the show interfaces interface-id switchport privileged EXEC
command.
command.
Related Commands
multicast
Specify that unknown multicast traffic should be blocked.
unicast
Specify that unknown unicast traffic should be blocked.
Release
Modification
12.2(25)SE1
This command was introduced.
Command
Description
switchport
Displays the administrative and operational status of a switching port,
including port blocking and port protection settings.
including port blocking and port protection settings.