Command Practice Simple Flashcards
Find the location of a specific MAC address
Enable mode: show mac address-table dynamic address mac-address
Display all MAC addresses learned on a specific interface
Enable mode: show mac address-table dynamic interface type number
Display the current CAM table size
Enable mode: show mac address-table count
Enter a static CAM table entry
Enable mode: Global Config Mode: mac address-table static mac-address vlan vlan-id interface type number
Clear a CAM entry
Enable Mode: clear mac address-table dynamic [address mac-address | interface type number | vlan vlan-id]
Select a port
Global Config Mode: interface type module/number
Select multiple ports
Global Config Mode: interface range type module/number [, type module/number …]orinterface range type module/first-number - last-number
Define an interface macro
define interface-range macro-name type module/number [, type module/number …] [type module/first-number - last-number] […]interface range macro macro-name
Identify port.
Interface Config Mode: description description-string
Set port speed.
Interface Config Mode: speed{10|100|1000|auto}
Set port mode.
Interface Config Mode: duplex {auto|full|half}
Detect port error conditions
Global Config Mode: errdisable detect cause [all|cause-name]
Automatically recover from errdisable
Global Config Mode: errdisable recovery cause [all|cause-name]errdisable recovery interval seconds
Manually recover from errdisable
Interface Config Mode: shutdownno shutdown
Create VLAN
Global Config Mode: vlan vlan-numVLAN Config Mode: name vlan-name
Assign port to VLAN.
Global Config Mode: interface type module/numberInterface Config Mode: switchportInterface Config Mode: switchport mode accessInterface Config Mode: switchport access vlan vlan-num
Configure trunk.
Global Config Mode: interface type mod/portInterface Config Mode: switchport trunk encapsulation {isl|dot1q|negotiate}Interface Config Mode: switchport trunk native vlan vlav-idInterface Config Mode: switchport trunk allowed vlan {vlan-list|all|{add|except|remove}vlan-list}Interface Config Mode: switchport mode {trunk|dynamic {desirable|auto}}
Define the VTP domain
Global Config Mode: vtp domain domain-name
Set the VTP mode
Global Config Mode: vtp mode {server|client|transparent}
Define an optional VTP password
Global Config Mode: vtp password password
Configure VTP version
Global Config Mode: vtp version {1|2}
Enable VTP pruning
Global Config Mode: vtp pruning
Select VLANs eligiable for pruning on a trunk interface
Global Config Mode: interface type mod/num switchport trunk pruningInterface Config Mode: vlan {add|except|none|remove} vlan-list
Select a load-balancing method for the switch
Global Config Mode: port-channel load-balance method
Use a PAgP mode on an interface
Global Config Mode: interface type mod/numInterface Config Mode: channel-protocol pagpInterface Config Mode: channel-group number mode {on|{{auto|desirable}[non-silent]}}
Assign the LACP system priority.
Global Config Mode: lacp system-priority priority
Use an LACP mode on an interface
Global Config Mode: interface type mod/numInterface Config Mode: channel-protocol lacpInterface Config Mode: channel-group number mode{on|passive|active}Interface Config Mode: lacp port-priority priority
Enable STP
Global: spanning-tree vlan-id
Set bridge priority.
Global: spanning-tree vlan vlan-id priority bridge-priority
Set root bridge (macro)
Global: spanning-tree vlan vlan-id root {primary|secondary} [diameter diameter]
Set port cost
int-config: spanning-tree [vlan vlan-id] cost cost
Set port priority
int-config: spanning-tree [vlan vlan-id] port-priority port-priority
Set STP timers
Global: spanning-tree [vlan vlan-id] hello-time secondsGlobal: spanning-tree [vlan vlan-id] forward-time secondsGlobal: spanning-tree [vlan vlan-id] max-age seconds
Set PortFast on an interface
int-config: spanning-tree portfast
Set UplinkFast on a switch
Global: spanning-tree uplinkfast [max-update-rate pkts-per-second]