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 or a modem to obtain a remote console:
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 (RP).
Note |
Cisco ASR 1000 Series Router auxiliary port does not support modem. |
Connecting to the Console Port
To connect to the console port, complete 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
Every RP on a Cisco ASR 1000 Series Router has a console interface. Notably, a standby RP can be accessed using the console port in addition to the active RP in a dual RP configuration.
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 mode. The following prompt appears:
- From user EXEC mode, enter the enable command as shown in the following example:
- At the password prompt, enter your system password. If an enable password has not been set on your system, this step may be skipped.The following example shows entry of the password 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 mode. The following prompt appears: 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. If an enable password has not been set on your system, this step may be skipped.The following example shows entry of the password 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, see the Cisco IOS XE Security Configuration Guide, and the Cisco IOS Security Command Reference Guide . |
In addition, before you can make a Telnet connection to the router, you must have a valid host name 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, see the Cisco IOS Configuration Fundamentals 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 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 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, see the Cisco IOS Configuration Fundamentals Command Reference Guide .
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 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 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:
|