Layer 2 Switching Commands 420switchport protected nameUse the switchport protected name command in Global Configuration modeto adds the port to the protected group 1 and also sets the group name to“protected”.Syntaxswitchport protected groupid name nameno switchport protected groupid name• groupid — Identifies which group the port is to be protected in.(Range: 0–2)• name — Name of the group. (Range: 0-32 characters)Default ConfigurationThis command has no default configuration.Command ModeGlobal Configuration modeUser GuidelinesThis command has no user guidelines.ExampleThe following example assigns the name “protected” to group 1.console(config)#switchport protected 1 name protectedshow switchport protectedUse the show switchport protected command to display the status of all theinterfaces, including protected and unprotected interfaces.Syntaxshow switchport protected groupid• groupid — Identifies which group the port is to be protected in.(Range: 0–2)