Page 51 / 400 Scroll up to view Page 46 - 50
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Command Line Interface Structure
5-1
202-10088-01, March 2005
Chapter 5
Command Line Interface Structure
The Command Line Interface (CLI) syntax, conventions and terminology are described in this
section. Each CLI command is illustrated using the structure outlined below.
CLI Command Format
Commands are followed by values, parameters, or both.
Example 1
network parms <
ipaddr> <netmask> [<gateway>]
network parms
is the command name.
<
ipaddr
> <
netmask>
are the required values for the command.
[<gateway>]
is the optional value for the command.
Example 2
snmp-server location <
loc>
snmp-server location
is the command name.
<
loc
>
is the required parameter for the command.
Example 3
clear vlan
clear vlan
is the command name.
Command
The text in bold, non-italic font must be typed exactly as shown.
Page 52 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
5-2
Command Line Interface Structure
202-10088-01, March 2005
Parameters
Parameters are order dependent.
The text in bold italics should be replaced with a name or number. To use spaces as part of a name
parameter, enclose it in double quotes like this: "System Name with Spaces".
Parameters may be mandatory values, optional values, choices, or a combination.
<parameter>. The <> angle brackets indicate that a mandatory parameter must be entered
in place of the brackets and text inside them.
[parameter]. The [] square brackets indicate that an optional parameter may be entered in
place of the brackets and text inside them.
choice1 | choice2. The | indicates that only one of the parameters should be entered.
The {} curly braces indicate that a parameter must be chosen from the list of choices.
Values
ipaddr
This parameter is a valid IP address, made up of four decimal
bytes ranging from 0 to 255. The default for all IP parameters
consists of zeros (that is, 0.0.0.1). The interface IP address of
0.0.0.0 is invalid. In some cases, the IP address can also be
entered as a 32-bit number.
macaddr
The MAC address format is six hexadecimal numbers separated
by colons, for example 00:06:29:32:81:40.
areaid
Area IDs may be entered in dotted-decimal notation (for example,
0.0.0.1). An area ID of 0.0.0.0 is reserved for the backbone. Area
IDs have the same form as IP addresses, but are distinct from IP
addresses. The IP network number of the sub-netted network may
be used for the area ID.
routerid
The value of <router id> must be entered in 4-digit dotted-deci-
mal notation (for example, 0.0.0.1). A router ID of 0.0.0.0 is
invalid.
slot/port
This parameter denotes a valid slot number and a valid port num-
ber. For example, 0/1 represents slot number 0 and port number 1.
The <slot/port> field is composed of a valid slot number and a
valid port number separated by a forward slash (/).
Page 53 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Command Line Interface Structure
5-3
202-10088-01, March 2005
logical slot/port
This parameter denotes a logical slot number and logical port
number assigned. This is applicable in the case of a port-channel
(LAG). The operator can use the logical slot number and the logi-
cal port number to configure the port-channel.
Conventions
Network addresses are used to define a link to a remote host, workstation or network. Network
addresses are shown using the following syntax:
Double quotation marks such as "System Name with Spaces" set off user defined strings. If the
operator wishes to use spaces as part of a name parameter then it must be enclosed in double
quotation marks.
Empty strings (““) are not valid user defined strings.
Command completion finishes spelling the command when enough letters of a command are typed
to uniquely identify the command word. The command may be executed by typing <enter>
(command abbreviation) or the command word may be completed by typing the <tab> or <space
bar> (command completion).
The value 'Err' designates that the requested value was not internally accessible. This should never
happen and indicates that there is a case in the software that is not handled correctly.
The value of '-----' designates that the value is unknown.
Table 5-1.
Network Address Syntax
Address Type
Format
Range
ipaddr
A.B.C.D
0.0.0.0 to 255.255.255.255
(decimal)
macaddr
YY:YY:YY:YY:YY:YY
hexidecimal digit pairs
Page 54 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
5-4
Command Line Interface Structure
202-10088-01, March 2005
Annotations
The CLI allows the user to type single-line annotations at the command prompt for use when
writing test or configuration scripts and for better readability. The exclamation point (‘!’) character
flags the beginning of a comment. The comment flag character can begin a word anywhere on the
command line and all input following this character is ignored. Any command line that begins
with the character ‘!’ is recognized as a comment line and ignored by the parser.
Some examples are provided below:
! Script file for displaying the ip interface
! Display information about interfaces
show ip interface 0/1 !Displays the information about the first interface
! Display information about the next interface
show ip interface 0/2
! End of the script file
Page 55 / 400
User Manual for the NETGEAR 7300S Series Layer 3 Managed Switch Software
Quick Start up
6-1
202-10088-01, March 2005
Chapter 6
Quick Start up
The CLI Quick Start up details procedures to quickly become acquainted with the 7300S Series L3
Switch.
Quick Starting the Switch
1.
Read the device Installation Guide for the connectivity procedure. In-band connectivity allows
access to the 7300S Series L3 Switch locally or from a remote workstation. The device must
be configured with IP information (IP address, subnet mask, and default gateway).
2.
Turn the Power ON.
3.
Allow the device to load the software until the login prompt appears. The device initial state is
called the default mode.
4.
When the prompt asks for operator login, execute the following steps:
Type the word
admin
in the login area. Since a number of the Quick Setup commands
require administrator account rights, NETGEAR suggests logging into an administrator
account.
Enter the password you have defined or simply press the enter key if it is the first time you
are logging in.
Press the enter key two times.
The CLI User EXEC prompt will be displayed.
Use “enable” to switch to the Privileged EXEC mode from User EXEC.
Use “configure” to switch to the Global Config mode from Privileged EXEC.
Use “exit” to return to the previous mode.

Rate

4.5 / 5 based on 2 votes.

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top