Prompt / Mode: |
Command: |
Description: |
R(config)# |
hostname <hostname> |
Set hostname for the device. |
R(config)# |
no ip domain-lookup |
Disable ip domain-lookup; no timeout when incorrect cmd typed. |
R(config)# |
banner motd $ <motd msg> $ |
Set MOTD. Use $ to end the MOTD when multiple lines typed. |
R(config)# |
line console 0 |
R(config-line)# |
logging synchronous |
Prevents logging output from immediately interrupting console session. |
R(config-line)# |
password <pwd> |
Sets an unsecure password for the console port. |
R(config-line)# |
login |
Enable required console port login password. |
R(config-line)# |
no login |
Disables login. |
R(config)# |
line vty 0 4 |
Enter telnet/ssh config mode. |
R(config-line)# |
password <pwd> |
Sets a password for telnet/ssh. |
R(config-line)# |
login |
Enable required console port login password. |
R(config)# |
interface vlan1 |
Enter VLAN1 interface config mode. |
R(config-if)# |
ip address <ip ad> <subnet mask> |
Configure VLAN ip address and subnet. (used for telnet) |
R(config-if)# |
no shutdown |
Manually enable the interface. |
R(config)# |
enable secret <pwd> |
Enable a secure password for privileged mode. |
R(config)# |
service password-encryption |
Manually encrypt passwords. |
R# |
copy running-config startup-config |
Copies running config to startup config. Saves all changes. |
Router> |
enable (or ena) |
To enter privileged EXEC mode (enable mode) |
Router# |
configure terminal |
enter global configuration mode from privileged EXEC mode (Router#). |
R(config)# |
hostname <hostname> |
change the hostname on a Cisco router |
R(config)# |
enable secret<password> |
secures privileged EXEC mode by setting an MD5, SHA256, or higher hashed password. |
R(config)# |
line console 0 |
enters configuration mode for the physical console port (tty line 0) |
R(config-line)# |
password <password> |
secures direct console access, requiring a password to enter user exec mode. |
R(config-line)# |
login |
Activates password authentication |
R(config)# |
service password-encryption |
Encrypts all plain-text passwords in the configuration file. |
R# |
write memory |
Saves the configuration to NVRAM, ensuring it persists after a reboot. |
R# |
show running-config |
This command shows current interface, routing, and system settings. |