Mode examples, Observing command syntax and conventions – Enterasys Networks Security Router X-PeditionTM User Manual
Page 51

Utilizing the Command Line Interface
XSR User’s Guide 2-15
Mode Examples
Consider the following examples to change configuration mode:
XSR>enable
+
Acquires Privileged EXEC mode
XSR#config terminal
+
Acquires Global configuration mode
XSR(config)#interface fastethernet 1
+
Acquires Interface mode
XSR(config-if<F1>)#ip address 192.168.2.2.255.255.255.0
+
Sets up the IP address and subnet mask for this FastEthernet port
XSR(config-if<F1>)#exit
+
Quits Interface mode
XSR(config)#exit
+
Quits Global mode
XSR#disable
+
Quits Privileged EXEC mode
XSR>
+
Returned to EXEC mode by previous command
Observing Command Syntax and Conventions
The CLI command syntax and conventions on the XSR use the notation described below.
In the following example:
show interface [dialer | fastEthernet/gigabitethernet | loopback | serial | bri |
multilink | vpn {interface-number}]
•
show
and
interface
are keywords
•
[
dialer
,
fastEthernet
,
gigabitethernet
,
loopback
,
serial
,
bri
,
multilink
,
vpn
and
{
interface-number
}] are optional parameters
Syntactically, each line begins with one or more command keywords followed by a list of
mandatory values (if any) and, lastly, a list or optional values. For example, the command below:
channel-group number timeslots range [speed {56 | 64}]
has a mandatory parameter value
number,
a mandatory parameter keyword and value pair
timeslots range
, an optional value offered as a keyword
speed
and value options of
56
or
64
.
Note: In many cases, you are not required to exit from a mode to configure a command in another
mode.
Table 2-4 Command Syntax and Conventions
Convention
Description
xyz
Key word or mandatory parameters (bold)
[x]
[ ] Square brackets indicate an optional parameter (italic)
[x | y | z]
[ | ] Square brackets with vertical bar indicate a choice of values
{x | y | z}
{ | } Braces with vertical bar indicate a choice of a required value
[x {y | z} ]
[{ | } ] Combination of square brackets with braces and vertical bars indicates a
required choice of an optional parameter
(config-if<xx>)
xx signifies the interface type; e.g., F1, G3, S2/1.0, D1, L0, BRI, PRI (T1/E1,
T3/E3, ATM), VPN, etc.