Using Cisco IOS XE Software: Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide OL-16506-17
Using Cisco IOS XE Software: Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide OL-16506-17
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-1
Chapter 2
Accessing the CLI Using a Router Console
Step 1 Configure your terminal emulation software with the following settings:
• 9600 bits per second (bps)
• 8 data bits
• No parity
• 1 stop bit
• No flow control
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”).
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:
Press RETURN to get started.
Step 2 Press Return to enter user EXEC mode. The following prompt appears:
Router>
Step 3 From user EXEC mode, enter the enable command as shown in the following example:
Router> enable
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:
Password: enablepass
Step 5 When your enable password is accepted, the privileged EXEC mode prompt appears:
Router#
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-2 OL-16506-17
Chapter 2
Accessing the CLI Using a Router Console
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:
Router# quit
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.
Step 1 From your terminal or PC, enter one of the following commands:
• connect host [port] [keyword]
• telnet host [port] [keyword]
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.
Note If you are using an access server, then you will need to specify a valid port number such as telnet
172.20.52.40 2004, in addition to the hostname or IP address.
The following example shows the telnet command to connect to the router named router:
unix_host% telnet router
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-3
Chapter 2
Using the Auxiliary Port
Trying 172.20.52.40...
Connected to 172.20.52.40.
Escape character is '^]'.
unix_host% connect
Step 2 At the password prompt, enter your login password. The following example shows entry of the password
mypass:
Password: mypass
Step 3 From user EXEC mode, enter the enable command as shown in the following example:
Router> enable
Step 4 At the password prompt, enter your system password. The following example shows entry of the
password enablepass:
Password: enablepass
Step 5 When the enable password is accepted, the privileged EXEC mode prompt appears:
Router#
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:
Router# logout
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-4 OL-16506-17
Chapter 2
Using Keyboard Shortcuts
Keystrokes Purpose
Ctrl-B or Move the cursor back one character
the Left Arrow key1
Ctrl-F or Move the cursor forward one character
the Right Arrow key1
Ctrl-A Move the cursor to the beginning of the command line
Ctrl-E Move the cursor to the end of the command line
Esc B Move the cursor back one word
Esc F Move the cursor forward one word
1. The arrow keys function only on ANSI-compatible terminals such as VT100s.
Command Purpose
1
Ctrl-P or the Up Arrow key Recall commands in the history buffer, beginning with the most
recent command. Repeat the key sequence to recall successively
older commands.
Ctrl-N or the Down Arrow key1 Return to more recent commands in the history buffer after
recalling commands with Ctrl-P or the Up Arrow key.
Router# show history While in EXEC mode, list the last several commands you have just
entered.
1. The arrow keys function only on ANSI-compatible terminals such as VT100s.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-5
Chapter 2
Understanding the Command Mode
Command
Mode Access Method Prompt Exit Method
User EXEC Log in. Router> Use the logout command.
Privileged From user EXEC mode, use the enable EXEC Router# To return to user EXEC mode, use
EXEC command. the disable command.
Global From privileged EXEC mode, use the Router(config)# To return to privileged EXEC
configuration configure terminal privileged EXEC mode from global configuration
command. mode, use the exit or end
command.
Interface From global configuration mode, specify an Router(config-if)# To return to global configuration
configuration interface using an interface command. mode, use the exit command.
To return to privileged EXEC
mode, use the end command.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-6 OL-16506-17
Chapter 2
Understanding the Diagnostic Mode
Command
Mode Access Method Prompt Exit Method
Diagnostic The router boots up or accesses diagnostic Router(diag)# If the IOS process failing is the
mode in the following scenarios: reason for entering diagnostic
mode, the IOS problem must be
In some cases, diagnostic mode will be reached
resolved and the router rebooted to
when the IOS process or processes fail. In most
get out of diagnostic mode.
scenarios, however, the router will.
If the router is in diagnostic mode
A user-configured access policy was
because of a transport-map
configured using the transport-map command
configuration, access the router
that directed the user into diagnostic mode. See
through another port or using a
the “”chapter of this book for information on
method that is configured to
configuring access policies.
connect to the Cisco IOS CLI.
The router was accessed using a Route
If the router is accessed through
Processor auxiliary port.
the Route Processor auxiliary port,
A break signal (Ctrl-C, Ctrl-Shift-6, or the access the router through another
send break command) was entered and the port. Accessing the router through
router was configured to go into diagnostic the auxiliary port is not useful for
mode when the break signal was received. customer purposes anyway.
ROM monitor From privileged EXEC mode, use the reload > To exit ROM monitor mode, use
EXEC command. Press the Break key during the continue command.
the first 60 seconds while the system is booting.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-7
Chapter 2
Getting Help
The diagnostic mode provides a more comprehensive user interface for troubleshooting than previous
routers, which relied on limited access methods during failures, such as ROMmon, to diagnose and
troubleshoot IOS problems.
The diagnostic mode commands are stored in the nonIOS packages on the Cisco ASR 1000 Series
Routers, which is why the commands are available even if the IOS process is not working properly.
Importantly, all the commands available in diagnostic mode are also available in privileged EXEC mode
on the router even during normal router operation. The commands are entered like any other commands
in the privileged EXEC command prompts when used in privileged EXEC mode.
Getting Help
Entering a question mark (?) at the CLI prompt displays a list of commands available for each command
mode. You can also get a list of keywords and arguments associated with any command by using the
context-sensitive help feature.
To get help specific to a command mode, a command, a keyword, or an argument, use one of the
commands listed in Table 2-4:
Command Purpose
help Provides a brief description of the help system in any
command mode.
abbreviated-command-entry? Provides a list of commands that begin with a particular
character string. (No space between command and question
mark.)
abbreviated-command-entry<Tab> Completes a partial command name.
? Lists all commands available for a particular command mode.
command ? Lists the keywords or arguments that you must enter next on
the command line. (Space between command and question
mark.)
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-8 OL-16506-17
Chapter 2
Getting Help
Command Comment
Router> enable Enter the enable command and password to access
Password: <password> privileged EXEC commands. You are in privileged
Router#
EXEC mode when the prompt changes to a “#” from
the “>”; for example, Router> to Router#.
Router# configure terminal Enter the configure terminal privileged EXEC
Enter configuration commands, one per line. End with CNTL/Z. command to enter global configuration mode. You
Router(config)#
are in global configuration mode when the prompt
changes to Router(config)#.
Router(config)# interface serial ? Enter interface configuration mode by specifying
<0-6> Serial interface number the serial interface that you want to configure using
Router(config)# interface serial 4 ?
/
the interface serial global configuration command.
Router(config)# interface serial 4/ ? Enter ? to display what you must enter next on the
<0-3> Serial interface number
command line. In this example, you must enter the
Router(config)# interface serial 4/0 ?
<cr> serial interface slot number and port number,
Router(config)# interface serial 4/0 separated by a forward slash.
Router(config-if)#
When the <cr> symbol is displayed, you can press
Enter to complete the command.
You are in interface configuration mode when the
prompt changes to Router(config-if)#.
Router(config-if)# ? Enter ? to display a list of all the interface
Interface configuration commands: configuration commands available for the serial
.
.
interface. This example shows only some of the
. available interface configuration commands.
ip Interface Internet Protocol config
commands
keepalive Enable keepalive
lan-name LAN Name command
llc2 LLC2 Interface Subcommands
load-interval Specify interval for load calculation
for an
interface
locaddr-priority Assign a priority group
logging Configure logging for interface
loopback Configure internal loopback on an
interface
mac-address Manually set interface MAC address
mls mls router sub/interface commands
mpoa MPOA interface configuration commands
mtu Set the interface Maximum Transmission
Unit (MTU)
netbios Use a defined NETBIOS access list or
enable
name-caching
no Negate a command or set its defaults
nrzi-encoding Enable use of NRZI encoding
ntp Configure NTP
.
.
.
Router(config-if)#
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-9
Chapter 2
Getting Help
Command Comment
Router(config-if)# ip ? Enter the command that you want to configure for
Interface IP configuration subcommands: the interface. This example uses the ip command.
access-group Specify access control for packets
accounting Enable IP accounting on this interface Enter ? to display what you must enter next on the
address Set the IP address of an interface command line. This example shows only some of
authentication authentication subcommands
the available interface IP configuration commands.
bandwidth-percent Set EIGRP bandwidth limit
broadcast-address Set the broadcast address of an
interface
cgmp Enable/disable CGMP
directed-broadcast Enable forwarding of directed
broadcasts
dvmrp DVMRP interface commands
hello-interval Configures IP-EIGRP hello interval
helper-address Specify a destination address for UDP
broadcasts
hold-time Configures IP-EIGRP hold time
.
.
.
Router(config-if)# ip
Router(config-if)# ip address ? Enter the command that you want to configure for
A.B.C.D IP address the interface. This example uses the ip address
negotiated IP Address negotiated over PPP
Router(config-if)# ip address
command.
Enter ? to display what you must enter next on the
command line. In this example, you must enter an IP
address or the negotiated keyword.
A carriage return (<cr>) is not displayed; therefore,
you must enter additional keywords or arguments to
complete the command.
Router(config-if)# ip address 172.16.0.1 ? Enter the keyword or argument that you want to use.
A.B.C.D IP subnet mask This example uses the 172.16.0.1 IP address.
Router(config-if)# ip address 172.16.0.1
Enter ? to display what you must enter next on the
command line. In this example, you must enter an IP
subnet mask.
A <cr> is not displayed; therefore, you must enter
additional keywords or arguments to complete the
command.
Router(config-if)# ip address 172.16.0.1 255.255.255.0 ? Enter the IP subnet mask. This example uses the
secondary Make this IP address a secondary 255.255.255.0 IP subnet mask.
address
<cr> Enter ? to display what you must enter next on the
Router(config-if)# ip address 172.16.0.1 255.255.255.0 command line. In this example, you can enter the
secondary keyword, or you can press Enter.
A <cr> is displayed; you can press Enter to
complete the command, or you can enter another
keyword.
Router(config-if)# ip address 172.16.0.1 255.255.255.0 In this example, Enter is pressed to complete the
Router(config-if)# command.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-10 OL-16506-17
Chapter 2
Using the no and default Forms of Commands
It might take a minute or two to save the configuration. After the configuration has been saved, the
following output appears:
[OK]
Router#
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-11
Chapter 2
Managing Configuration Files
For more detailed information on managing configuration files, see the Managing Configuration Files
section in the Cisco IOS XE Configuration Fundamentals Configuration Guide.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-12 OL-16506-17
Chapter 2
Filtering the Output of the show and more Commands
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-13
Chapter 2
Powering Off a Router
show command | {append | begin | exclude | include | redirect | section | tee} regular-expression
The output matches certain lines of information in the configuration file. The following example
illustrates how to use output modifiers with the show interface command when you want the output to
include only lines in which the expression “protocol” appears:
Router# show interface | include protocol
Place the power supply switch in the Off position after seeing this message.
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-14 OL-16506-17
Chapter 2
Finding Support Information for Platforms and Cisco Software Images
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
OL-16506-17 2-15
Chapter 2
Finding Support Information for Platforms and Cisco Software Images
Cisco ASR 1000 Series Aggregation Services Routers Software Configuration Guide
2-16 OL-16506-17