This is a draft cheat sheet. It is a work in progress and is not finished yet.
VTP Config
vtp domain <domain> |
Sets the vtp domain of the switch. |
vtp mode <server|client|transparent> |
Sets the vtp mode to either server, client or transparent. |
vtp password <password> |
Sets the vtp password of the switch. |
VTP Verification
show vtp status |
shows current vtp status (with Revision number, vtp mode,...) |
show vtp password |
shows vtp password |
DTP Config
switchport mode <trunk|access|dynamic desirable|dynamic auto> |
Sets the port mode to either trunk, access,... |
show dtp interface <interface> |
Switchport commands
show interfaces trunk |
Shows all trunk ports, what the native vlan of the port is,... |
show interfaces <interface> switchport |
shows all switchport info of interface. |
switchport trunk native vlan <number> |
sets the native vlan of the selected interface |
VLAN config
vlan <number> |
creates a clan |
name <name> |
After vlan created the name can be set |
show vlan [brief | id <vlan-id>] |
shows the vlan. brief is a summary. |
interface vlan <number> |
creates a SVI where you can set a IP address |
encapsulation dot1q <vlan-number> |
Router command. Sets encapsulation (used for subinterfaces) |
|
|
Ether Channel
interface range <range> |
selects multiple interfaces. |
channel-group <number> mode <desirable|auto|active,passive> |
creates the ether channel for the interface range selected. |
interface port-channel <number> |
selects the ether channel to set the switchport mode,... |
show etherchannel summary |
shows ether channel related |
Ether Channel sign
-A |
A |
A |
B |
C |
D |
E |
F |
G |
H |
I |
J |
K |
L |
Other Commands
show ip route |
Shows routing table |
|