Cisco Switch Configuration Cheat Sheet

A Programming › Network cheat sheet in English by Tamaranth

NET-126 Configuration commands for Cisco switches

39,035 views 7,336 downloads 11 Apr 2018 History
3.7 avg · 0 ratings

Port-S­ecurity

Command
Function
switchport mode access
port must be in access mode before port-s­ecurity can be configured
switchport port-s­ecurity
enables port security on that interface
switchport port-s­ecurity maximum 2
sets maximum MAC addresses to 2
switchport port-s­ecurity violation shutdown
sets violation mode to shutdown
(shutdown is default)
switchport port-s­ecurity mac-address
sticky
mac-ad­dress
specified MAC is made sticky
switchport port-s­ecurity mac-ad­dress sticky
converts all dynami­cal­ly-­learned MACs to sticky

VLAN Config­uration

Short Command
Full Command
sw m t
switchport mode trunking
sw t n v 99
switchport trunking native
vlan 99
sw t a v 2,10,99
switchport trunking access
vlan 2,10,99
sw non
switchport nonego­tiate
 
sw a v 10
switchport access vlan 10

Spanning Tree Config­uration

 

Show Commands

Short Command
Full Command
What It Displays
sh port [int f0/5]
show port-s­ecurity
[interface f0/5]
secure MACs configured on all (or specified) interface/s
sh int f0/6 sw
show int f0/6
switchport
port configuration (mode, trunking, VLANs, etc)
sh vl br
show vlan brief
VLAN numbers, names, status, & ports
sh vl na name
show vlan name name
VLAN number, status, & ports
sh vl sum
show vlan summary
number of existing VLANs
(Doesn­'t work on PT)
sh int tru
show int trunk
trunk ports, native­/mgmt VLANs, & allowed VLANs
show sdm pre
sh sdm prefer
max # of secure MACs that can be configured

Badges

Nice Cheat Sheet Good Cheat Sheet Downloaded from Unusual Locations × 15

Comments (1)

Sarki 19:32 14 Oct 2018

8/10

Reply

Cheatography n. The art of mapping complex subjects into clear, instantly navigable reference guides.