IOS Commands Flashcards

Basics of IOS

1
Q

line console 0

A

Global command that changes the context to console configuration mode.

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

line vty

A

Global command that changes the context to vty configuration mode for the range of vty lines listed in the command.

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

login

A

Line (console and vty) configuration mode. Tells IOS to prompt for a password (no username).

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

password

A

Line (console and vty) configuration mode. Lists the password required if the login command (with no other parameters) is configured.

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

interface

A

Global command that changes the context to interface mode - for example, interface FastEthernet 0/1

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

hostname

A

Global command that sets this switch’s host name, which is also used as the first part of the switch’s command prompt.

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

exit

A

Moves back to the next higher mode and goes back to enable mode from any of the configuration submodes.

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

Ctrl-Z

A

This is not a command, but rather a two-key combination that together do the same thing as the end command

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

end

A

Exits configuration mode and goes back to enable mode from any of the configuration submodes.

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

no debug all

undebug all

A

Enable mode EXEC command to disable all currently enabled debugs.

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

terminal monitor

A

EXEC command that tells Cisco IOS to send a copy of all syslog messages, including debug messages, to the Telnet or SSH user who issues this command.

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

reload

A

Enable mode EXEC command that reboots the switch or router.

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

copy

A

Enable mode EXEC command that copies files from one file location to another. Locations include the startup config and running config in RAM, files TFTP and RCP servers, and flash memory.

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

copy running-config startup-config

A

Enable mode EXEC command that saves the active config, replacing the startup config file used when the switch initializes.

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

copy startup-config running-config

A

Enable mode EXEC command that merges the startup config file with the currently active running config file in RAM.

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

show running-config

A

Lists the contents of the running config file.

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

write erase

erase startup-config

A

These enable mode EXEC commands to erase the startup config file.

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

quit

A

EXEC command that disconnects the user from the CLI session.

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

show startup-config

A

Lists the contents of the startup config (initial config) file.

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

enable

A

Moves the user from user mode to enable (privileged) mode and prompts for a password if one is configured.

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

disable

A

Moves the user from enable mode to user mode.

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

configure terminal

A

Enable mode command that moves the user into configuration mode.

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

login local

A

Console and vty configuration mode. Tells IOS to prompt for a username and password, to be checked against locally configured username global configuration commands on this switch or router.

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

username secret

A

Global command. Defines one of possibly multiple usernames and associated passwords, used for user authentication. Used when the login local line configuration command has been used.

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

crypto key generate rsa

A

Global command. Creates and stores (in a hidden location in flash memory) the keys required by SSH.

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

transport input {telnet | ssh | all | none}

A

vty line configuration mode. Defines whether Telnet and/or SSH access is allowed into this switch. both values can be configured on one command to allow both Telnet and SSH access (the default).

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

service password-encryption

A

Global command that (weakly) encrypts passwords defined by the “username password”, “enable password”, and “login” commands.

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

interface vlan

A

Changes the context to VLAN interface mode. For VLAN1, allows the configuration of the switch’s IP address.

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

ip address

A

VLAN interface mode. Statically configures the switch’s IP address and mask.

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

ip address dhcp

A

VLAN interface mode. Configures the switch as a DHCP client to discover its IP address, mask, and default gateway.

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

ip default-gateway <address>

A

Global command, Configures the switch’s default gateway IP address. Not required if the switch uses DHCP.

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

ip name-server

A

Global command. Configures the IP address(es) of DNS servers, so any commands when logged into the switch will use the DNS for name resolution.

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

interface

A

Changes context to interface mode. The type is typically FastEthernet or GigabitEthernet. The possible port numbers vary depending on the model of switch - for example, Fa0/1, Fa0/2, and so on.

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

interface range

A

Changes the context to interface mode for a range of consecutively numbered interfaces. The sub-commands that follow then apply to all interfaces in the range.

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

shutdown

no shutdown

A

Interface mode. Disables or enables the interface, respectively.

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

speed {10 | 100 | 1000 | auto}

A

Interface mode. Manually sets the speed to the listed speed or, with the auto setting, automatically negotiates the speed.

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

duplex {auto | full | half}

A

Interface mode. Manually sets the duplex to half or full, or to auto-negotiate the duplex setting.

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

description

A

Interface mode. Lists any information text that the engineer wants to track for the interface, such as the expected device on the other end of the cable.

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

switchport mode {access | trunk | negotiate}

A

Interface configuration mode command that tells the switch to always be an access port, or always be a trunk port, or to negotiate which to be.

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

switchport port-security mac-address

A

Interface configuration mode command that statically adds a specific Mac address as an allowed MAC address on the interface.

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

switchport port-security mac-address sticky

A

Interface sub-command that tells the switch to learn MAC addresses on the interface and add them to the configuration for the interface as secure MAC addresses.

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

switchport port-security maximum

A

Interface sub-command that sets the maximum number of static secure MAC addresses that can be assigned to a single interface.

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

switchport port-security violation {protect | restrict | shutdown}

A

Interface sub-command that tells the switch what to do if an inappropriate MAC address tries to access the network through a secure switch port.

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

hostname

A

Global command. Sets this switch’s host name, which is also used as the first part of the switch’s command prompt.

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

enable secret

A

Global command. Sets this switch’s password that is required for any user to reach enable mode.

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

history size

A

Line config mode. Defines the number of commands held in the history buffer, for later recall, for users of those lines.

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

logging synchronous

A

Console or vty mode. Tells IOS to send log messages to the user at natural break points between commands, rather than in the middle of a line of output.

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

[no] logging console

A

Global command that disables or enables the display of log messages to the console.

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

exec-timeout

A

Consoles or vty mode. Sets the inactivity timeout, so that after the defined period of no action, IOS closes the current user login session.

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

switchport access vlan

A

Interface sub-command that defines the VLAN in which the interface resides.

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

banner [motd | exec | login]

A

Global command that defines a banner that is displayed at different times when users log in to the switch or router.

52
Q

show running-config

A

Lists the currently used configuration.

53
Q

show running-config | begin line vty

A

Pipes (sends) the command output to the begin command, which only lists output beginning with the first line that contains the text “line vty.”

54
Q

show mac address-table dynamic

A

Lists the dynamically learned entries in the switch’s address (forwarding) table.

55
Q

show dhcp lease

A

Lists any information the switch acquires as a DHCP client. This includes IP address, subnet mask, and default gateway information.

56
Q

show crypto key mypubkey rsa

A

Lists the public and shared key created for use with SSH using the crypto key generate rsa global configuration command.

57
Q

show ip ssh

A

Lists status information for the SSH server, including the SSH version.

58
Q

show ssh

A

Lists status information for current SSH connections into and out of the local switch.

59
Q

show interfaces status

A

Lists one output line per interface, noting the description, operating state, and settings for duplex and speed on each interface.

60
Q

show interfaces vlan 1

A

Lists the interface status, the switch’s IP address and mask, and much more.

61
Q

show ip default-gateway

A

Lists the default gateway.

62
Q

show port-security interface

A

Lists an interface’s port security configuration settings and security operation status.

63
Q

terminal history size

A

Changes the length of the history buffer for the current user only, only for the current login to the switch.

64
Q

show history

A

Lists the commands in the current history buffer.

65
Q

vlan

A

Global config command that both creates the VLAN and puts the CLI into VLAN configuration mode.

66
Q

name

A

VLAN sub-command that names the VLAN

67
Q

[no] shutdown

A

VLAN mode sub-command that enables (no shutdown) or disables (shutdown) the VLAN

68
Q

[no] shutdown vlan

A

Global config command that has the same effect as the [no] shutdown VLAN mode subcommands

69
Q

vtp mode {server | client | transparent | off}

A

Global config command that defines the VTP mode

70
Q

switchport mode {access | dynamic | auto | desirable | trunk}

A

Interface sub-command that configures the trunking administrative mode on the interface

71
Q

switchport access vlan

A

Interface sub-command that defines the list of allowed VLANs

72
Q

switchport trunk {dot1q | isl | negotiate}

A

Interface sub-command that defines which type of trunking to use, assuming that trunking is configured or negotiated

73
Q

switchport trunk native vlan

A

Interface sub-command that defines the native VLAN for a trunk port

74
Q

switchport nonegotiate

A

Interface sub-command that disables the negotiation of VLAN trunking

75
Q

show interfaces switchport

A

Lists information about any interface regarding administrative settings and operational state

76
Q

show interfaces trunk

A

Lists information about all operational trunks (but no other interfaces), including the list of VLANs that can be forwards over the trunk

77
Q

show vlan [brief | id | name | summary]

A

Lists information about the VLAN

78
Q

show vlan [vlan]

A

displays VLAN information

79
Q

show vtp status

A

Lists VTP configuration and status information

80
Q

shutdown

no shutdown

A

Interface sub-commands that administratively disable and enable an interface, respectively.

81
Q

switchport port-security violation {protect | restrict | shutdown}

A

Interface sub-command that tells the switch what to do if an inappropriate MAC address tries to access the network through a secure switch port.

82
Q

cdp run

no cdp run

A

Global commands that enable and disable, respectively, CDP for the entire switch or router.

83
Q

cdp enable

no cdp enable

A

Interface sub-commands that enable and disable, respectively, CDP for a particular interface.

84
Q

speed {auto | 10 | 100 | 1000}

A

Interface sub-command that manually sets the interface speed.

85
Q

duplex {auto | full | half}

A

Interface sub-command that manually sets the interface duplex.

86
Q

show mac address-table [dynamic | static] [address ] [interface ] [vlan ]

A

Displays the MAC address table. The security option displays information about the restricted or static settings.

87
Q

show port-security [interface ] [address]

A

Displays information about security options configured on an interface.

88
Q

show cdp neighbors []

A

Lists one summary line of information about each neighbor, or just the neighbor found on a specific interface if an interface was listed.

89
Q

show cdp neighbors detail

A

Lists one large set of information (approximately 15 liens) for every neighbor.

90
Q

show cdp entry

A

Displays the same information as the “show cdp neighbors detail” command, but only for the named neighbor.

91
Q

show cdp

A

States whether CDP is enabled globally, and lists the default update and holdtime timers.

92
Q

show cdp interface [type number]

A

States whether CDP is enabled on each interface, or a single interface if the interface is listed, and states update and holdtime timers on those interfaces.

93
Q

show cdp traffic

A

Displays global statistics for the number of CDP advertisements sent and received.

94
Q

show interfaces [type number]

A

Displays detailed information about interface status, settings, and counters.

95
Q

show interfaces description

A

Displays one line of information per interface, with a two-item status (similar to “show interfaces” command status), and includes any description that is configured on the interface.

96
Q

show interfaces [ ] status

A

Displays summary information about interface status and settings, including actual speed and duplex, a single-item status code, and whether the interface was auto-negotiated.

97
Q

show interfaces [ <number] switchport

A

Displays a large variety of configuration settings and current operational status, including VLAN trunking details, access and voice VLAN, and native VLAN.

98
Q

show interfaces [ ] trunk

A

Lists information bout the currently operational trunks (or just for the trunk listed in the command) and the VLANs supported on those trunks.

99
Q

show vlan brief,

show vlan

A

Lists each VLAN and all interfaces assigned to that VLAN but does not include trunks.

100
Q

show vlan id

A

Lists both access and trunk ports in the VLAN

101
Q

show vtp status

A

Lists the current VTP status, including the current mode.

102
Q

interface

A

Global command that moves the user into configuration mode of the named interface

103
Q

ip address <address>

A

Interface sub-command that sets the router’s IPv4 address and mask.

104
Q

[no] shutdown

A

Interface sub-command that enables (no shutdown) or disables (shutdown) the interface.

105
Q

duplex {full | half | auto}

A

Interface command that sets the duplex, or sets the use of IEEE autonegotiation, for router LAN interfaces that support multiple speeds.

106
Q

speed {10 | 100 | 1000}

A

Interface command for router Gigabit (10/100/1000) interfaces that sets the speed at which the routers interface sends and receives data.

107
Q

clock rate

A

interface command that sets the speed at which the router supplies a clocking signal, applicable only when the router has a DCE cable installed. the unit it bits/second.

108
Q

description

A

An interface sub-command with which you can type a string of text to document information about that particular interface.

109
Q

show interfaces [ ]

A

Lists a large set of informational messages about each interface, or about the one specifically listed interface.

110
Q

show ip interface brief

A

Lists a single line of information about each interface, including the IP address, line and protocol status, and the method with which the address was configured (manual or DHCP).

111
Q

show protocols

A

Lists information about the listed interface, including the IP address, mask, and line/protocol status.

112
Q

show controllers [ ]

A

Lists many lines of information per interface, or for one interface, for the hardware controller of the interface. On serial interfaces, this command identifies the cable as either a DCE or DTE cable.

113
Q

show version

A

Lists the version of IOS currently running in the router, plus a variety of other facts about the currently installed hardware and software in the router.

114
Q

ip address [secondary]

A

Interfaces sub-command that assigns the interface’s IP address and optionally makes the address a secondary address.

115
Q

interface

A

Global command to create a subinterface and to enter configuration mode for that subinterface

116
Q

encapsulation dot1q [native]

A

A subinterface sub-command that tells the router to use 802.1Q trunking, for a particular VLAN, and with the native keyword, to not encapsulate the header

117
Q

encapsulation isl

A

A subinterface subcommand that tells the router to use ISL trunking for a particular VLAN

118
Q

sdm prefer lanbase-routing

A

A command on Cisco switches that enables the switch to support IP routing if configured

119
Q

[no] ip routing

A

Global command that enables (ip routing) or disables (no ip routing) the routing of IPv4 packets on a router or Layer 3 switch

120
Q

interface vlan

A

Global command on a Layer 4 switch to create a VLAN interface and to enter configuration mode for that VLAN interface

121
Q

[no] ip subnet-zero

A

Global command that allows (ip subnet-zero) or disallows (no ip subnet-zero) the configuration of an interface IP address in a zero subnet

122
Q

ip route { } [] [permanent]

A

Global configuration command that creates a static route

123
Q

ip default-network

A

Global command that creates a default route based on the router’s route to reach the classful network listed in the command.

124
Q

show ip route

A

Lists the router’s entire routing table

125
Q

show ip route [connected | static | ospf]

A

Lists a subnet of the IP routing table

126
Q

show ip route

A

Lists detailed information about the route that a router matches for the listed IP address

127
Q

show vlans

A

Lists VLAN configuration and statistics for VLAN trunks configured on routers