Day4 - Intro To The CLI
Day4 - Intro To The CLI
-------------------
#How to Connect to a Cisco device? (Console Port)
Steps:
1. Using a Rollover Cable that connecting like this:
- pin 1 to pin 8, pin 2 to pin 7, pin 3 to pin 6 and ect.
2. Access it by the terminal emulator like (PuTTY) is a popular choice and
you can get it at (putty.org)
- Select serial to connected to the CLI
- The speed is known as baud rate which is (9,600 bits per second)
- Data bits = 8
- STOP bits = 1
- parity is to dedcet errors so the defualt of as none
- flow control as none
Notes:
- user EXEC mode is indicated by the 'greater than sign' next to the host
name of the devise and is also called user mode.
- If you enter the 'enable' command in user EXEC mode, you will be placed in
privileged EXEC mode and insted of > a # would be displayed.
- Privileged EXEC mode is: providing a complete access to view the device's
configuration, restart the device, ect.
- And you cannot change the configuration, but can change the time on the
device, save configuration file, ect.
------------------------
#Configuration files
- There are two separate configuration files kept on the device at once.
1. Running-config = the current, active configuration file one the device.
As you enter command in the CLI, you edit the active
configuration.
to do that write in the CLI 'show running-config'
- Methods to Save the configuration file and that would be in the privileged mood:
- First method: write
- Second method: write memory
- Third method: copy running-config startup-config
-------------------
#Summary:
----------------------------
#Modes Review
-----------------------------
#Commands Review
- Router>enable
##used to enter privileged EXEC mode
- Router#configure terminal
##used to enter global configuration mode
- Router(config)#service password-encryption
##encrypts the enable password (and other passwords)
- Router(config)#run privileged-exec-level-command
##executes a privileged-exec level command from global configuration mode
- Router(config)#no command
##removes the command
- Router(config)#show running-config
##displays the current, active configurtion file
- Router(config)#show startup-config
##displays the saved configuration file which will be loaded if the device is
restarted
- Router(config)#write
##saves the configuration
- Router(config)#write memory
##saves the configuration
-----------------------------
Q/A
What kind of cable is used to connect to a Cisco device via the RJ45 console port?
You type enable to enter privileged exec mode on your Cisco router, however the
password you enter is not accepted. What could be the problem?