Friday, April 5, 2024

Cisco 101 - Initial commands

enable
conf t

show startup-config
show running-config

write mem
copy running-config startup-config

Dangerous:

write erase
erase startup-config
erase nvram:

enable password CCNA
Requires password "CCNA" to go into privileged mode.
Problem: Password stored in clear text in startup-config

service password-encryption
Type "7" encryption.
Problem: Easily crackable

enable secret Cisco
Use this one. Type "5" encryption (MD5).
If configured, device ignores "enable password"

show mac address-table
show mac-address-table

clear mac address-table dynamic

show ip interface brief

Int    IP-Addr        Status    Protocol

G0/0    10.1.2.3        up         up
G0/1    unassigned    admin down    down
G0/2


Router status default = admin down

Switch status default = down (until something is plugged in)

no ip domain-lookup
Disables IOS from resolving incorrect commands as hostname to IP lookup (takes a long time)

logging synchronous
Sync syslog messages to prevent interrupts while I am typing

term len 0
do sh run
Displays running config without pausing after each screenful of info

Maybe on Aruba:
screen-length disable
or
no page

[These are my notes from Jeremy's excellent CCNA course which can be viewed here.]