IOS Switch Commands Flashcards

1
Q

User mode.

A

Switch>

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

Enter Privilege mode.

A

Switch>enable

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

Privileged mode.

A

Switch#

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

Enter Configuration mode.

A

Switch#configure terminal

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

Global Configuration mode.

A

Switch(config)#

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

Enter Interface mode.

A

Switch(config)#interface fa0/1

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

Interface mode.

A

Switch(config-if)#

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

Return to Global Configuration mode.

A

Switch(config-if)#exit

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

Return to User mode.

A

Switch#disable

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

Logout.

A

Switch>exit

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

Recall previous command.

A

Up arrow or Ctrl p

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

Recall next command.

A

Down arrow or Ctrl n

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

Beginning of command.

A

Ctrl a

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

End of command.

A

Ctrl e

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

Delete input.

A

Ctrl d

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

Exit Configuration mode.

A

Switch(config)#exit or Ctrl z

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

Complete command.

A

Tab

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

Configure device system name.

A

Switch(config)#hostname yourhostname

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

Sets the encrypted enable password.

A

Switch(config)#enable secret cisco

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

Sets the un-encrypted enable password.

A

Switch(config)#enable password cisco

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

Enable password encryption on all clear text password within the configuration file.

A

Switch(config)#service password-encryption

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

Configure a Message Of The Banner, with an ending character of $.

A

Switch(config)#banner modt $

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

Assign IP address to VLAN 1.

A

Switch(config)#interface vlan 1

Switch(config-if)#ip address 192.168.0.1 255.255.255.0

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

Assign Default Gateway.

A

Switch(config)#ip default-gateway 192.168.0.250

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

Select one interface.

A

Switch(config)#interface fastEthernet 0/1

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

Select a range of interfaces.

A

Switch(config)#interface fastEthernet 0/1 - 24

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

Set the interface description.

A

Switch(config-if)#description yourdescription

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

Add VLAN 10 to switch and name it TEST.

A

Switch(config)#vlan 10

Switch(config-vlan)#name test

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

Configure interface FastEthernet 0/1 @ speed 100 Mbps and full duplex.

A

Switch(config)#interface FastEthernet 0/1
Switch(config-if)#speed 100
Switch(config-if)#duplex full

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

Assign interface to VLAN.

A

Switch(config)#switchport access vlan 10

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

Enable port security.

A

Switch(config-if)#switchport mode access
Switch(config-if)#switchport port-security
Switch(config-if)#switchport port-security mac-address sticky

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

Disable interface.

A

Switch(config-if)#shutdown

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

Enable interface.

A

Switch(config-if)#no shutdown

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

Configures 5 Telnet sessions each with a password of ‘cisco’.

A

Switch(config)#line vty 0 4
Switch(config-line)#login
Switch(config-line)#password cisco

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

Enable and define console password of ‘cisco’.

A

Switch(config)#line con 0
Switch(config-line)#login
Switch(config-line)#password cisco

36
Q

Synchronize console messages (keep what you have typing on the screen).

A

Switch(config-line)#logging synchronous

37
Q

Set the timezone and automatically adjust.

A

Switch(config)#clock timezone gmt 0

Switch(config)#clock summer-time gmt recurring

38
Q

Sets the switch priority for the VLAN.

This combined with the switch mac address creates the switch Bridge ID (BID).

A

Switch(config)#spanning-tree vlan 1 priority 4096

39
Q

Enables portfast on interface FastEthernet 0/1

A

Switch(config)#interface FastEthernet 0/1

Switch(config-if)#spanning-tree portfast

40
Q

Enables Rapid Spanning Tree Protocol (RSTP).

Other options are, Per-VLAN Spanning Tree (PVST) and Multiple Spanning Tree (MST).

A

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

41
Q

Unconditionally forces an interface into trunking.

Other options are access and dynamic.

A

Switch(config-if)#switchport mode trunk

42
Q

Manually assign a switch to a VLAN Trunking Protocol (VTP) domain.

A switch will automatically become part of a VTP domain if it’s currently in the ‘null’ domain and receives a VTP frame

A

Switch(config)#vtp domain test

43
Q

Changes the VTP mode from the default ‘server’ mode to ‘client’ mode.

In client mode no changes can be made.

A

Switch(config)#vtp mode client

44
Q

Displays information about the current VTP configuration.

A

Switch#show vtp status

45
Q

Displays the device platform, IOS version, and package.

A

Switch#show version

46
Q

Displays the current running configuration.

A

Switch#show running-config

47
Q

Displays the startup configuration in NVRAM

A

Switch#show startup-config

48
Q

Concisely displays the state, speed, and duplex of all ports.

A

Switch#show interfaces status

49
Q

Displays which ports Port Security is enabled on.

A

Switch#show port-security

50
Q

Displays summary of the VLAN database.

A

Switch#show vlan brief

51
Q

Displays the IP routing table.

A

Switch#show ip route

52
Q

Displays current DHCP bindings.

A

Switch#show ip dhcp binding

53
Q

Displays the contents of access list 100.

A

Switch#show access-lists 100

54
Q

Displays information about all active VLAN trunks.

A

Switch#show interfaces trunk

55
Q

Displays which VLANs VTP has pruned.

A

Switch#show interfaces pruning

56
Q

Displays information about the current (R)STP configuration.

A

Switch#show spanning-tree

57
Q

Displays information about active routing protocols on the router.

A

Switch#show ip protocols

58
Q

Displays adjacent Enhanced Interior Gateway Routing Protocol (EIGRP) neighbors.

A

Switch#show ip eigrp neighbors

59
Q

Displays adjacent Open Shortest Path First (OSPF) neighbor.

A

Switch#show ip ospf neighbor

60
Q

Displays hostname and interface information about directly connected Cisco devices.

A

Switch#show cdp neighbors

61
Q

Displays the MAC address table

A

Switch#show mac address-table

62
Q

Displays logging settings and the contents of the logging buffer.

A

Switch#show logging

63
Q

Displays device up-time.

A

Switch#show version

64
Q

Reboots the network device

A

Switch#reload

65
Q

Removes the specified command from the running configuration.

A

Switch(config)#no

66
Q

Manually starts the setup dialog which is automatically invoked when the device starts with no config

A

Switch#setup

67
Q

Saves the configuration.

Without this command all changes/configuration will be lost ar device rebbot.

A

Switch#copy running-config startup-config

68
Q

Saves the running config to a TFTP server.

A

Switch#copy running-config tftp

69
Q

Copies IOS files to a TFTP server.

A

Switch#copy flash tftp

70
Q

Copies files from a TFTP server the device flash.

A

Switch#copy tftp flash

71
Q

Erase the config held in NVRAM.

If this is followed with the reload command all configuration is lost.

A

Switch#erase startup-config

72
Q

Show the current sessions.

The one with a * is your active session

A

Switch#show sessions

73
Q

Forcible closes a telnet session.

A

Switch#disconnect sessionname

74
Q

Set the device local clock to a specific time.

Note this is not done in config mode.

A

Switch#clock set 10:00:00 January 1 2019

75
Q

Displays the file contents of the flash.

A

Switch#show flash

76
Q

Displays the clock.

A

Switch#show clock

77
Q

Displays the users currently logged on.

A

Switch#show users

78
Q

By default displays the last 10 commands .

A

Switch#show history

79
Q

Displays the ARP cache.

A

Switch#show arp

80
Q

Displays the spanning tree status on VLAN 1.

A

Switch#show spanning-tree vlan 1

81
Q

Lists all the configured VLANs.

A

Switch#show vlan

82
Q

Displays extended details about directly connected Cisco devices.

A

Switch#show cdp neighbors details

83
Q

Display CDP packets as they arrive.

A

Switch#debug cdp packets

84
Q

Display ping packets as they arrive.

A

Switch#debug icmp packets

85
Q

Erase the VLAN database.

A

Switch#delete flash:vlan.dat