Administrator Guide

Table Of Contents
Layer 2 Switching Commands 426
Example
The following example configures the speed operation of gigabit Ethernet
port 1/0/5 to advertise 100-Mbps operation only via auto-negotiation.
console(config)#interface gigabitethernet 1/0/5
console(config-if)#speed auto 100
switchport protected
Use the switchport protected command in Interface Configuration mode to
configure a protected port. The
groupid
parameter identifies the set of
protected ports to which this interface is assigned. You can only configure an
interface as protected in one group. You are required to remove an interface
from one group before adding it to another group.
Port protection occurs within a single switch. Protected port configuration
does not affect traffic between ports on two different switches. No traffic
forwarding is possible between two protected ports. Ports in a protected group
will not forward traffic to other ports in the group.
Syntax
switchport protected
groupid
no switchport protected
groupid-
-Identifies which group this port will be protected in. (Range: 0-2)
Default Configuration
No protected switchports are defined.
Command Mode
Interface Configuration (Ethernet) mode
User Guidelines
This command has no user guidelines.
Example
The following example configures Ethernet port 1/0/1 as a member of
protected group 1.
2CSNXXX_SWUM204.book Page 426 Monday, January 25, 2016 1:25 PM