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
Select one interface.
Switch(config)#interface fastEthernet 0/1
26
Select a range of interfaces.
Switch(config)#interface fastEthernet 0/1 - 24
27
Set the interface description.
Switch(config-if)#description yourdescription
28
Add VLAN 10 to switch and name it TEST.
Switch(config)#vlan 10 | Switch(config-vlan)#name test
29
Configure interface FastEthernet 0/1 @ speed 100 Mbps and full duplex.
Switch(config)#interface FastEthernet 0/1 Switch(config-if)#speed 100 Switch(config-if)#duplex full
30
Assign interface to VLAN.
Switch(config)#switchport access vlan 10
31
Enable port security.
Switch(config-if)#switchport mode access Switch(config-if)#switchport port-security Switch(config-if)#switchport port-security mac-address sticky
32
Disable interface.
Switch(config-if)#shutdown
33
Enable interface.
Switch(config-if)#no shutdown
34
Configures 5 Telnet sessions each with a password of ‘cisco’.
Switch(config)#line vty 0 4 Switch(config-line)#login Switch(config-line)#password cisco
35
Enable and define console password of ‘cisco’.
Switch(config)#line con 0 Switch(config-line)#login Switch(config-line)#password cisco
36
Synchronize console messages (keep what you have typing on the screen).
Switch(config-line)#logging synchronous
37
Set the timezone and automatically adjust.
Switch(config)#clock timezone gmt 0 | Switch(config)#clock summer-time gmt recurring
38
Sets the switch priority for the VLAN. This combined with the switch mac address creates the switch Bridge ID (BID).
Switch(config)#spanning-tree vlan 1 priority 4096
39
Enables portfast on interface FastEthernet 0/1
Switch(config)#interface FastEthernet 0/1 | Switch(config-if)#spanning-tree portfast
40
Enables Rapid Spanning Tree Protocol (RSTP). Other options are, Per-VLAN Spanning Tree (PVST) and Multiple Spanning Tree (MST).
Switch(config)#spanning-tree mode rapid-pvst
41
Unconditionally forces an interface into trunking. Other options are access and dynamic.
Switch(config-if)#switchport mode trunk
42
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
Switch(config)#vtp domain test
43
Changes the VTP mode from the default ‘server’ mode to 'client' mode. In client mode no changes can be made.
Switch(config)#vtp mode client
44
Displays information about the current VTP configuration.
Switch#show vtp status
45
Displays the device platform, IOS version, and package.
Switch#show version
46
Displays the current running configuration.
Switch#show running-config
47
Displays the startup configuration in NVRAM
Switch#show startup-config
48
Concisely displays the state, speed, and duplex of all ports.
Switch#show interfaces status
49
Displays which ports Port Security is enabled on.
Switch#show port-security
50
Displays summary of the VLAN database.
Switch#show vlan brief
51
Displays the IP routing table.
Switch#show ip route
52
Displays current DHCP bindings.
Switch#show ip dhcp binding
53
Displays the contents of access list 100.
Switch#show access-lists 100
54
Displays information about all active VLAN trunks.
Switch#show interfaces trunk
55
Displays which VLANs VTP has pruned.
Switch#show interfaces pruning
56
Displays information about the current (R)STP configuration.
Switch#show spanning-tree
57
Displays information about active routing protocols on the router.
Switch#show ip protocols
58
Displays adjacent Enhanced Interior Gateway Routing Protocol (EIGRP) neighbors.
Switch#show ip eigrp neighbors
59
Displays adjacent Open Shortest Path First (OSPF) neighbor.
Switch#show ip ospf neighbor
60
Displays hostname and interface information about directly connected Cisco devices.
Switch#show cdp neighbors
61
Displays the MAC address table
Switch#show mac address-table
62
Displays logging settings and the contents of the logging buffer.
Switch#show logging
63
Displays device up-time.
Switch#show version
64
Reboots the network device
Switch#reload
65
Removes the specified command from the running configuration.
Switch(config)#no
66
Manually starts the setup dialog which is automatically invoked when the device starts with no config
Switch#setup
67
Saves the configuration. Without this command all changes/configuration will be lost ar device rebbot.
Switch#copy running-config startup-config
68
Saves the running config to a TFTP server.
Switch#copy running-config tftp
69
Copies IOS files to a TFTP server.
Switch#copy flash tftp
70
Copies files from a TFTP server the device flash.
Switch#copy tftp flash
71
Erase the config held in NVRAM. If this is followed with the reload command all configuration is lost.
Switch#erase startup-config
72
Show the current sessions. The one with a * is your active session
Switch#show sessions
73
Forcible closes a telnet session.
Switch#disconnect sessionname
74
Set the device local clock to a specific time. Note this is not done in config mode.
Switch#clock set 10:00:00 January 1 2019
75
Displays the file contents of the flash.
Switch#show flash
76
Displays the clock.
Switch#show clock
77
Displays the users currently logged on.
Switch#show users
78
By default displays the last 10 commands .
Switch#show history
79
Displays the ARP cache.
Switch#show arp
80
Displays the spanning tree status on VLAN 1.
Switch#show spanning-tree vlan 1
81
Lists all the configured VLANs.
Switch#show vlan
82
Displays extended details about directly connected Cisco devices.
Switch#show cdp neighbors details
83
Display CDP packets as they arrive.
Switch#debug cdp packets
84
Display ping packets as they arrive.
Switch#debug icmp packets
85
Erase the VLAN database.
Switch#delete flash:vlan.dat