Page 106 / 216 Scroll up to view Page 101 - 105
Administrator’s Handbook
106
CONFIG Commands
Command Verbs
Status and/or Description
delete
Delete configuration list data
help
Help command option
save
Save configuration data
script
Print configuration data
set
Set configuration data
validate
Validate configuration settings
view
View configuration data
Keywords
conn
Connection options
ip
TCP/IP protocol options
dns
Domain Name System options
igmp
IGMP configuration options
ntp
Network Time Protocol options
gateway
Gateway options
link
WAN link options
mgmt
System management options
phy
Physical interface options
dsl
DSL configuration options
enet
Ethernet options
pinhole
Pinhole options
system
Gateway’s system options
log
System activity logging options
Command Utilities
top
Go to top level of configuration mode
quit
Exit from configuration mode; return to shell mode
exit
Exit from configuration mode; return to shell mode
Page 107 / 216
107
Starting and Ending a CLI Session
Open a telnet connection from a workstation on your network.
You initiate a telnet connection by issuing the following command from an IP host that supports telnet, for exam-
ple, a personal computer running a telnet application such as NCSA Telnet.
telnet <
ip_address
>
You must know the IP address of the Motorola Gateway before you can make a telnet connection to it. By default,
your Motorola Gateway uses 192.168.1.254 as the IP address for its LAN interface. You can use a Web browser
to configure the Motorola Gateway IP address.
Logging In
The command line interface log-in process emulates the log-in process for a UNIX host. To logon, enter the user-
name and your password.
Entering the administrator password lets you display and update all Motorola Gateway settings.
When you have logged in successfully, the command line interface lists the username and the security level asso-
ciated with the password you entered in the diagnostic log.
Ending a CLI Session
You end a command line interface session by typing
quit
from the SHELL node of the command line interface
hierarchy.
Using the CLI Help Facility
The
help
command lets you display on-line help for SHELL and CONFIG commands. To display a list of the com-
mands available to you from your current location within the command line interface hierarchy, enter
help
or
type a question mark (
?
).
To obtain help for a specific CLI command, type
help <command>
. You can truncate the
help
command to
h
or a question mark when you request help for a CLI command.
Page 108 / 216
Administrator’s Handbook
108
About SHELL Commands
You begin in SHELL mode when you start a CLI session. SHELL mode lets you perform the following tasks with
your Motorola Gateway:
Monitor its performance
Display and reset Gateway statistics
Issue administrative commands to restart Motorola Gateway functions
SHELL Prompt
When you are in SHELL mode, the CLI prompt is the name of the Motorola Gateway followed by a right angle
bracket (>). For example, if you open a CLI connection to the Motorola Gateway named “Motorola-3000/
9437188,” you would see
Motorola-3000/9437188>
as your CLI prompt.
SHELL Command Shortcuts
You can
truncate
most commands in the CLI to their shortest unique string. For example, you can use the trun-
cated command
q
in place of the full
quit
command to exit the CLI. However, you would need to enter
rese
for
the
reset
command, since the first characters of
reset
are common to the
restart
command.
The only commands you cannot truncate are
restart
and
clear
. To prevent accidental interruption of communi-
cations, you must enter the
restart
and
clear
commands in their entirety.
You can use the Up and Down arrow keys to scroll backward and forward through recent commands you have
entered. Alternatively, you can use the
!!
command to repeat the last command you entered.
Page 109 / 216
109
SHELL Commands
Common Commands
arp
nnn.nnn.nnn.nnn
Sends an Address Resolution Protocol (ARP) request to match the
nnn.nnn.nnn.nnn
IP address to an
Ethernet hardware address.
clear [ yes ]
Clears the configuration settings in a Motorola Gateway. You are prompted to confirm the clear command by
entering
yes
.
clear_certificate
Removes an SSL certificate that has been installed.
configure
Puts the command line interface into Configure mode, which lets you configure your Motorola Gateway with Con-
fig commands. Config commands are described starting on
page 121
.
download [
server_address
] [
filename
] [ confirm ]
This command installs a file of configuration parameters into the Motorola Gateway from a TFTP (Trivial File
Transfer Protocol) server. The TFTP server must be accessible on your Ethernet network.
You can include one or more of the following arguments with the download command. If you omit arguments, the
console prompts you for this information.
The
server_address
argument identifies the IP address of the TFTP server from which you want to copy
the Motorola Gateway configuration file.
The
filename
argument identifies the path and name of the configuration file on the TFTP server.
If you include the optional
confirm
keyword, the download begins as soon as all information is entered.
You can also download an SSL certificate file from a trusted Certification Authority (CA), on platforms that support
SSL, as follows:
download [-cert] [server_address ] [filename] [confirm]
install [
server_address
] [
filename
] [ confirm ]
Downloads a new version of the Motorola Gateway operating software from a TFTP (Trivial File Transfer Protocol)
server, validates the software image, and programs the image into the Motorola Gateway memory. After you install
new operating software, you must restart the Motorola Gateway.
The
server_address
argument identifies the IP address of the TFTP server on which your Motorola Gateway
operating software is stored. The
filename
argument identifies the path and name of the operating software file
on the TFTP server.
If you include the optional keyword
confirm
, you will not be prompted to confirm whether or not you want to per-
form the operation.
Page 110 / 216
Administrator’s Handbook
110
log
message_string
Adds the message in the
message_string
argument to the Motorola Gateway diagnostic log.
loglevel [
level
]
Displays or modifies the types of log messages you want the Motorola Gateway to record. If you enter the
loglevel
command without the optional
level
argument, the command line interface displays the current
log level setting.
You can enter the
loglevel
command with the
level
argument to specify the types of diagnostic messages
you want to record. All messages with a level number equal to or greater than the level you specify are recorded.
For example, if you specify loglevel 3, the diagnostic log will retain high-level informational messages (level 3),
warnings (level 4), and failure messages (level 5).
Use the following values for the
level
argument:
1
or
low
– Low-level informational messages or greater; includes trivial status messages.
2
or
medium
– Medium-level informational messages or greater; includes status messages that can help
monitor network traffic.
3
or
high
– High-level informational messages or greater; includes status messages that may be significant
but do not constitute errors.
4
or
warning
– Warnings or greater; includes recoverable error conditions and useful operator informa-
tion.
5
or
failure –
Failures; includes messages describing error conditions that may not be recoverable.
netstat -i
Displays the IP interfaces for your Motorola Gateway.
netstat -r
Displays the IP routes stored in your Motorola Gateway.
nslookup [
hostname
|
ip_address
]
Performs a domain name system lookup for a specified host.
The
hostname
argument is the name of the host for which you want DNS information; for example,
nslookup klaatu
.
The
ip_address
argument is the IP address, in dotted decimal notation, of the device for which you want
DNS information.
ping [-s
size
] [-c
count
] [
hostname
|
ip_address
]
Causes the Motorola Gateway to issue a series of ICMP Echo requests for the device with the specified name or
IP address.
The
hostname
argument is the name of the device you want to ping; for example,
ping ftp.motorola.com
.
The
ip_address
argument is the IP address, in dotted decimal notation, of the device you want to locate. If
a host using the specified name or IP address is active, it returns one or more ICMP Echo replies, confirming
that it is accessible from your network.
The
-s
size
argument lets you specify the size of the ICMP packet.
The
-c
count
argument lets you specify the number of ICMP packets generated for the ping request. Values
greater than 250 are truncated to 250.

Rate

4 / 5 based on 3 votes.

Bookmark Our Site

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

Share
Top