Misc 1 - CLI Commands Flashcards

1
Q

enable secret

A

Defines a password that you need to enter when entering enable mode. This password is encrypted using MD5 encryption. If ‘Enable Password’ has already set a password on the router then it will be overwritten.

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

show running-config

A

Lists the currently running configuration on the switch

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

reload

A

Reboots Cisco IOS

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

enable

A

Moves the user from user mode to enable mode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
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
6
Q

?

A

Provides help for all commands listed in this mode

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

command ?

A

Lists text to describe all the first parameter options for the command (E.g. ‘show ?’ would list commands such as ‘show running-config’, ‘ show hosts’)

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

com?

A

Lists all commands that start with com

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

command <parm?>

A

Lists all parameters beginning with the parameter typed so far

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

command <parm><tab></tab></parm>

A

Causes the CLI to spell out the rest of the word of the parameter you have typed out so far

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

command <parm1> ?</parm1>

A

If a space is inserted between the parameter and the question mark the CLI lists all the next parameters and gives a brief explanation of each

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

show

A

Shows the current status of the parameters entered

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

debug

A

Shows the live status of the parameters entered

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

configure or configure terminal

A

Moves the user from enable mode to configuration mode

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

end or ctrl+z

A

Moves the user from configuration mode to enable mode

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

exit

A

Entering this from within a configuration submode brings you back to global configuration mode

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

copy running-config startup-config

A

Backs up the running config to the startup-config file overwriting it.

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

write erase or erase startup-config or erase NVRAM

A

Erases the startup-config file

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

login

A

Enables password security using the password entered for this interface’s type of access (e.g. console or vty)

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

enable secret

A

Global command that sets a password for logging into enable mode

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

line <access> <interface> password <password></password></interface></access>

A

Sets a password for access from this particular access mode (e.g. console or vty)

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

login local

A

Tells the access method (console or vty) to use the local list of usernames and passwords instead of shared passwords per access method

23
Q

How would you remove the password from privileged EXEC (enable) mode?

A

no enable password

24
Q

no password

A

Removes the shared password from the interface of the access method you are currently in.

25
Q

transport input <all, none, telnet, ssh>

A

Whichever interfaces you select here are the only ones that you will be able to access the device on

26
Q

no logging console

A

Disables the logging messages in the console. Can be reenabled by entering ‘logging console’

27
Q

no ip domain-lookup

A

If you mistype a command, the device doesn’t think you’re searching for a domain name and lock up the device

28
Q

description

A

Allows you to write a text description about a particular interface (e.g. What its purpose is).

29
Q

interface range <interface> - <interface></interface></interface>

A

Tells the device that the next configuration being made will be made to all interfaces within this range. This can be defined as long as the interfaces are numbered consecutively and the interfaces are all the same type.

30
Q

no <parameter></parameter>

A

Will revert this parameter back to its original configuration (e.g. ‘no speed’ will revert an interface set for speed 100 to auto negotiate)

31
Q

What command is used to create a VLAN?

A

vlan <vlan-id></vlan-id>

32
Q

What command is used to name a VLAN?

A

vlan name <name></name>

33
Q

How do you set an interface as access for a particular VLAN?

A

‘switchport access vlan <vlan-id>'
Specifies that the port this is configured on is an access port for the respective VLAN ID. If the VLAN ID has not already been created then it will be created dynamically and the specified port(s) will be added.</vlan-id>

34
Q

switchport mode access

A

Specifies that the port this is configured on will only ever be an access port

35
Q

show vlan brief

A

Shows details of all VLANs currently configured on the device

36
Q

switchport mode dynamic auto

A

Sets an interface to dynamic auto trunking mode (Explained in chapter 8 cards)

37
Q

switchport mode dynamic desirable

A

Sets an interface to dynamic desirable trunking mode (Explained in chapter 8 cards)

38
Q

What two commands could you use to disable VTP?

A

‘vtp mode transparent’ or ‘vtp mode off’

39
Q

How would you encrypt your device’s password?

A

‘service password-encryption’
Doesn’t change the password, although it makes it so that the password is encrypted (Using Cisco Type 7) and cannot be seen on the router

40
Q

What command would you use to define a password specifically for privileged EXEC (enable) mode?

A

enable password <password></password>

41
Q

How would you define a voice VLAN?

A

switchport voice vlan <vlan-id></vlan-id>

42
Q

What does ‘show interfaces trunk’ do?

A

Displays trunk information on the switch (e.g. what ports have what VLANs tagged, allowed VLANs on trunks)

43
Q

How would you find out if an interface is currently in access mode?

A

‘show interfaces switchport’
Displays the configured status of all switch ports (e.g. administrative and operational modes, access mode and voice VLANs). Can be refined by entering ‘show interfaces switchport <interface>'.</interface>

44
Q

What command would you use to only allow an interface to trunk specified VLANs?

A

‘switchport trunk allowed vlan <vlan-ID>'</vlan-ID>

45
Q

spanning-tree pathcost method long

A

Allows you to use the IEEE 802.1Q (2004 and after) STP path costs

46
Q

What does ‘port-channel load-balance <method>' do?</method>

A

Defines the EtherChannel load balancing method. The method can be:
- src-mac - Uses the source MAC address
- dst-mac - Uses the destination MAC address
- src-dst-mac - Uses both the source and destination MAC address
- src-ip - Uses the source IP address
- dst-ip - Uses the destination IP address
- src-dst-ip - Uses both the source and destination IP address
- src-port - Uses the source TCP or UDP port
- dst-port - Uses the destination TCP or UDP port
- src-dst-port - Uses the source and destination TCP or UDP port

47
Q

How would you test the load balancing capabilites of an EtherChannel?

A

‘test etherchannel load-balance’
It does this by considering its method’s (e.g. src-mac, dst-ip, src-port, etc.) message headers and asking it where it would forward particular message headers.

48
Q

How would you show the ip information of an interface?

A

‘show ip interface’
This will show information such as IP Address, interface status, MTU etc. To find this information for a specific interface you just need to enter ‘show ip interface <interface>'</interface>

49
Q

How would you map a hostname to an IP address?

A

‘ip host <String> <IP>' (upto 8 addresses).
Normally used for Telnet purposes so you can Telnet to the hostname instead of having to remember the IP.</IP></String>

50
Q

How would you display the hostnames and addresses configured on a router?

A

‘show hosts’

51
Q

What command would you use to show the recent commands you have entered? What command would you use to refine the results?

A

‘show history’
will show all previously entered commands. If ‘history size <number>' is set then it will show this amount of commands.</number>

‘history size <number>'
Defines the number of commands you can see when entering the 'show history' command. Will also affect the amount of commands you can go back to when pressing the up arrow.</number>

52
Q

What does ‘terminal monitor’ do?

A

This presents the status changes of interfaces in the terminal. For example if you shutdown gi0/0 it will show a message stating that gi0/0 has changed to administratively down.

‘terminal monitor’ does not remain between sessions. You will need to re enter this command after you logout and back in

53
Q

What command could you use to find the administrative route distance of a route?

A

show ip route

54
Q

What command could you use to find information about your router’s OSPF neighbors?

A

show ip ospf neighbor