CLI Commands Flashcards

1
Q

Computer port to switch port specs (console)

A

8N1
9600 bps
No hardware flow control
8-bit ASCII
No parity bits
1 stop bit

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

Enter privileged mode

A

enable

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

Enter privileged mode

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

rebooting a switch

A

reload

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

to see current operating parameters

A

show running-config

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

turning on enable mode password

A

enable secret _____

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

getting into console specific configuration

A

line console 0

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

Asking for password in console mode

A

line console 0
login
password ________

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

for help with all commands in current mode

A

?

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

to get help with a specific command

A

command ?
(show ?)
(copy ? )
etc

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

Finding the lists of MAC addresses learned

A

show mac address-table dynamic

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

how to tell switch what to do and how to do it

A

configure terminal

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

from config back to enable

A

end

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

interface subcommand

A

interface

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

specific interface command
hostname (config-if)

A

interface fastEthernet 0/1 (for example)

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

configure a switch hostname

A

configure terminal
hostname Fred (example)

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

setting a console password

A

line console 0
password Hope (example)

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

setting speed of an interface

A

configure terminal
interface fastEthernet 0/1
speed 100

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

entering line mode
hostname (config-line)

A

configure terminal
line console 0

configure terminal
line vty 0 15

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

enter VLAN configuration
hostname (config-vlan)

A

vlan #

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

how to store work beyond reboot

A

copy running-config startup-config

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

start fresh in lab

A

write erase
erase NVRAM
erase startup-config

then reload or power off.

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

see current status of what’s going on with device

A

show running-config

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

leave the CLI

A

quit

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

see how it started

A

show startup-config

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

going back to original session

A

copy startup-config running-config

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

see any mac address

A

show mac address-table

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

see mac addresses in a particular vlan

A

show mac address-table dynamic vlan #

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

see picture of all interfaces

A

show interfaces status

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

interface status, which is best to find a MAC address

A

show mac address-table dynamic interface fastEthernet 0/1

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

if you know particular MAC address, to find it

A

show mac address-table dynamic address 0200.1111.1111

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

finding traffic on a particular port

A

show interfaces f0/1 counters

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

finding number of MAC addresses used and available

A

show mac address-table count

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

finding age out number for entries in table

A

show mac address-table aging-time

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

clearing table

A

clear mac address-table dynamic

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

clearing table per vlan

A

clear mac address-table vlan #

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

clearing table per interface

A

clear mac address-table interface fastEthernet 0/1

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

clear a particular address

A

clear mac address-table address xxxx.xxxx.xxxx

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

Basic security passwords for a switch

A

enable
enable secret ___

configure terminal
line console 0
password _____
login
exit

line vty 0 15
password ____
login
end

40
Q

enaLocal password and usernames

A

–> user
username ____ password_____

enable

configure terminal
line console 0
login local
no password
exit

line vty 0 15
login local
no password
end

41
Q

AAA

A

Authenticate, authorize, account

switch would actually connect to an AAA server. Where the usernames would be stored

switch to AAA (radius or TACAS+)

42
Q

Configuring SSH

A

enable
configure terminal
hostname
IP domain-name example.com
crypto key generate rsa modulus 768
ip ssh version 2

line vty 0 15
login local
transport input ssh
exit

username ___ password ___

name for key would be SW1.example.com

43
Q

confirming SSH

A

show ip ssh

44
Q

how to see each user currently connected to ssh

45
Q

Configuring IPv4

A

configure terminal
interface vlan 1
ip address _______
no shutdown
exit

ip default-gateway ____
ip name-server

46
Q

turning ports on and off administratively

A

shutdown
no shutdown

47
Q

DHCP

A

dynamic host control protocol

48
Q

Configuring IPv4 with DHCP

A

configure terminal
interface vlan 1
no shutdown
ip address DHCP

49
Q

Verifying IPv4

A

show running-config

show interfaces vlan 1

show dhcp lease

50
Q

importance of show interfaces vlan 1

A

would tell you the interface is up/up.

it would be down, or not functional, if you forgot no shutdown

if DHCP didnt work, you wont see an IP address.

51
Q

seeing commands you’ve entered

A

show history

52
Q

to set history size for current session

A

terminal history X

53
Q

setting history size permanently

A

configure terminal
line console 0
history size X

configure terminal
line vty 0 15
history size X

54
Q

to avoid untimely messages from console

A

logging synchronous

55
Q

changing session timeout

A

exec-time out (minutes) (seconds)

exec-timeout 10 0

exec-time out 0 0 (never sign out)

56
Q

avoiding slowdowns when you mistype a command

A

no ip domain-lookup

57
Q

to see ssh key

A

show crypto key mypubkey rsa

58
Q

changing aging time, or per vlan

A

mac address-table aging-time ___(seconds)___ vlan (number)

59
Q

changing speed of interface

A

speed auto
speed 10
speed 100
speed 1000

60
Q

changing duplex settings

A

duplex half
duplex full
duplex auto

61
Q

adding a note on interface to say why you had good reason to change duplex or speed

A

description

description Printer on 3rd floor, preset to 100/full

62
Q

selecting a range of interfaces

A

example

interfaces FastEthernet 0/11 - 20
description End users connect to these ports

63
Q

to see what’s going on with the interfaces you’ve changed.

A

show interfaces status

64
Q

short vs long information concerning interface

A

show interfaces status vs show interfaces

65
Q

reverting some configurations back to default

A

use no….

like shutdown, no shutdown.

speed, no speed (reverts to auto
duplex, no duplex
description, no description

66
Q

Notes about show configuration concerning default settings

A

show running-config and show startup-config don’t usually enumerate default configurations.

so if you went from particular to default, no longer shower particular configuration means they’re back in default configuration.

67
Q

Matching values

A

an NIC and port must match, for example NIC cannot run at 100 while a port is configured to receive at 1000mbps.

68
Q

Problem of upgrades, due to matching values.

A

If you upgraded a PC that now uses 1000mbps off NIC, you’d need to upgrade switch to use 1000mbps. Because switch uses 1000mbps, all other PCs connected to the switch would need to use 1000mbps.

You need devices with uniformity, or variable settings. If you have devices that use variable settings, auto negotiation is a great thing. you could have 1000base-T cabling, but autonegotation would make it work for 10/100/1000 if the settings were variable on both ends.

69
Q

Issues of autonegotiation for one side

A

if one side uses autonegotiation (as default) but another is configured to definite settings, the link may not work at all or very poorly.

70
Q

default settings for failed autonegotiation

A

IEEE:
use slowest possible speed, 10.
if 10 or 100, use half duplex. if 1000, use full.

Cisco:
sense speed, if not possible use 10.
if 10 or 100, use half. if 1000 use full.

if speed or duplex is configured, autonegotiation is shut off.

devices over 1000mbps always use full duplex.

71
Q

Duplex mismatch

A

if a duplex mismatch occurs, one side will use CSMA/CD while the other doesn’t. The side using CSMA/CD will believe collisions occur, shutting off and performing poorly.

72
Q

Auto negotiation and LAN hubs

A

HUBS dont react to autonegotiation messages or forward them. You must use IEEE defaults, so HUB speed (10/100) and half duplex for everything connected to the HUB.

73
Q

Pulling interface analysis

A

show interfaces or show interfaces description, show interfaces status

74
Q

administratively down/down

A

shutdown is configured on interface

75
Q

down/down

A

no cable
bad cable
wrong pinouts
speed mismatch

neighboring device is powered off, shutdown, or error disabled

76
Q

down/down (err disabled) interface: err-disabled

A

port security has disabled interface

77
Q

up/up

A

interace is working

78
Q

notconnect root causes

A

Cable could be unplugged, could be damaged from being under a carpet, office chairs riding over it, macrobending in terms of fiber optic cabling, EMI from any electronic device even non IT devices. or mismatch issues.

show interfaces status will said notconnect, rather than down/down

79
Q

show interfaces status to show interfaces particular

A

if you get a notconnect where you’d expect it, you need to examine interface more closely with show interfaces fastEthernet 0/1

80
Q

value of show interfaces status

A

tells you how switch determined settings of interfaces:

prefix a- means autonegotiated, no a- prefix means manual configured.

81
Q

duplex or speed mismatch complexity.

A

if one devices is still auto negotiating, it would have a prefix a- even though the auto negotiated settings are wrong because theyre using iEEE default. Prefix a- isn’t enough to assume the switch is performing. Must examine the entire link.

82
Q

duplex vs speed diagnosis.

A

speed would be down/down notconnect.

a duplex mismatch could still read as up/up. It’s a performance issue, CSMA/CD is degrading the link.

83
Q

Layer 1 issues, that may be occurring on a up/up interface

A

Runts, giants, input errors, crc (cyclical redundancy check), frame, packets output, output errors, collisions, late collisions.

84
Q

runts

A

frames smaller than 64 bytes –accounting for 18 byte destination, source, type and FCS–so 46 data. Can be caused by collisions.

85
Q

giants

A

frames exceeding 1518 bytes.

86
Q

input errors

A

a total number of counters, including runts, giants, no buffer, CRC, frame, ovverun, and ignored counts.

87
Q

CRC

A

cyclical redundancy check, frames that didn’t pass FCS. Can be caused by collisions.

88
Q

Output errors

A

total number of frames that port tried to transmit, but had some issue.

89
Q

Frame (port diaganosis)

A

received frames that have illegal format. Can be caused by collisions.

90
Q

Packets output

A

total number of frames sent out through the port.

91
Q

Late collisions

A

collisions occurring after 64th byte has been transmitted. In a properly working LAN, collisions should occur before 64th byte. Late collisions often point to duplex mismatch.

92
Q

CSMA/CD collisions

A

Half duplex has a lot of collisions, so increasing collision counters on half duplex system may not point to any issues at all. However, late collisions would denote a collision mismatch.

93
Q

Late collision functionality.

A

A half duplex would send a frame, with CSMA/CD on; however, the switch in full duplex would continue sending a frame. Even after 64th byte of outgoing frame, which would usually be accounted for if the switch were matching half duplex with CSMA/CD listening.

94
Q

Best way to track duplex mismatch

A

repeat the show interfaces command,

watch the late collision counter increase. Almost certain there is a duplex mismatch.

95
Q

Up/up performance beyond duplex mismatch

A

up/up collision may still suffer from layer 1 issues. A cable may be degraded without being in complete failure.

Excessive interference would cause counters to increase, especially the CRC counter. repeat show interfaces to watch CRC counter increase but collisions do not–may be interference on the cable.

96
Q

quick way to see specifics of a port

A

show interfaces description

would show you engineer notes as to whats going on with the port.

97
Q

err disabled down/down

A

port security has shut down interface