Accessing the CLI Using a Router Console
The following sections describe how to access the command-line interface (CLI) using a directly-connected console or by using Telnet to obtain a remote console:
For detailed information about configuring and accessing a router through various services, refer to the http://www.cisco.com/en/US/docs/ios/termserv/configuration/guide/12_4/tsv_12_4_book.html Cisco IOS Terminal Services Configuration Guide and the http://www.cisco.com/en/US/docs/ios/12_2/termserv/command/reference/ftersv_r.html Cisco IOS Terminal Services Command Reference document.
Accessing the CLI Using a Directly-Connected Console
This section describes how to connect to the console port on the router and use the console interface to access the CLI.
The console port on a Cisco ASR 1000 Series Router is an EIA/TIA-232 asynchronous, serial connection with no flow control and an RJ-45 connector. The console port is located on the front panel of each Route Processor, as shown in Cisco ASR 1000 Series Aggregation Services Router Console Port Connector.

1 |
CARRIER LED |
4 |
MGMT Ethernet connector |
2 |
BITS connector |
5 |
CON connector |
3 |
LINK LED |
6 |
AUX connector |
Connecting to the Console Port
Before you connect to the console interface on a router through a terminal or a PC, perform the following steps:
SUMMARY STEPS
- Configure your terminal emulation software with the following settings:
- Connect to the console port using the RJ-45-to-RJ-45 cable and the RJ-45-to-DB-25 DTE adapter or by using the RJ-45-to-DB-9 DTE adapter (labeled terminal).
DETAILED STEPS
Step 1 |
Configure your terminal emulation software with the following settings:
|
||
Step 2 |
Connect to the console port using the RJ-45-to-RJ-45 cable and the RJ-45-to-DB-25 DTE adapter or by using the RJ-45-to-DB-9 DTE adapter (labeled terminal). |
Accessing the CLI using the Console Interface
To access the CLI using the console interface, complete the following steps:
SUMMARY STEPS
- After you attach the terminal hardware to the console port on a router and configure your terminal emulation software with the correct settings, the ‘following prompt appears:
- Press Return to enter the user EXEC configuration mode. The following prompt appears:
- From the user EXEC configuration mode, enter the enable command as shown in the following example:
- At the password prompt, enter your system password, as shown here:
- When your password is accepted, the privileged EXEC mode prompt appears:
- You now have access to the CLI in privileged EXEC mode and you can enter the necessary commands to complete your desired tasks.
- To exit the console session, enter the quit command as shown in the following example:
DETAILED STEPS
Step 1 |
After you attach the terminal hardware to the console port on a router and configure your terminal emulation software with the correct settings, the ‘following prompt appears: Example:
|
Step 2 |
Press Return to enter the user EXEC configuration mode. The following prompt appears: Example:
|
Step 3 |
From the user EXEC configuration mode, enter the enable command as shown in the following example: Example:
|
Step 4 |
At the password prompt, enter your system password, as shown here: Example:
|
Step 5 |
When your password is accepted, the privileged EXEC mode prompt appears: Example:
|
Step 6 |
You now have access to the CLI in privileged EXEC mode and you can enter the necessary commands to complete your desired tasks. |
Step 7 |
To exit the console session, enter the quit command as shown in the following example: Example:
|
Accessing the CLI from a Remote Console Using Telnet
This section describes how to connect to the console interface on a router using Telnet to access the CLI.
Preparing to Connect to a Router Console Using Telnet
Before you can access a router remotely using Telnet from a TCP/IP network, you need to configure a router to support virtual terminal lines using the line vty global configuration command. You should also configure the virtual terminal lines to required login.
![]() Note |
To prevent a login from being disabled on the line, specify a password with the password command when you configure the login line configuration command. If you are using authentication, authorization, and accounting (AAA), configure the login authentication line configuration command. To prevent login from being disabled on the line for AAA authentication when you configure a list with the login authentication command, you must also configure that list using the aaa authentication login global configuration command. For more information about AAA services, refer to the http://www.cisco.com/en/US/docs/ios/12_2/security/configuration/guide/scfaaa.html Cisco IOS Security Configuration Guide and the http://www.cisco.com/en/US/docs/ios/security/command/reference/sec_book.html Cisco IOS Security Command Reference documents. |
In addition, before you make a Telnet connection to a router, you must have a valid hostname for a router or have an IP address configured on a router. For more information about the requirements for connecting to a router using Telnet, information about customizing your Telnet services, and using Telnet key sequences, refer to thehttps://www.cisco.com/c/en/us/obsolete/ios-nx-os-software/cisco-ios-software-releases-12-4-mainline.html Cisco IOS Terminal Services Configuration Guide .
Using Telnet to Access a Console Interface
To access a console interface using Telnet, complete the following steps:
SUMMARY STEPS
- From your terminal or PC, enter one of the following commands:
- At the password prompt, enter your login password. If no password has been configured, press Return . The following example shows the use of the password mypass:
- From the user EXEC mode, enter the enable command as shown in the following example:
- At the password prompt, enter your system password. The following example shows the use of the password enablepass:
- When the password is accepted, the privileged EXEC mode prompt appears:
- You now have access to the CLI in the privileged EXEC mode.You can enter the necessary commands to complete your tasks.
- To exit the Telnet session, use the exit or the logout command, as shown in the following example:
DETAILED STEPS
Step 1 |
From your terminal or PC, enter one of the following commands:
In this syntax, host is a router hostname or an IP address, port is a decimal port number (23 is the default), and keyword is a supported keyword. For more information, refer to the Cisco IOS Terminal Services Command Reference .
The following example shows how the telnet command is used to connect to a router named router : Example:
|
||
Step 2 |
At the password prompt, enter your login password. If no password has been configured, press Return . The following example shows the use of the password mypass: Example:
|
||
Step 3 |
From the user EXEC mode, enter the enable command as shown in the following example: Example:
|
||
Step 4 |
At the password prompt, enter your system password. The following example shows the use of the password enablepass: Example:
|
||
Step 5 |
When the password is accepted, the privileged EXEC mode prompt appears: Example:
|
||
Step 6 |
You now have access to the CLI in the privileged EXEC mode.You can enter the necessary commands to complete your tasks. |
||
Step 7 |
To exit the Telnet session, use the exit or the logout command, as shown in the following example: Example:
|