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
see how it started
show startup-config
26
going back to original session
copy startup-config running-config
27
see any mac address
show mac address-table
28
see mac addresses in a particular vlan
show mac address-table dynamic vlan #
29
see picture of all interfaces
show interfaces status
30
interface status, which is best to find a MAC address
show mac address-table dynamic interface fastEthernet 0/1
31
if you know particular MAC address, to find it
show mac address-table dynamic address 0200.1111.1111
32
finding traffic on a particular port
show interfaces f0/1 counters
33
finding number of MAC addresses used and available
show mac address-table count
34
finding age out number for entries in table
show mac address-table aging-time
35
clearing table
clear mac address-table dynamic
36
clearing table per vlan
clear mac address-table vlan #
37
clearing table per interface
clear mac address-table interface fastEthernet 0/1
38
clear a particular address
clear mac address-table address xxxx.xxxx.xxxx
39
Basic security passwords for a switch
enable enable secret ___ configure terminal line console 0 password _____ login exit line vty 0 15 password ____ login end
40
enaLocal password and usernames
--> user username ____ password_____ enable configure terminal line console 0 login local no password exit line vty 0 15 login local no password end
41
AAA
Authenticate, authorize, account switch would actually connect to an AAA server. Where the usernames would be stored switch to AAA (radius or TACAS+)
42
Configuring SSH
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
confirming SSH
show ip ssh
44
how to see each user currently connected to ssh
show ssh
45
Configuring IPv4
configure terminal interface vlan 1 ip address _______ no shutdown exit ip default-gateway ____ ip name-server
46
turning ports on and off administratively
shutdown no shutdown
47
DHCP
dynamic host control protocol
48
Configuring IPv4 with DHCP
configure terminal interface vlan 1 no shutdown ip address DHCP
49
Verifying IPv4
show running-config show interfaces vlan 1 show dhcp lease
50
importance of show interfaces vlan 1
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
seeing commands you've entered
show history
52
to set history size for current session
terminal history X
53
setting history size permanently
configure terminal line console 0 history size X configure terminal line vty 0 15 history size X
54
to avoid untimely messages from console
logging synchronous
55
changing session timeout
exec-time out (minutes) (seconds) exec-timeout 10 0 exec-time out 0 0 (never sign out)
56
avoiding slowdowns when you mistype a command
no ip domain-lookup
57
to see ssh key
show crypto key mypubkey rsa
58
changing aging time, or per vlan
mac address-table aging-time ___(seconds)___ vlan (number)
59
changing speed of interface
speed auto speed 10 speed 100 speed 1000
60
changing duplex settings
duplex half duplex full duplex auto
61
adding a note on interface to say why you had good reason to change duplex or speed
description description Printer on 3rd floor, preset to 100/full
62
selecting a range of interfaces
example interfaces FastEthernet 0/11 - 20 description End users connect to these ports
63
to see what's going on with the interfaces you've changed.
show interfaces status
64
short vs long information concerning interface
show interfaces status vs show interfaces
65
reverting some configurations back to default
use no.... like shutdown, no shutdown. speed, no speed (reverts to auto duplex, no duplex description, no description
66
Notes about show configuration concerning default settings
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
Matching values
an NIC and port must match, for example NIC cannot run at 100 while a port is configured to receive at 1000mbps.
68
Problem of upgrades, due to matching values.
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
Issues of autonegotiation for one side
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
default settings for failed autonegotiation
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
Duplex mismatch
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
Auto negotiation and LAN hubs
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
Pulling interface analysis
show interfaces or show interfaces description, show interfaces status
74
administratively down/down
shutdown is configured on interface
75
down/down
no cable bad cable wrong pinouts speed mismatch neighboring device is powered off, shutdown, or error disabled
76
down/down (err disabled) interface: err-disabled
port security has disabled interface
77
up/up
interace is working
78
notconnect root causes
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
show interfaces status to show interfaces particular
if you get a notconnect where you'd expect it, you need to examine interface more closely with show interfaces fastEthernet 0/1
80
value of show interfaces status
tells you how switch determined settings of interfaces: prefix a- means autonegotiated, no a- prefix means manual configured.
81
duplex or speed mismatch complexity.
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
duplex vs speed diagnosis.
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
Layer 1 issues, that may be occurring on a up/up interface
Runts, giants, input errors, crc (cyclical redundancy check), frame, packets output, output errors, collisions, late collisions.
84
runts
frames smaller than 64 bytes --accounting for 18 byte destination, source, type and FCS--so 46 data. Can be caused by collisions.
85
giants
frames exceeding 1518 bytes.
86
input errors
a total number of counters, including runts, giants, no buffer, CRC, frame, ovverun, and ignored counts.
87
CRC
cyclical redundancy check, frames that didn't pass FCS. Can be caused by collisions.
88
Output errors
total number of frames that port tried to transmit, but had some issue.
89
Frame (port diaganosis)
received frames that have illegal format. Can be caused by collisions.
90
Packets output
total number of frames sent out through the port.
91
Late collisions
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
CSMA/CD collisions
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
Late collision functionality.
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
Best way to track duplex mismatch
repeat the show interfaces command, watch the late collision counter increase. Almost certain there is a duplex mismatch.
95
Up/up performance beyond duplex mismatch
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
quick way to see specifics of a port
show interfaces description would show you engineer notes as to whats going on with the port.
97
err disabled down/down
port security has shut down interface