Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Cisco Switch Configuration Cheat Sheet

by River L. (Tamaranth) via cheatography.com/42882/cs/14910/

Port-S​ecurity Spanning Tree Config​uration

Comm​and Func​tion

swi​tchport mode access port must be in access


Show Commands
mode before port-
s​ecurity can be Short Command Full Command What It Displays
configured
sh port [int f0/5] show port-security secure MACs
switchport port-security enables port security [interface f0/5] configured on all
on that interface (or specified)

swi​tchport port-s​ecurity maximum 2 sets maximum MAC interface/s


addresses to 2 sh int f0/6 sw show int f0/6 port configuration

swi​tchport port-s​ecurity violat​ion sets violation mode to switchport (mode, trunking,


shutdown VLANs, etc)
shutdown
(shutdown is default) sh vl br show vlan brief VLAN numbers,
switchport port-security mac-address specified MAC is names, status, &

made sticky ports


sticky mac-address
sh vl na name show vlan name VLAN number,
swi​tchport port-s​ecurity mac- converts all
name status, & ports
ad​dress sticky dynami​cal​ly-​learned
MACs to sticky sh vl sum show vlan summary number of existing
VLANs
VLAN Config​uration (Doesn't work on
PT)
Short Command Full Command
sh int tru show int trunk trunk ports,
sw m t switc​hport mode trunking
native​/mgmt
sw t n v 99 switchport trunking native VLANs, & allowed
VLANs
vlan 99
show sdm pre sh sdm prefer max # of secure
sw t a v 2,10,99 switc​hport trunking access
MACs that can be
vlan 2,10,99
configured
sw non switc​hport nonego​tiate

sw a v 10 switc​hport access vlan 10

By River L. (Tamaranth) Published 11th April, 2018. Sponsored by Readability-Score.com


cheatography.com/tamaranth/ Last updated 11th April, 2018. Measure your website readability!
Page 1 of 1. https://readability-score.com

You might also like