Cisco CLI Flashcards

1
Q

What is the running-config ?

A

The current active configuration file on the device. As you enter commands into the CLI, you edit the active configuration

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

What is the start-up config ?

A

The configuration loaded upon the restart of the device

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

How to enter priviledged EXEC mode ?

A

type “enable” in CLI

Router#

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

How to enter global configuration mode ?

A

type “configure terminal” in CLI

Router(config)#

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

How to create a password on Cisco device ?

A

type “enable password ____” in CLI while in configuration mode

or

type “enable secret ____” in CLI while in configuration mode
(more secure and takes precedence over enable password)

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

How to display running and starting configuration ?

A

type “show ____-config” in EXEC mode.
show running-config
show startup-config

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

How to save configuration ?

A

Type into CLI
1 “write”
2 “write memory”
3 “copy running-config startup-config”

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

How to encrypt passwords ?

A

service password-encryption
(Encrypts current and future passwords. Uses Cisco proprietary type 7 encryption. Not secure can be cracked)

enable secret _____
(more secure. Uses MD5 encryption, harder to crack. Passwords are always encrypted)

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

How to remove a command ?

A

type “no” in front of command you want to remove (global config mode)

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

You use the […] keyword to execute privileged EXEC commands in global configuration mode.

A

do

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

How to change hostname of Cisco device ?

A

Use the ‘hostname’ command in global configuration mode

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

How to view mac address table ?

A

show mac address-table

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

How to clear mac address table ?

A

clear mac address-table dynamic

clear mac address-table dynamic interface (mac or port)

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

How to view interface info on router ?

A

show ip interface breif

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

How to configure interface on router ?

A

interface (interface)

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

How to manually set ip address for interface ?

A

ip address (IP address) (subnet mask)

no shutdown

17
Q

How to configure interfaces in a range ?

A

interface range (range)

18
Q

How to configure router static path to next hop ?

A

ip route (ip address) (netmask) (next hop ip address)

ip route (ip address) (netmask) (exit interface)

19
Q

Cisco Default Serial Connection Setting

A

Speed (baud): 9600
Data bits: 8
Stop Bits: 1
Parity: None
Flow Control: None

20
Q

When logging into Cisco CLI what is the default user mode ?

A

‘User EXEC mode’
Users can look at some information but can’t make any changes to the configuration

21
Q

How can you view all the availible commands in your current user mode ?

A

type ‘?’ in the CLI

22
Q

VTY

A

The term “vty” stands for Virtual teletype. VTY is a virtual port and used to get Telnet or SSH access to the device. VTY is solely used for inbound connections to the device. These connections are all virtual with no hardware associated with them.

in global config mode type
line vty 0 16
login local
logging sync
username <user> password <pass></pass></user>

23
Q

How to setup remote access

A

Enter global configuration mode:
configure terminal (conf t)

Create user account:
username <user> password <pass></pass></user>

Create VLAN:
interface vlan1

Set its IP address:
ip address <IP> <subnet></subnet></IP>

Virtual ports are administratively down by default so turn interface on:
no shutdown

line vty 0 15

tell where to look for username and password:
login local

verify telnet access:
transport input all

set domain name:
ip domain-name <name></name>

generate cryptography key:
crypto key generate rsa

Enter modulus number based on security policy

ip ssh version 2

Set to ssh only:
transport input ssh

24
Q

show ip interface brief

A

show all interfaces

25
Q

show all interfaces in a VLAN

A

show vlan brief

26
Q

show inventory

A

used to display information about the hardware components installed in the device. This command provides details such as the part numbers, serial numbers, descriptions, and quantities of the various hardware components.