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
Q

Alter the port priority to determine whether it will be the hot-standby port in the port-channel or not

A

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

NOTE: lower is more preferred

26
Q

Enable rate fast on an Etherchannel

A

SW(config-if-range)# lacp rate fast

27
Q

When a port is showing “suspended”, what does that generally mean?

A

There is a problem with Etherchannel

28
Q

Display the burned-in MAC for a switch

A

SW# show version

SW# show spanning-tree (Bridge ID Address)

29
Q

Display the STP Root bridge for all VLAN IDs

A

SW# show spanning-tree root

30
Q

Display the STP Root bridge for a specific VLAN ID

A

SW# show spanning-tree vlan {vlan-id} root

31
Q

Alter the STP priority of a switch to influence election of Root Bridge

A

SW(config)# spanning-tree vlan {vlan-id} priority {number}

NOTE: the priority number is in increments of 4096

32
Q

Set this switch as the root bridge

A

SW(config)# spanning-tree vlan {vlan-id} root [primary | secondary]

33
Q

Display detailed information regarding an STP interface

A

SW# show spanning-tree vlan {vlan-id} interface {int-id}

34
Q

Alter the priority of an STP port

A

SW(config-if)# spanning-tree port-priority {priority-value}

SW(config-if)# spanning-tree vlan {vlan-id} port-priority {priority-value}

35
Q

Alter the cost of an STP port

A

SW(config-if)# spanning-tree cost {value}

SW(config-if)# spanning-tree vlan {vlan-id} cost {value}

36
Q

Enable Uplink Fast. Where would this be configured?

A

Configure only on access switches.

SW(config)# spanning-tree uplinkfast

37
Q

Enable Backbone Fast. Where would this be configured?

A

Configure on all switches in the topology.

SW(config)# spanning-tree backbonefast

38
Q

Enable Portfast (two methods)

A

From interface: SW(config-if)# spanning-tree portfast

From global config: SW(config)# spanning-tree portfast default

39
Q

Disable portfast

A

SW(config-if)# spanning-tree portfast disable

SW(config)# spanning-tree portfast disable

40
Q

Enable BDPU Filtering (two methods)

A

From interface with portfast enabled: SW(config-if)# spanning-tree bpdufilter enable

From global config: SW(config)# spanning-tree portfast bpdufilter [default]

41
Q

Implement Root Guard

A

SW(config-if)# spanning-tree guard root

NOTE: This would be configured on a trunk link facing an edge (access) switch

42
Q

Enable BDPU Guard (two methods)

A

SW(config)# spanning-tree portfast bpduguard [default]

SW(config-if)# spanning-tree bpduguard enable

43
Q

Config Sample - Configure bpduguard and bpdufilter from global config mode

A

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
Q

Config Sample - Configure bpduguard and bpdufilter from interface config mode

A

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
Q

Enable Loop Guard (two methods)

A

SW1(config)# spanning-tree loopguard default

SW1(config-if)# spanning-tree guard loop

46
Q

Enable UDLD (two methods)

A

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
Q

Disable UDLD on a port

A

SW1(config-if)# udld port disable

48
Q

Display udlp information (3 commands)

A

SW1# show udld

SW1# show udld neighbors

SW1# show udld {interface-id}

49
Q

Enable Rapid Spanning Tree

A

SW(config)# spanning-tree mode rapid-pvst

50
Q

Enable Multiple Spanning Tree

A

SW(config)# spanning-tree mode mst

51
Q

Define the name and version for MST on a switch (3 commands)

A

SW(config)# spanning-tree mst configuration
SW(config-mst)# name NAME
SW(config-mst)# revision {1 - 65535}

52
Q

Define an instance of MST on a switch (2 commands)

A

SW(config)# spanning-tree mst configuration
SW(config-mst)# instance {number} vlan {vlan-id}, {vlan-id}

53
Q

Alter an MST instance to become the root bridge (2 methods)

A

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
Q

Create an LACP EtherChannel (2 commands)

A

SW1(config)# int range gi0/0-1
SW1(config-if-range)# channel-group mode {active | passive}

55
Q

Create a PAgP EtherChannel (2 commands)

A

SW1(config)# int range gi0/0-1
SW1(config-if-range)# channel-group mode {auto | desirable}