Cheatography
https://cheatography.com
NET-126 Configuration commands for Cisco switches
Port-Security
Command |
Function |
|
port must be in access mode before port-security can be configured |
|
enables port security on that interface |
switchport port-security maximum 2
|
sets maximum MAC addresses to 2 |
switchport port-security violation shutdown
|
sets violation mode to shutdown (shutdown is default) |
switchport port-security mac-address sticky mac-address
|
specified MAC is made sticky |
switchport port-security mac-address sticky
|
converts all dynamically-learned MACs to sticky |
VLAN Configuration
Short Command |
Full Command |
|
|
|
switchport trunking native vlan 99
|
|
switchport trunking access vlan 2,10,99
|
|
|
|
|
switchport access vlan 10
|
Spanning Tree Configuration
|
|
Show Commands
Short Command |
Full Command |
What It Displays |
|
show port-security [interface f0/5]
|
secure MACs configured on all (or specified) interface/s |
|
|
port configuration (mode, trunking, VLANs, etc) |
|
|
VLAN numbers, names, status, & ports |
|
|
VLAN number, status, & ports |
|
|
number of existing VLANs (Doesn't work on PT) |
|
|
trunk ports, native/mgmt VLANs, & allowed VLANs |
|
|
max # of secure MACs that can be configured |
|
Created By
Metadata
Favourited By
Comments
Sarki, 19:32 14 Oct 18
8/10
Add a Comment
Related Cheat Sheets
More Cheat Sheets by Tamaranth