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 more detailed information about configuring and accessing a router through various services, refer to the Cisco IOS Terminal Services Configuration Guide and Cisco IOS Terminal Services Command Reference publications.
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 the following figure.
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 can use the console interface on the router using a terminal or PC, you must perform the following steps:
SUMMARY STEPS
- Configure your terminal emulation software with the following settings:
- Connect to the port using the RJ-45-to-RJ-45 cable and RJ-45-to-DB-25 DTE adapter or 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 port using the RJ-45-to-RJ-45 cable and RJ-45-to-DB-25 DTE adapter or using the RJ-45-to-DB-9 DTE adapter (labeled “Terminal”). |
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 the router and you configure your terminal emulation software with the proper settings, the following prompt appears:
- Press Return to enter user EXEC configuration mode. The following prompt appears:
- From user EXEC configuration mode, enter the enable command as shown in the following example:
- At the password prompt, enter your system password. The following example shows entry of the password called “enablepass”:
- When your enable 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 the router and you configure your terminal emulation software with the proper settings, the following prompt appears: Example:
|
Step 2 |
Press Return to enter user EXEC configuration mode. The following prompt appears: Example:
|
Step 3 |
From 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. The following example shows entry of the password called “enablepass”: Example:
|
Step 5 |
When your enable 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 the Router Console Using Telnet
Before you can access the router remotely using Telnet from a TCP/IP network, you need to configure the router to support virtual terminal lines (vtys) using the line vty global configuration command. You also should configure the vtys to require login and specify a password.
Note |
To prevent disabling login on the line, be careful that you specify a password with the password command when you configure the login line configuration command. If you are using authentication, authorization, and accounting (AAA), you should configure the login authentication line configuration command. To prevent disabling login 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 Cisco IOS Security Configuration Guide and Cisco IOS Security Command Reference publications. |
In addition, before you can make a Telnet connection to the router, you must have a valid hostname for the router or have an IP address configured on the router. For more information about requirements for connecting to the router using Telnet, information about customizing your Telnet services, and using Telnet key sequences, refer to the 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. The following example shows entry of the password called “mypass”:
- From 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 entry of the password called “enablepass”:
- When the enable 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 Telnet session, use the exit or 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 the 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 the telnet command to connect to the router named router : Example:
|
||
Step 2 |
At the password prompt, enter your login password. The following example shows entry of the password called “mypass”: Example:
|
||
Step 3 |
From 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 entry of the password called “enablepass”: Example:
|
||
Step 5 |
When the enable 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 Telnet session, use the exit or logout command as shown in the following example: Example:
|