Router Ios Shortcuts
Router Ios Shortcuts
Accessing the CLI Using a Router Console, page 1-1 Using Keyboard Shortcuts, page 1-7 Using the History Buffer to Recall Commands, page 1-7 Understanding Command Modes, page 1-8 Getting Help, page 1-9 Using the no and default Forms of Commands, page 1-13 Saving Configuration Changes, page 1-14 Filtering Output from the show and more Commands, page 1-14 Finding Support Information for Platforms and Cisco Software Images, page 1-15
Accessing the CLI Using a Directly-Connected Console, page 1-1 Accessing the CLI from a Remote Console Using Telnet, page 1-5 Accessing the CLI from a Remote Console Using a Modem, page 1-6
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. For more information about making the console cable connections, refer to the Cisco uBR10012 Universal Broadband Router Hardware Installation Guide.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
1-1
The PRE module on the Cisco uBR10012 router has two asynchronous serial (EIA/TIA-232) RJ-45 ports that provide connections for a console (an ASCII terminal or PC running terminal emulation software) and a modem for remote access.
Note
A crossover cable reverses pin connections from one end to the other. In other words, it connects pin 1 (at one end) to pin 8 (at the other end), pin 2 to pin 7, pin 3 to pin 6, and so on. You can identify a crossover cable by comparing the two modular ends of the cable. Hold the cable ends in your hand, side-by-side, with the tabs at the back. Ensure that the wire connected to the outside (left) pin of the left plug (pin 1) is the same color as the wire connected to the outside (right) pin of the right plug (pin 8). For more information about RJ-45 crossover cables and the console port connectors, see the Cisco uBR10012 Universal Broadband Router Hardware Installation Guide.
Note
Each PRE module must have a console port connection (typically to a terminal server) when running a redundant configuration in the chassis. Connect one end of the RJ-45 crossover cable to the serial RJ-45 port (labeled CONSOLE) on the PRE module (Figure 1-1).
Step 1
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-2
OL-10707-05
Chapter 1
Using Cisco IOS Software Accessing the CLI Using a Router Console
Figure 1-1
CISCO 10000
C O N
S O LE
AU X
LI
N K
E TH E R N LI E N T K
Step 2
Run the other end of the crossover cable through the square hole at the left front side of the chassis, and connect it to the RJ-45-to-DB-9 adapter (see Figure 1-2).
Figure 1-2 Connecting an RJ-45-to-DB-9 Console Cable Adapter
30028
Step 3 Step 4
Connect the adapter to the appropriate serial port on the PC or terminal to complete the console port cable connection. Power on the PC or terminal.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
30027
1 OT SL 0 OT SL
1-3
Step 5
Configure the PC terminal emulation software or the terminal for the following default settings:
9600 baud 8 data bits No parity generation or checking 1 stop bit No flow control
Note
These are the default serial communication parameters on the router. For information about how to change the default settings to meet the requirements of your terminal or host, refer to the Cisco IOS Terminal Services Configuration Guide.
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 initial prompt should appear. Press Return to enter user EXEC configuration mode. The following prompt appears:
Router>
Step 3
From user EXEC configuration mode, enter the enable command as shown in the following example:
Router> enable
Step 4
At the password prompt, enter your systems password. The following example shows entry of the password called enablepass:
Password: enablepass
Step 5
When your enable password is accepted, the privileged EXEC configuration mode prompt appears:
Router#
Step 6 Step 7
You now have access to the CLI in privileged EXEC configuration 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:
Router# quit
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-4
OL-10707-05
Chapter 1
Using Cisco IOS Software Accessing the CLI Using a Router Console
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.
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.
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 host name or IP address.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
1-5
The following example shows the telnet command to connect to the router named router:
unix_host% telnet router 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 called mypass:
User Access Verification Password: mypass
Note Step 3
If no password has been configured, press Return. From user EXEC configuration mode, enter the enable command as shown in the following example:
Router> enable
Step 4
At the password prompt, enter your systems password. The following example shows entry of the password called enablepass:
Password: enablepass
Step 5
When the enable password is accepted, the privileged EXEC configuration mode prompt appears:
Router#
Step 6 Step 7
You now have access to the CLI in privileged EXEC configuration 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:
Router# logout
Console port
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-6
122989
OL-10707-05
Chapter 1
Figure 1-4
WS-SUP32-GE-3B
CONSOLE
ST AT U S SY ST EM AC TI VE PW R M G R M ES T ET
Console port
To connect a modem to the console port, place the console port mode switch in the in position. Connect to the port using the RJ-45-to-RJ-45 cable and the RJ-45-to-DB-25 DCE adapter (labeled Modem).
Keystrokes Ctrl-B or the Left Arrow key1 Ctrl-F or the Right Arrow key1 Ctrl-A Ctrl-E Esc B Esc F
Purpose Move the cursor back one character Move the cursor forward one character Move the cursor to the beginning of the command line Move the cursor to the end of the command line Move the cursor back one word Move the cursor forward one word
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
138281
1-7
Purpose Recall commands in the history buffer, beginning with the most recent command. Repeat the key sequence to recall successively older commands. Return to more recent commands in the history buffer after recalling commands with Ctrl-P or the Up Arrow key. While in EXEC mode, list the last several commands you have just entered.
Access Method Log in. From user EXEC mode, use the enable EXEC command.
Prompt
Router> Router#
Exit Method Use the logout command. To return to user EXEC mode, use the disable command.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-8
OL-10707-05
Chapter 1
Table 1-3
Access Method From privileged EXEC mode, use the configure terminal privileged EXEC command.
Prompt
Router(config)#
Exit Method To return to privileged EXEC mode from global configuration mode, use the exit or end command. To return to global configuration mode, use the exit command. To return to privileged EXEC mode, use the end command.
Interface config- From global configurauration tion mode, specify an interface using an interface command. Controller configuration
Router(config-if)#
Router(config-controller)# To return to global configuration mode, use the From global configuration mode, specify a conexit command. troller using the To return to privileged EXEC mode, use the end controller command. command.
Router(config-fiber-node)# To return to global configuration mode, use the Cable fiber-node From global configuraconfiguration tion mode, specify a fiber exit command. node using the To return to privileged EXEC mode, use the end cable fiber-node command. command.
ROM monitor
> From privileged EXEC mode, use the reload EXEC command. Press the Break key during the first 60 seconds while the system is booting.
For more information on command modes, refer to the Using the Command-Line Interface chapter in the Cisco IOS Configuration Fundamentals and Network Management Configuration Guide.
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 following commands:
Table 1-4 Help Commands and Purpose
Command
help abbreviated-command-entry?
Purpose Provides a brief description of the help system in any command mode. Provides a list of commands that begin with a particular character string. (No space between command and question mark.) Completes a partial command name.
abbreviated-command-entry<Tab>
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
1-9
Table 1-4
Command
? command ?
Purpose Lists all commands available for a particular command mode. Lists the keywords or arguments that you must enter next on the command line. (Space between command and question mark.)
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-10
OL-10707-05
Chapter 1
Table 1-5 shows examples of how you can use the question mark (?) to assist you in entering commands.
Table 1-5 Finding Command Options
Command
Router> enable Password: <password> Router#
Comment Enter the enable command and password to access privileged EXEC commands. You are in privileged EXEC mode when the prompt changes to a # from the >; for example, Router> to Router#. Enter the configure terminal privileged EXEC command to enter global configuration mode. You are in global configuration mode when the prompt changes to Router(config)#. Enter interface configuration mode by specifying the serial interface that you want to configure using the interface serial global configuration command. Enter ? to display what you must enter next on the command line. In this example, you must enter the serial interface slot number and port number, separated by a forward slash. 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# configure terminal Enter configuration commands, one per line. End with CNTL/Z. Router(config)#
Router(config)# interface serial ? <0-6> Serial interface number Router(config)# interface serial 4 ? / Router(config)# interface serial 4/ ? <0-3> Serial interface number Router(config)# interface serial 4/0 ? <cr> Router(config)# interface serial 4/0 Router(config-if)#
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
1-11
Table 1-5
Command
Router(config-if)# ? 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)# Router(config-if)# ip ? Interface IP configuration subcommands: access-group Specify access control for packets accounting Enable IP accounting on this interface address Set the IP address of an interface authentication authentication subcommands 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
Comment Enter ? to display a list of all the interface configuration commands available for the serial interface. This example shows only some of the available interface configuration commands.
Enter the command that you want to configure for the interface. This example uses the ip command. Enter ? to display what you must enter next on the command line. This example shows only some of the available interface IP configuration commands.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-12
OL-10707-05
Chapter 1
Using Cisco IOS Software Using the no and default Forms of Commands
Table 1-5
Command
Router(config-if)# ip address ? A.B.C.D IP address negotiated IP Address negotiated over PPP Router(config-if)# ip address
Comment Enter the command that you want to configure for the interface. This example uses the 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.
Enter the keyword or argument that you want to use. This example uses the 172.16.0.1 IP address. 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 ? secondary Make this IP address a secondary address <cr> Router(config-if)# ip address 172.16.0.1 255.255.255.0
Enter the IP subnet mask. This example uses the 255.255.255.0 IP subnet mask. Enter ? to display what you must enter next on the 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.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
1-13
Many CLI commands also have a default form. By issuing the command default command-name, you can configure the command to its default setting. The Cisco IOS software command reference publications describe the function of the default form of the command when the default form performs a different function than the plain and no forms of the command. To see what default commands are available on your system, enter default ? in the appropriate command mode.
The command writes the configuration data to the routers nonvolatile random-access memory (NVRAM). It might take a few seconds to save the configuration.
For more information on the search and filter functionality, refer to the Using the Command-Line Interface chapter in the Cisco IOS Configuration Fundamentals and Network Management Configuration Guide.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-14
OL-10707-05
Chapter 1
Using Cisco IOS Software Finding Support Information for Platforms and Cisco Software Images
Platform support information Memory recommendations New feature information Open and resolved severity 1 and 2 caveats for all platforms
Release notes are intended to be release-specific for the most current release, and the information provided in these documents may not be cumulative in providing information about features that first appeared in previous releases.
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide OL-10707-05
1-15
Chapter 1 Finding Support Information for Platforms and Cisco Software Images
Cisco uBR10012 Universal Broadband Router SIP and SPA Software Configuration Guide
1-16
OL-10707-05