Switch Commands Flashcards

1
Q

Change the encapsulation type on a trunk to dot1q

A

SW(config-if)# switchport trunk encapsulation dot1q

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Change a trunk port to negotiate a trunk link

A

SW(config-if)# switchport mode {dynamic desirable | auto}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Hard code an interface to be a trunk

A

SW(config-if)# switchport mode trunk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Hard code an interface to be an access port

A

SW(config-if)# switchport mode access

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Set the VTP mode and domain on a switch (2 commands)

A

SW(config)# vtp mode {server | client | transparent | off}
SW(config)# vtp domain VTP_DOM_NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Specify the VTP version

A

SW(config)# vtp version {1 | 2 | 3}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Create a password for the VTP domain

A

SW(config)# vtp password {password}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Make the switch the primary VTP server on the domain

A

SW# vtp primary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Display VTP information on a switch

A

SW# show vtp status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Change VLANs that can traverse a trunk

A

SW(config-if)# switchport trunk allowed vlans [add | remove] {vlan-id},[vlan-id]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Create a VLAN and assign a name to it (2 commands)

A

SW(config)# vlan {vlan-number}
SW(config-vlan)# name NAME

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Display switchport information about an interface

A

SW# show interface {interface-id} switchport

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Display all trunks on a switch

A

SW# show interface trunk

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Create an Etherchannel (2 commands)

A

SW(config)# int range {interface-id} - {interface-id}
SW(config-if-range)# channel-group {1-255} mode [active | auto | on | desirable]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Create a LACP Etherchannel

A

SW(config-if-range)# channel-group {1-255} mode {active | passive}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Create a LAgP Etherchannel

A

SW(config-if-range)# channel-group {1-255} mode {auto | desirable}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Display Etherchannel information

A

SW# show etherchannel summary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Display information about a port channel

A

SW# show interface port-channel {number}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Display Etherchannel neighbors

A

SW# show {lacp | lagp} neighbors

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Display Etherchannel counters

A

SW# show {lacp | lagp} counters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Enable “minimum links” for Etherchannel (2 commands)

A

SW(config)# interface port-channel {number}
SW(config-if)# port-channel min-links {1-8}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Enable “max links” for an Etherchannel (3 commands)

A

SW(config)# interface port-channel {number}
SW(config-if)# lacp fast-switchover
SW(config-if)# lacp max-bundle {1-8}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Related to max links and hot standby, display the system priority

A

SW# show lacp sys-id

24
Q

Alter the system priority so the switch can become the hot-standby master

A

SW(config)# lacp system-priority {1 - 65535}

NOTE: lower is more preferred

25
Alter the port priority to determine whether it will be the hot-standby port in the port-channel or not
SW(config-if)# lacp port-priority {1 - 65535} NOTE: lower is more preferred
26
Enable rate fast on an Etherchannel
SW(config-if-range)# lacp rate fast
27
When a port is showing "suspended", what does that generally mean?
There is a problem with Etherchannel
28
Display the burned-in MAC for a switch
SW# show version SW# show spanning-tree (Bridge ID Address)
29
Display the STP Root bridge for all VLAN IDs
SW# show spanning-tree root
30
Display the STP Root bridge for a specific VLAN ID
SW# show spanning-tree vlan {*vlan-id*} root
31
Alter the STP priority of a switch to influence election of Root Bridge
SW(config)# spanning-tree vlan {*vlan-id*} priority {*number*} NOTE: the priority number is in increments of 4096
32
Set this switch as the root bridge
SW(config)# spanning-tree vlan {*vlan-id*} root [primary | secondary]
33
Display detailed information regarding an STP interface
SW# show spanning-tree vlan {*vlan-id*} interface {*int-id*}
34
Alter the priority of an STP port
SW(config-if)# spanning-tree port-priority {*priority-value*} SW(config-if)# spanning-tree vlan {*vlan-id*} port-priority {*priority-value*}
35
Alter the cost of an STP port
SW(config-if)# spanning-tree cost {*value*} SW(config-if)# spanning-tree vlan {*vlan-id*} cost {*value*}
36
Enable Uplink Fast. Where would this be configured?
Configure only on access switches. SW(config)# **spanning-tree uplinkfast**
37
Enable Backbone Fast. Where would this be configured?
Configure on all switches in the topology. SW(config)# spanning-tree backbonefast
38
Enable Portfast (two methods)
From interface: SW(config-if)# spanning-tree portfast From global config: SW(config)# spanning-tree portfast default
39
Disable portfast
SW(config-if)# spanning-tree portfast disable SW(config)# spanning-tree portfast disable
40
Enable BDPU Filtering (two methods)
From interface with portfast enabled: SW(config-if)# spanning-tree bpdufilter enable From global config: SW(config)# spanning-tree **portfast** bpdufilter [default]
41
Implement Root Guard
SW(config-if)# spanning-tree guard root NOTE: This would be configured on a trunk link facing an edge (access) switch
42
Enable BDPU Guard (two methods)
SW(config)# spanning-tree portfast bpduguard [default] SW(config-if)# spanning-tree bpduguard enable
43
Config Sample - Configure bpduguard and bpdufilter from global config mode
SW1(config)# spanning-tree portfast default ! Need to disable on any trunk links SW1(config)# int range gi1/0, gi1/1 SW1(config-if-range)# spanning-tree portfast disable SW1(config)# spanning-tree portfast bpdufilter default SW1(config)# spanning-tree portfast bpduguard default
44
Config Sample - Configure bpduguard and bpdufilter from interface config mode
SW1(config)# int range Gi0/0 - 24 SW1(config-if-range)# spanning-tree portfast SW1(config-if-range)# spanning-tree bpdufilter enable SW1(config-if-range)# spanning-tree bpduguard enable
45
Enable Loop Guard (two methods)
SW1(config)# spanning-tree loopguard default SW1(config-if)# spanning-tree guard loop
46
Enable UDLD (two methods)
Globally - only enables on SFP ports: SW1(config)# udld enable [aggressive] On interface: SW1(config-if)# udld port [aggressive] NOTE: this needs to be configured on both sides of the link.
47
Disable UDLD on a port
SW1(config-if)# udld port disable
48
Display udlp information (3 commands)
SW1# show udld SW1# show udld neighbors SW1# show udld {interface-id}
49
Enable Rapid Spanning Tree
SW(config)# spanning-tree mode rapid-pvst
50
Enable Multiple Spanning Tree
SW(config)# spanning-tree mode mst
51
Define the name and version for MST on a switch (3 commands)
SW(config)# spanning-tree mst configuration SW(config-mst)# name NAME SW(config-mst)# revision {*1 - 65535*}
52
Define an instance of MST on a switch (2 commands)
SW(config)# spanning-tree mst configuration SW(config-mst)# instance {number} vlan {vlan-id}, {vlan-id}
53
Alter an MST instance to become the root bridge (2 methods)
Method 1 - using root command: SW1(config)# spanning-tree mst 5 root [primary | secondary] Method 2 - using priority command: SW1(config)# spanning-tree mst 5 priority {*value*}
54
Create an LACP EtherChannel (2 commands)
SW1(config)# int range gi0/0-1 SW1(config-if-range)# channel-group mode {active | passive}
55
Create a PAgP EtherChannel (2 commands)
SW1(config)# int range gi0/0-1 SW1(config-if-range)# channel-group mode {auto | desirable}