From PluralSight
Between two physical devices
"Wire" drawn like thunderbolt = serial
drawn as line on logical diagram, symbol/box on physical diagram
MAC
PDU is frame
Switch
Switch#show mac address-table
Broadcast and collisions
VLAN
Switch#show flash
# where vlans and other settings are storedAccess link - part of single VLAN
sw1#sh[ow] vlan brief
sw1#sh int[erfaces] f[astEthernet] <slot>/<port> [sw[itchport]]
sw1#sh int trunk
# create vlan
sw1(config)#vlan <100>
sw1(config-vlan)#name myVLAN
sw1(config-vlan)#exit
# assign port to vlan
sw1(config)#int f <slot>/<port>
sw1(config-if)#sw mode access
sw1(config-if)#sw mode access vlan <100> # will create vlan if doesn't exist
# delete vlan
sw1(config)#no vlan <100> # delete
# old way to create
sw1#vlan database
sw1(vlan)#vlan 50 name TEST
Trunk link - combine switches, carry multiple vlans
sw1(config)#int f 0/1
sw1(config-if)#sw mode [dynamic desirable|trunk]
sw1(config-if)#sw tr[unk] en[capsulation] <dot1q> # needed for trunk
sw1(config-if)#sw nonegotiate # turn off DTP frames, save bandwidth if forced on
sw1(config-if)#sw tr allowed vlan <1,100-200>
sw1(config-if)#sw tr native vlan <150>
sw2(config-if)#sw tr native vlan <150> # repeat commands on sw2 to mirror
STP
sw1#show spanning-tree vlan <150>
sw1(config)#spanning-tree vlan 150 priority <n4096>
sw1(config-if)# spanning-tree portfast
sw1(config)#vtp mode <server|trans[parent]>
sw1(confog)#vtp domain <domain-name>
sw1(config)#vtp pass[word] <password>
sw1#show vtp status
sw1#show vtp pass[word]