- User exec mode is identified by the greater sign prompt
- Privelege mode is identified by the hash sign prompt
- Global configuration is identified by the
config
parameter in the name prompt - Line configuration mode is identified by the
config-line
parameter in the name prompt - Interface configuration mode is identified by the
config-if
parameter in the name prompt
- Use the straight through copper cable to connect the routers
- Go to the global configuration mode to set the hostnames
enable # or en for shorthand - goes to priveledge exec mode
configure terminal # or conf t - enables the glob al configuration mode
hostname R1 # set the hostname of the router to R1
- Done in the global configuration mode - protects the priveledge exec mode. This sets the password on the router required when going from user exec mode to priveledge exec mode using the enable keyword and the password is by default encrypted(using type 5 encryption). The enable secret renders the enable password useless whether enable password is done last or not.
enable secret cisco # this sets the cisco password on the router required when going from user exec mode to priveledge exec mode using the enable keyword
- OR : Done in the global configuration mode - protects the priveledge exec mode. This sets the password on the router required when going from user exec mode to priveledge exec mode using the enable keyword and the password is by default not encrypted
enable password cisco # this sets the cisco password on the router required when going from exec mode to priveledge exec mode using the enable keyword
- Done in the global configuration mode
do show running-config # or do sh run
- Done in priveledge exec mode
show running-config # or do sh run
- Use space bar to move page by page or enter key to move line by line
- For password set without password encryption, enable password encryption via below command in the global configuration mode. Encrypt password using type 7 password encryption.
service password-encryption
- Step encrypts unencrypted password such that view it is no longer plain text - run in the priveledge exec mode
show running-config # view runnning configuration.
- To disable password encryption: run in the global configuration mode
no service password-encryption
- This only disables password encryption on the next passwords set whereas previous password remains encrypted
- Exit any configuration mode to privilege exec mode
end
- Exit any of the configuration modes to the previous mode except when the previous mode is user exec mode
exit
- Done in the priveledge exec mode
copy running-config startup-config # or copy run start
OR
write # or w
- Any command to be run in the configuration mode that is supposed to be run in the priveledge exec mode needs to be prefixed with
do
- Done in the priveledge exec mode - This reboots the router
reload
- Done in the line configuration mode
line console 0 # Run in the global configuration mode
password YOUR_PASS
login # to enable password when using console connection
service password-encryption # Run in the global configuration mode
do w
- Set hostname, enable password, console password, save the configuration
enable
configure terminal
hostname R1
enable secret cisco
line console 0
password ccna
login
exit
service password-encryption
do w