Commands and more Flashcards
Create a vlan
vlan ‘number’
Command to place certain vlans are primary and secondary root
spanning-tree vlan ‘numbers’ root primary/secondary
Name a vlan
vlan ‘number you want to name’
name ‘name’
Make an accept port
Go into interface
switchport mode access
switchport access vlan
Enable PortFast on interface
Go into interface
spanning-tree portfast
Set up VTP
vtp domain ‘domain-name’
vtp mode [client/server/transparent]
vtp password ‘password’ ….for vtpv3
vtp version [1/2/3]
vtp pruning . if you want to prune
Change spanning tree mode
Global config
spanning-tree mode [pvst/rapid-pvst/mst]
Configure an SVI on a certain vlan
interface vlan ‘number’
ip address ~.~.~.~ -.-.-.-
no shutdown
Set up a trunk and etherchannel. Only allow certain vlans. Layer 2.
Must go into interface and piut
no switchport mode access
no switchport access vlan ~
On interface
switchport trunk encapsulation [dot1q/isl]
channel-protocol [lacp/pagp]
channel-group ‘#’ mode [active/auto/desirable/on/passive]
no shutdown
no shutdown
switchport mode trunk
switchport trunk allowed vlan ‘vlans’
switchport trunk native vlan ~
Set up a native vlan
switchport trunk native vlan ‘number’
Verify vtp
show vtp status
Verify spanning-tree
Show spanning-tree summary or show spanning-tree
Verify vlan
Show vlan
Verify etherchannel
show etherchannel summary
Change priority of switch, for root bridge
In global config mode
spanning-tree vlan ~ priority ~
The lowest priority gets to be root bridge
Increments of 4096