
IPrioriTM includes an industry standard Command-Line Interface (CLI). The commands are grouped into commands modes. When a user logs in to IPriori they are in Executive mode.
Moving Between Command Modes
To modify the system configuration, use the enable command to enter Privileged mode:
Figure 1-1. Enable Command
![]()
Use the exit command to move up one level in command modes:
Figure 1-2. The Exit Command
![]()
Use the end command to Privileged command mode from any command mode:
Figure 1-3. The End Command
![]()
Use the ? to display the available commands in each command mode. For example:
router(config)#router bgp 1
router(config-router)#bgp ?
always-compare-med Allow comparing MED from different neighbors
client-to-client Configure client to client route reflection
cluster-id Configure Route-Reflector Cluster-id
confederation AS confederation parameters
dampening Enable route-flap dampening
default Configure BGP defaults
router-id Override configured router identifier
router(config-router)#bgp
CLI Features
The Avici router CLI supports the following features:
- Command Abbreviation - The CLI recognizes abbreviated keywords. Type the minimum number of unique characters to enter a keyword.
- Command-Line Error Detection - When the CLI detects an error, it indicates the error location with the caret (^) symbol on the following line.
- Command Prompt - The command prompt on the Avici router changes as you navigate through command modes. Refer to Table 1-1 for more information on the CLI command modes.
CLI Spacebar and Tab Key Usage
The spacebar or tab key will complete any command entry that has reached a threshold where the command is uniquely identified. The command completes on the same line as entered. For example, entering sh<spacebar> will result in show displaying on the line, because sh is sufficient to uniquely identify the show command. Entering s<spacebar> or s<tab> will not complete the command, because the letter s is not sufficient to uniquely identify any command.
When encountering input errors as part of command completion, the CLI indicates the position where the error occurred and provides the input containing the error on a new line for user editing.
The spacebar enters a space character at any point in command entry where entry of a space character results in correct CLI syntax. This rule includes: the space between command, keyword, string-variable and multi-word text fields.
Command Mode Prompts
Each command mode available on the Avici router provides its own prompt so that you can easily identify what mode you are in.
The "parent" command mode is the mode from which you enter a command mode.
The following table lists the command modes, their parent command modes, the prompt displayed by the command mode, and the command used to enter the command mode:
Using the "Show" Commands
IPriori has been enhanced to support redirection of the output of show commands and selected display of output using redirection and three new sub-commands:
- Begin string - Display output starting with lines that match the specified regular expression.
- Include string - Display only those lines of output that include the specified regular expression.
- Exclude string - Display only those lines of output that exclude the specified regular expression.
Example 1: In the following example:
- The | redirects output of the show ip route command
- The include string command selects for display only those lines that include the string "12.12":
router#show ip route | include 12.12
S 12.12.9.0/24 via 127.0.0.1 [w:1 m:0]
S 12.12.10.0/24 via 127.0.0.1 [w:1 m:0]
S 12.12.11.0/24 via 127.0.0.1 [w:1 m:0]
S 12.12.12.0/24 via 127.0.0.1 [w:1 m:0]
S 12.12.13.0/24 via 127.0.0.1 [w:1 m:0]
.
.
.
Example 2: In the following example:
- The | redirects output of the show ip route command
- The exclude string command selects for display only those lines that do not include the string "12.12":
router#show ip route | exclude 12.12
Codes: C - connected O - OSPF i - IS-IS
S - static IA - inter area L1 - level-1
B - BGP E1 - external type 1 L2 - level-2
M - MPLS E2 - external type 2
* - candidate default
m - route's metric
w - route's weight
S * 0.0.0.0/0 via 10.22.0.1 [w:1 m:0]
C 10.22.0.0/16 directly connected to Ethernet 0
C 10.50.0.1/32 directly connected to Loopback 0
C 10.50.1.0/24 directly connected to composite-link 12
.
.
.
Example 3: In the following example:
- The | redirects output of the show ip route command
- The begin string command displays the output starting with the line that includes the string "12.12.20":
router##sho ip route | begin 12.12.20
S 12.12.20.0/24 via 127.0.0.1 [w:1 m:0]
S 127.0.0.0/8 via 127.0.0.1 [w:0 m:0]
C 127.0.0.1/32 directly connected to Null 0 .
.
.
.
Searching a Show Command Using "/"
The "/" provides for the searching of a specified pattern at the end of page -MORE-- display. If a show command display has an output exceeding a single page, entering / followed by the search criteria at the -MORE-- display will forward to the first occurrence of the search criteria and display up to a page of output. The / can be used at each end of page occurrence.
Example: In the following example the / is used to search for the first occurrence of the word symmetric in the show interface command output:
router#show interfaces
Ethernet 0 interface status is up, line protocol is up
Internet address is 10.200.81.5/16
Broadcast address is 10.200.255.255
Ethernet address is 00:a0:f7:0f:02:a3
MTU 1500 bytes, Bandwidth 10.000 Mbit/Sec
Encapsulation ARPA
Received:
8500274 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 3461 errors, 0 unknown protocols
Transmitted:
60 bytes
1 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors
Loopback 0 interface status is up, line protocol is up
Internet address is 50.1.1.1/32
MTU 32768 bytes, BW 0.000 Mbit/Sec
Payload BW: 0.000 Mbit/Sec, Total BW: 0.000 Mbit/Sec
Encapsulation None, CRC-00
Received:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors, 0 unknown protocols
Transmitted:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors
GBE 1/2/1 interface status is administratively down, line protocol is down
Ethernet address is 00:00:00:00:00:00
MTU 1500 bytes, Bandwidth 1000.000 Mbit/Sec
Encapsulation ARPA
Frame type for ARP is ARPA, Frame type for IP is ARPA
Autonegotiation is Enabled, Flow control is symmetric
Vlan is Disabled, Number of vlans on this port are 0
Received:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors, 0 unknown protocols
-MORE--
/symmetric
looking for symmetric ...
Autonegotiation is Enabled, Flow control is symmetric
Vlan is Disabled, Number of vlans on this port are 0
Received:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors, 0 unknown protocols
Transmitted:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors
GBE 1/2/3 interface status is administratively down, line protocol is down
Ethernet address is 00:00:00:00:00:00
MTU 1500 bytes, Bandwidth 1000.000 Mbit/Sec
Encapsulation ARPA
Frame type for ARP is ARPA, Frame type for IP is ARPA
Autonegotiation is Enabled, Flow control is symmetric
Vlan is Disabled, Number of vlans on this port are 0
Received:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors, 0 unknown protocols
Transmitted:
0 bytes
0 directed packets, 0 multicast packets, 0 broadcast packets
0 discards, 0 errors
router#
Invoking Executive-Mode Commands From Configuration-Mode
With the exception of a small subset of commands, executive-mode commands can now be invoked within configuration modes. Both the do and run commands, entered within a configuration-mode, followed on the same command line by a legitimate executive-mode command will invoke the entered command as though it were entered from the executive-mode.
The following executive-mode commands are not allowed within configuration-mode: configure, copy, enable, disable, reload, failover, logout, crashdump, exit, and rlogin. All other executive-mode commands can be invoked within configuration-mode using either the do or run commands.
Modifying the Console and VTY Line Defaults
Use the steps described in this section to modify the default settings for console and telnet sessions into the Avici router. The values and their defaults are as follows:
Table 1-2. Console and Telnet Default Settings
Command/Value Description/Default Setting exec-timeout
Configures automatic session logout if there is no keyboard input or output displayed on the terminal. 10 minutes.
history
Enables/disables command line history for this line. Enabled
history size
Sets the number of buffered command lines for this line. 10 lines.
ip netmask-format
Sets the IP netmask format to decimal, hexadecimal, or bit- count format. bit-count.
length
Sets the number of lines displayed on the screen. 24 lines.
line vty session-limit
Sets the maximum number of vty sessions allowed on this server. Default: 15
width
Sets the width of lines displayed on the screen. 80 characters per line.
Configuring a Session Limits for SSH and Virtual Terminal Sessions
By default up to 15 virtual terminal sessions can be configured on a route controller with session IDs between 0 - 14. The maximum number of sessions for virtual terminal types allowed on a route controller can be configured between 0 - 15. Setting the limit to 0 prevents all sessions from being established. The specified session limit is only applied to the current route controller. Configuring a limit smaller than the current number of sessions will not remove an operating session. Once the number of operating sessions falls below the configured limit, new sessions beyond the configured limit will not be allowed.
Use the line vty session-limit command to configure the maximum number of virtual terminal sessions allowed for this route controller.
Use the no line vty session-limit command to reset the maximum number of vty sessions to the default value for this route controller.
If a non-default value is configured, the configured value can be displayed using the show running-config command, otherwise the configured value remains 15.
Modifying the Exec-Timeout
Exec-timeout automatically terminates the session if there is no keyboard activity or output displayed to the screen for the specified amount of time.
Use the exec-timeout command to configure the number of minutes without keyboard activity before the session is automatically ended.
Use the command in Privileged command mode to set the timeout for this session only. Use the command in Line configuration command mode to set the timeout for this and future sessions.
Example: In the following example:
- The line console command specifies the console and changes the command mode to Line configuration.
- The exec-timeout command configures the console to automatically logout if there is no command line activity for 15 minutes.
- The show running-config command displays the setting:
NOTE The setting will be saved for future VTY sessions.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#line console 0
router(config-line)#exec-timeout 15
router(config-line)#end
router#sho run
.
.
.
!
line console 0
exec-timeout 15 0
Modifying History and History Size
Command line history allows the user to view, edit, and re-execute command lines entered during this session.
Use the history command in Privileged command mode to enable/disable history for this session only.
Use the command in Line configuration command mode to enable/disable history for this and future sessions
Use the history size command to configure the number of command lines stored in the history buffer. Use the command in Privileged command mode to set the history size for this session only. Use the command in Line configuration command mode to set the history for this and future sessions
Use the show history command to display the command-line history buffer for commands issued in Executive/Privileged and Configuration command modes.
Example: In the following example,
- The line console 0 command specifies the console and changes the command mode to Line configuration.
- The history command enables the re-display of commands entered.
- The history size 10 command sets the number of lines displayed by the show history command to 10.
- The the show history command displays the last 10 commands issued in both Executive/Privileged command modes and all Configuration command modes:
router(config)#line console 0
router(config-line)#history
router(config-line)#history size 10
router(config-line)#end
router#show hist
CLI command history:ADMIN/PRIV mode
sho int pos 1/5/1
sho int pos 1/6/1
con t
sho int pos 1/6/1
con t
sho int pos 1/6/1
con t
sho int pos 1/6/1
con t
sho line
CLI command history:CONFIG mode
sonet path-trace test message
end
int pos 1/6/1
no sonet path-trace
end
line console 0
history
history size 10
end
show history
Modifying Netmask Display
You can select how IP netmasks are displayed in show commands using the ip netmask-format command.
Use the command in Privileged command mode to set the netmask format for this session only. Use the command in Line configuration command mode to set the netmask format for this and future sessions.
Use the ip netmask-format decimal command to configure the line to display IP netmasks using dotted decimal format.
Use the ip netmask-format hexadecimal command to configure the line to display IP netmasks using hexadecimal notation.
Use the ip netmask-format bit-count command to configure the line to display IP netmasks using prefix length format.
Example: In the following example,
- The line vty 0 4 command specifies VTY lines and changes the command mode to Line configuration.
- The ip netmask-format command configures the VTY lines to display the IP netmask in prefix length format.
- The show interface pos n/n/n displays an interface with the IP netmask in prefix length format:
NOTE The setting will be saved for future VTY sessions.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#line vty 0 4
router(config-line)ip netmask-format bit-count
router(config-line)#end
router#sho int pos 1/5/1
POS 1/5/1 interface status is up, line protocol is up
Internet address is 10.100.53.2/24
Modifying Length and Width
Use the length num-lines command to define the number of lines displayed on your video terminal. Long output will pause after the specified number of lines are displayed.
Use the width num-lines command to define the number of characters per line displayed on your video terminal. Output that is wider than the specified number of lines "wraps" to the next line.
Use the commands in Privileged command mode to set the terminal length for this session only. Use the commands in Line configuration command mode to set the terminal length for this and future sessions.
Example: In the following example,
- The line vty 0 4 command specifies the VTY lines and changes the command mode to Line configuration.
- The length command configures the console to display the 30 lines per screen.
- The width command configures the console to display 90 characters per line.
- The show line displays the setting:
NOTE The setting will be saved for future VTY sessions.
router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
router(config)#line vty 0 4
router(config-line)#length 30
router(config-line)#width 90
router(config-line)#end
router#show line
.
.
.
Line vty 3 (*)
Length: 30 lines, Width: 90 columns
History is ENABLED, history size is 10.
Configuration Change Methodology
Before installing a configuration file on a live Avici router operating in the Internet, it is best to try your configuration in a test bed situation. Once you are certain that the configuration file contains no typographical or logical defects, it can be loaded onto an operational router.
Likewise, changes to a configuration running in an operational network should also be made with great care. Although you can change parameters on the fly in your test bed, this is rarely a good idea in a live network. Instead, test all configuration file changes on a test bed network, and then load the new configuration file onto your customer network.
IPriori Configuration File Organization
Organize your IPriori configuration file so that other users can easily read and understand your intent.
Comments
Comments begin with the pound sign(#). Comments terminate with the new line character.
It is a good idea to begin all IPriori configuration files with a comment block, including:
- Describe the network and its areas
- What the file does
- When it was created
- The name of the contact responsible for maintaining the file.
- The date the file was deployed.
To make your configuration files easier to maintain, do not use command abbreviations. Enter the entire command name and the complete name of each keyword or parameter.
PROCEDURE: Use the following steps to create a configuration file:
Step 1 Define the server identifier and location.
Step 2 Define and configure logging.
Step 3 Define the contents of each module slot.
Step 4 Identify interfaces and their IP addresses.
Step 6 Define your routing policies.
Step 7 Configure your interior gateway protocol (OSPF or IS-IS).
Step 8 Configure MPLS, RSVP and LDP
Step 9 Configure traffic engineering tunnels
Interface Definitions
When configuring routing protocols on a router, many components of the operation of that protocol are interface dependant and therefore are configured per interface. There are two schools of organization for configuration files:
- All interface commands should be collocated in the configuration file.
- All protocol configuration commands should be collocated in the configuration file.
The first method uses fewer total configuration commands. The second keeps all protocol-related configuration in a single location.
The module statement for each module must be entered before defining any interfaces on that module. Module commands can be entered in one of two ways:
- Collocated in one area of the configuration file, separate from the corresponding interface commands
- Located with the corresponding interfaces commands.
In a large configurations with many multiple-interface modules, collocating the module commands with the corresponding interface commands improves readability.
Example 1: In the following sample configuration file, the interface commands are collocated:
server-id 1
.
.
.
module 1/1 4xoc12
interface pos 1/1/1
ip address 13.1.3.1 255.255.255.0
ip router isis boston
isis password bigp0p level-1
interface pos 1/1/2
ip address 13.1.5.2 255.255.255.0
ip router isis boston
isis password bigp0p level-1
interface pos 1/1/3
ip address 13.1.1.50 255.255.255.0
ip router isis boston
isis password bigp0p level-1
module 1/2 4xoc12
interface pos 1/2/1
ip address 13.2.7.1 255.255.255.0
ip router isis boston
isis password bigp0p level-1
interface pos 1/2/2
ip address 13.2.110.3 255.255.255.0
ip router isis boston
isis password bigp0p level-1
interface pos 1/2/3
ip address 13.2.13.22 255.255.255.0
ip router isis boston
isis password bigp0p level-1
module 1/3 1xoc48
interface pos 1/3/1
ip address 13.4.12.25 255.255.255.0
ip router isis boston
isis password bigp0p level-2
router isis boston
net 49.0001.0000.0000.0020.00
net 49.0004.0000.0000.0020.00
net 49.0005.0000.0000.0020.00
domain-password moulder
area-password tick1e
Example 2: In the following sample configuration file, the routing commands are collocated:
module 1/1 4xoc12
module 1/2 4xoc12
module 1/3 1xoc48
interface pos 1/1/1
ip address 13.1.0.1 255.255.0.0
interface pos 1/1/2
ip address 13.6.0.2 255.255.0.0
interface pos 1/1/3
ip address 13.5.0.50 255.255.0.0
interface pos 1/2/1
ip address 13.2.0.1 255.255.0.0
interface pos 1/2/2
ip address 13.7.0.3 255.255.0.0
interface pos 1/2/3
ip address 13.9.0.22 255.255.0.0
interface pos 1/3/1
ip address 13.4.0.25 255.255.0.0
.
.
.
router isis boston
net 49.0001.0000.0000.0020.00
net 49.0004.0000.0000.0020.00
net 49.0005.0000.0000.0020.00
domain-password moulder
area-password tick1e
interface pos 1/1/1
ip router isis boston
isis password bigp0p level-1
interface pos 1/1/2
ip router isis boston
isis password bigp0p level-1
interface pos 1/1/3
ip router isis boston
isis password bigp0p level-1
interface pos 1/2/1
ip router isis boston
isis password bigp0p level-1
interface pos 1/2/2
ip router isis boston
isis password bigp0p level-1
interface pos 1/2/3
ip router isis boston
isis password bigp0p level-1
interface pos 1/3/1
ip router isis boston
isis password bigp0p level-2
Porting Files from Other Routers
IPriori's industry-standard CLI eases the transition from other routers. There are a few differences in the CLI to support the unique architecture of the Avici router:
- On the Avici router, all interfaces must be explicitly enabled. For each interface entry in a configuration file, include a no shutdown command to enable the interface unless you want to explicitly enable the interface from the CLI at a later time.
- SONET interfaces support Layer 3 IP traffic. POS interfaces are identified by bay#/slot#/port#. Refer to Chapter 4 for more information about interface identifiers on the Avici router.
- The first command in the configuration file must be server-id server-id {upper|lower|full} where the options are as follows:
server-id
Sets the server ID for the server.
upper
Specifies the server is located in the upper half of a split bay.
lower
Specifies the server is located in the lower half of a split bay.
full
Specifies the server is in a full bay.
- Each module must be explicitly configured. Interfaces configured before the configuration of the associated module are not recognized by the Avici router.
Copyright © 2005
Avici Systems Inc.
Avici® and TSR®
is a registered trademark of Avici Systems Inc.
IPriori, Composite Links, SSR, QSR, and NSR® are
trademarks of Avici Systems Inc.
Source
File Name: usingCLI.fm
HTML File Name: usingCLI.html
Last Updated: 02/25/05 at 15:15:03