Page 221 / 351 Scroll up to view Page 216 - 220
221
CHAPTER 6
Command Line Interface
The Netopia Gateway operating software includes a command line interface (CLI) that lets
you access your Netopia Gateway over a telnet connection. You can use the command line
interface to enter and update the unit’s configuration settings, monitor its performance,
and restart it.
This chapter covers the following topics:
“Overview” on page 222
“Starting and Ending a CLI Session” on page 224
“Using the CLI Help Facility” on page 225
“About SHELL Commands” on page 225
“SHELL Commands” on page 226
“About CONFIG Commands” on page 237
“CONFIG Commands” on page 242
Page 222 / 351
222
Overview
The CLI has two major command modes:
SHELL
and
CONFIG
.
Summary tables
that list
the commands are provided below. Details of the entire command set follow in this sec-
tion.
SHELL Commands
Command
Status and/or Description
arp
to send ARP request
atmping
to send ATM OAM loopback
clear
to erase all stored configuration information
clear_certificate
to remove an SSL certificate that has been installed
clear_log
to erase all stored log info in flash memory
configure
to configure unit's options
diagnose
to run self-test
download
to download config file
exit
to quit this shell
help
to get more: “help all” or “help help”
install
to download and program an image into flash
license
to enter an upgrade key to add a feature
log
to add a message to the diagnostic log
loglevel
to report or change diagnostic log level
netstat
to show IP information
nslookup
to send DNS query for host
ping
to send ICMP Echo request
quit
to quit this shell
reset
to reset subsystems
restart
to restart unit
show
to show system information
start
to start subsystem
status
to show basic status of unit
telnet
to telnet to a remote host
traceroute
to send traceroute probes
upload
to upload config file
view
to show configuration information
who
to show who is using the shell
Page 223 / 351
223
Overview
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
atm
ATM options (DSL only)
bridge
Bridge options
dhcp
Dynamic Host Configuration Protocol options
dmt
DMT ADSL options
diffserv
Differentiated Services options
dns
Domain Name System options
dslf-cpewan
TR-069 CPE WAN management
dslf-lanmgnt
TR-064 LAN management
dynamic-dns
Dynamic DNS options
ethernet
Ethernet options
igmp
IGMP configuration options
ip
TCP/IP protocol options
ip-maps
IPmaps options
nat-default
Network Address Translation default options
pinhole
Pinhole options
ppp
Peer-to-Peer Protocol options
pppoe
PPP over Ethernet options
preferences
Shell environment settings
radius
RADIUS Server options
security
Security options
servers
Internal Server options
snmp
SNMP management options
system
Gateway’s system options
upnp
UPnP options
vlan
VLAN options
wireless
Wireless LAN options
Page 224 / 351
224
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 sup-
ports telnet, for example, a personal computer running a telnet application such as NCSA
Telnet.
telnet <
ip_address
>
You must know the IP address of the Netopia Gateway before you can make a telnet con-
nection to it. By default, your Netopia Gateway uses 192.168.1.254 as the IP address for
its LAN interface. You can use a Web browser to configure the Netopia 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 username (either admin or user), and your password.
Entering the administrator password lets you display and update all Netopia Gateway
settings.
Entering a user password lets you display (but not update) Netopia Gateway settings.
When you have logged in successfully, the command line interface lists the username and
the security level associated 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.
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 225 / 351
225
Using the CLI Help Facility
Saving Settings
In CONFIG mode, the
save
command saves the working copy of the settings to the Gate-
way. The Gateway automatically validates its settings when you save and displays a warn-
ing message if the configuration is not correct.
Using the CLI Help Facility
The
help
command lets you display on-line help for SHELL and CONFIG commands. To dis-
play a list of the commands available to you from your current location within the command
line interface hierarchy, enter
help
.
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.
About SHELL Commands
You begin in SHELL mode when you start a CLI session. SHELL mode lets you perform the
following tasks with your Netopia Gateway:
Monitor its performance
Display and reset Gateway statistics
Issue administrative commands to restart Netopia Gateway functions
SHELL Prompt
When you are in SHELL mode, the CLI prompt is the name of the Netopia Gateway followed
by a right angle bracket (>). For example, if you open a CLI connection to the Netopia Gate-
way named “Netopia-3000/9437188,” you would see
Netopia-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 truncated 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.

Rate

4.7 / 5 based on 3 votes.

Bookmark Our Site

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

Share
Top