Switch Commands Flashcards
Change the encapsulation type on a trunk to dot1q
SW(config-if)# switchport trunk encapsulation dot1q
Change a trunk port to negotiate a trunk link
SW(config-if)# switchport mode {dynamic desirable | auto}
Hard code an interface to be a trunk
SW(config-if)# switchport mode trunk
Hard code an interface to be an access port
SW(config-if)# switchport mode access
Set the VTP mode and domain on a switch (2 commands)
SW(config)# vtp mode {server | client | transparent | off}
SW(config)# vtp domain VTP_DOM_NAME
Specify the VTP version
SW(config)# vtp version {1 | 2 | 3}
Create a password for the VTP domain
SW(config)# vtp password {password}
Make the switch the primary VTP server on the domain
SW# vtp primary
Display VTP information on a switch
SW# show vtp status
Change VLANs that can traverse a trunk
SW(config-if)# switchport trunk allowed vlans [add | remove] {vlan-id},[vlan-id]
Create a VLAN and assign a name to it (2 commands)
SW(config)# vlan {vlan-number}
SW(config-vlan)# name NAME
Display switchport information about an interface
SW# show interface {interface-id} switchport
Display all trunks on a switch
SW# show interface trunk
Create an Etherchannel (2 commands)
SW(config)# int range {interface-id} - {interface-id}
SW(config-if-range)# channel-group {1-255} mode [active | auto | on | desirable]
Create a LACP Etherchannel
SW(config-if-range)# channel-group {1-255} mode {active | passive}
Create a LAgP Etherchannel
SW(config-if-range)# channel-group {1-255} mode {auto | desirable}
Display Etherchannel information
SW# show etherchannel summary
Display information about a port channel
SW# show interface port-channel {number}
Display Etherchannel neighbors
SW# show {lacp | lagp} neighbors
Display Etherchannel counters
SW# show {lacp | lagp} counters
Enable “minimum links” for Etherchannel (2 commands)
SW(config)# interface port-channel {number}
SW(config-if)# port-channel min-links {1-8}
Enable “max links” for an Etherchannel (3 commands)
SW(config)# interface port-channel {number}
SW(config-if)# lacp fast-switchover
SW(config-if)# lacp max-bundle {1-8}