0% found this document useful (0 votes)
218 views61 pages

CLI Command List: From Linux Busybox

This document provides documentation on CLI commands available for ADSL routers. It lists commands from Linux busybox, Linux public domain, and USRobotics and describes their usage and functions. The document also provides details on commands for controlling ADSL connections, configurations, bit error rate tests and displaying status information.

Uploaded by

itaskiitians
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
218 views61 pages

CLI Command List: From Linux Busybox

This document provides documentation on CLI commands available for ADSL routers. It lists commands from Linux busybox, Linux public domain, and USRobotics and describes their usage and functions. The document also provides details on commands for controlling ADSL connections, configurations, bit error rate tests and displaying status information.

Uploaded by

itaskiitians
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 61

CLI Command List

The following commands are available from ADSL router command line interfaces.
From Linux busybox:
Cat
Df
Dumpmem (hidden command)
Echo
Ifconfig
Kill
Ping
Ps
Pwd
Reboot
Setmem (hidden command)
Top (hidden command)
Traceroute
Sh (hidden command)
Logread (hidden command and only if syslog is enabled)
Sysinfo
From Linux public domain:
Brctl
Ebtables (hidden command)
Iptables (hidden command)
From USRobotics:
adsl
atm
arp
cat
defaultgateway
dhcpserver
dltftp
dnsrelay
help
lan
logout
passwd
ppp
pwd
remoteaccess
restoredefault
route
save
swversion
wan
wlctl (only enabled for wireless BCM96345GW; no manual yet; CLI can not
save wireless to Permanent Storage in v2.12L1 release).

Control Key Support
1. Command history scrolling (maximum 15 commands in history)
UP: UP arrow key, or CTL+p
DOWN: DOWN arrow key, or CTL+n
2. Move cursor
a. LEFT: LEFT arrow key, or CTL-b
b. RIGHT: RIGHT arrow key, or CTL-f
c. Beginning of line: CTL+a
d. End of line: CTL+e
3. Clear screen: CTL+l (lowercase letter of L)
4. Clear to the beginning of line: CTL+u
5. Clear to the end of line: CTL+k
6. Delete: DEL key, or CTL+h
7. Terminate CTL-c (can not terminate certain running application such as ping
and traceroute)

ADSL
NAME
adsl allow a user to control the USRobotics BCM63xx ADSL driver
SYNOPSIS
adsl start [options]
adsl stop
adsl connection [options]
adsl configure [options]
adsl bert [options]
adsl info [options]
DESCRIPTION
Adsl is used to control the USRobotics BCM63xx ADSL driver. This utility can:
start and stop the driver
activate, deactivate and control ADSL connection
configure ADSL driver and connection parameters
start, stop and monitor Bit Error Rate Test (BERT)
display status and information of ADSL driver and connection
display statistics for ADSL driver and connection
All information is displayed to stdout. A program or shell script that calls this utility
can redirect stdout to a file and then parse the file in order to interpret the displayed
output.
COMMANDS
start
Starts the USRobotics ADSL driver. This command calls BcmAdsl_Initialize to
initialize the driver and BcmAdsl_ConnectionStart to start ADSL PHY connection if
[--up] is specified. This command takes parameters that can specify various
connection modes. These parameters are the same as in configure command.
stop
Stops ADSL connection and USRobotics ADSL driver. This command calls
BcmAdsl_Uninitialize.
configure
Configures ADSL connection parameters. These command takes the same parameters
as start command except for [--up] . This command will cause ADSL PHY to
retrain.
connection
Controls ADSL connection modes, such as up and down and several special test
modes. This command can also be used to specify tone selection for upstream and
downstream.
bert
Controls ADSL bit error rate test (BERT). This command can start/stop the BERT test
and monitor its results.
info
Display information about ADSL driver and PHY status.
OPTIONS
Options for the start and configure commands
adsl start [--up] [--mod <a|d|l|t>] [--lpair <(i)nner|(o)uter>] [--bm <(D)BM|(F)BM>] [-
-ccw]
adsl configure [--mod <a|d|l|t>] [--lpair <(i)nner|(o)uter>] [--bm <(D)BM|(F)BM>] [--
ccw]
--up
Will call BcmAdsl_ConnectionStart to start ADSL PHY connection
--mod <a|d|l|t>
a all modulations allowed.
d G.DMT only
l G.Lite only
t T1.413 only
More than one mode letter can be given to specify several modes.
--lpair <(i)nner|(o)uter>
(i)nner inner loop pair is used
(o)uter outer loop pair is used
The following options apply to AnnexC only
--bm <(D)BM|(F)BM>
(D)BM - DBM mode
(F)BM - FBM mode
--ccw
Enables special CRC workaround for Centillium modems
Options for the stop command
adsl stop
Options for the connection command
adsl connection [--up] [--down] [--loopback] [--reverb] [--medley] [--noretrain] [--
tones <xmtStart xmtNum xmtMap rcvStart rcvNum rcvMap>]
--up
Starts ADSL connection in normal mode
--down
Puts ADSL PHY in idle mode
--loopback
Puts ADSL PHY in ATM cell loopback mode. In this modem ADSL PHY will not try
to establish connection
--reverb
Puts ADSL PHY in test mode in which it only sends REVERB signal
--medley
Puts ADSL PHY in test mode in which it only sends MEDLEY signal
--noretrain
In this mode ADSL PHY will be trying to establish connection as in normal mode, but
once the connection is up it will not retrain even if the signal is lost.
--tones <xmtStart xmtNum smtMap rcvStart rcvNum rcvMap>
Specifies tones which can be used by ADSL PHY.
xmtStart first tone used in upstream direction (usually 0)
xmtNum - number of tones in upstream direction (usually 32)
xmtMap - bitmap for tones used in upstream direction. Specified as a hexadecimal
string. Bit value zero means the corresponding tone is not used, bit value one means it
is used.
rcvStart first tone used in downstream direction (usually 32)
rcvNum - number of tones in downstream direction (usually 224)
rcvMap - bitmap for tones used in downstream direction. Specified as a hexadecimal
string. Bit value zero means the corresponding tone is not used, bit value one means it
is used.
Tone configuration command does not cause ADSL PHY retrain automatically. To
experience the effect of this command ADSL connection must be restarted using for
example adsl connection down followed by adsl connection up command. Tone
selection is not affected by adsl configure commands and has to be changed explicitly.
Default tone configuration (all tones enabled) will be set by adsl tones 0 32
0xFFFFFFFF 32 224 0xFF (repeated 28 times)
Options for the bert command
adsl bert [--start ] [--stop] [--show]
--start
Starts Bit Error Rate Test (BERT)
seconds duration of BERT test in seconds
--stop
Stops the BERT test.
--show
Display BERT results to stdout in the following format:
BERT Status = [NOT] RUNNING BERT Total Time = 10 sec
BERT Elapsed Time = 10 sec
BERT Bits Tested = 0x00000000045A6380 bits
BERT Err Bits = 0x0000000000000002 bits
BERT Status indicates whether or not the BERT test is currently running. It can be
used to monitor when the BERT test is complete after it is started. The numbers of
total bit tested and errorred bits are displayed as 64 bit hexadecimal numbers.
Options for the info command
adsl info [--state] [--show] [--stats] [--reset]
--state
Displays the shortest message about ADSL PHY connection state, e.g.
adsl: ADSL driver and PHY status
Status: Showtime Channel: FAST, Upstream rate = 8064 Kbps, Downstream rate =
1024 Kbps
--show
Displays more statistics about ADSL connection.
--stats
Displays all available statistics about ADSL connection.
--reset
Clears all statistic counters in ADSL driver
EXIT CODES
Exit codes less than 100 are assigned by the ADSL driver. Exit codes of 100 or
greater are assigned by the adsl utility.
BCMADSL_STATUS_SUCCESS 0
BCMADSL_STATUS_ERROR 1
ADSL_GENERAL_ERROR 100
ADSL_ALLOC_ERROR 101
ADSL_INVALID_COMMAND 102
ADSL_INVALID_OPTION 103
ADSL_INVALID_PARAMETER 104
ADSL_INVALID_NUMBER_OF_OPTIONS 105
ADSL_INVALID_NUMBER_OF_PARAMETERS 106
EXAMPLES
A simple initialization. adsl start [--up]
or
adsl start
adsl connection --up
A more complex initialization.
adsl start -up -mod dl -lpair I
or
adsl start
adsl connection -up -mod dl -lpair I
Getting in and out of the test modes
adsl connection -reverb
adsl connection -up
Selecting tones
adsl connection -tones 0 32 0xFEFFFF7F 32 224 0xFEFFFFFFFFFFFF7F
selects tones from 1 to 31 for upstream and from 33 to 95 for downstream
Starting and monitoring BERT
adsl bert start 60
to run BERT test for 60 seconds. After about 20 seconds of BERT running the
results will look like:
adsl bert show
adsl: BERT results:
BERT Status = RUNNING
BERT Total Time = 60 sec
BERT Elapsed Time = 20 sec
BERT Bits Tested = 0x0000000008B4C700 bits
BERT Err Bits = 0x0000000000000067 bits
After 60 seconds when the BERT has completed the results of show command
will be:
adsl bert show
adsl: BERT results:
BERT Status = NOT RUNNING BERT Total Time = 60 sec
BERT Elapsed Time = 60 sec
BERT Bits Tested = 0x000000001A1E5500 bits
BERT Err Bits = 0x0000000000000067 bits
Display minimal ADSL state.
adsl info -state
adsl: ADSL driver and PHY status
Status: Showtime Channel: FAST, Upstream rate = 8064 Kbps, Downstream
rate = 1024 Kbps
Display complete ADSL driver and PHY status.
adsl info -show
adsl: ADSL driver and PHY status
Status: Showtime Channel: FAST, Upstream rate = 8064 Kbps, Downstream
rate = 1024 Kbps
Mode: G.DMT
Channel: Fast
Trellis: ON
Line Status: No Defect
Training Status: Showtime
Down Up
SNR (dB): 16.1 7.0
Attn(dB): 0.0 5.5
Pwr(dBm): 6.5 7.8
Max(Kbps): 11040 1088
Rate (Kbps): 0 0
K: 0(0) 0
R: 0 0
S: 1 1
D: 1 1
SF: 25288 25286
SFErr: 1 0
RS: 0 0
RSCorr: 0 0
RSUnCorr: 0 0
HEC: 1 0
OCD: 0 0
LCD: 0 0
ES: 1 0

ARP
NAME
arp manipulate modems ARP (Address Resolution Protocol) table
SYNOPSIS
arp add <IP address> <MAC address>
arp delete <IP address>
arp show
arp --help
DESCRIPTION
arp is used to manipulate modems ARP table. Note that ARP entries added by this
command are not saved in the flash memory by the save command. After system
reboot, ARP entries need to be re-added.
EXAMPLES
Add a static ARP entry for IP address 192.168.1.2 with MAC address
00:11:22:33:44:55.
>arp add 192.168.1.2 00:11:22:33:44:55
Show ARP table.
> arp show
IP address HW type Flags HW address Mask Device
192.168.1.3 0x1 0x2 00:01:03:E3:4F:F9 * br0
192.168.1.2 0x1 0x6 00:11:22:33:44:55 * br0
Delete ARP entry for IP address 192.168.1.2.
>arp delete 192.168.1.2

ATM
NAME
atm allow a user to control the USRobotics BCM63xx ATM driver
SYNOPSIS
atm start [options]
atm stop
atm operate tdte|intf|vcc [options]
DESCRIPTION
Atm is used to control the USRobotics BCM63xx ATM driver. This utility can:
start and stop the driver
activate and deactivate an ATM interface (port) or a Virtual Channel
Connection (VCC)
add and remove traffic descriptor table entries
add and remove VCCs
display the configuration for traffic descriptor table entries, ATM interfaces
and VCCs
display statistics for ATM interfaces and VCCs
All information is displayed to stdout. A program or shell script that calls this utility
can redirect stdout to a file and then parse the file in order to interpret the displayed
output.
COMMANDS
Start
Starts the USRobotics ATM driver. This command calls BcmAtm_Initialize to
initialize the driver and BcmAtm_SetTrafficDescrTable to add one UBR traffic
descriptor table entry.
Stop
Stops the USRobotics ATM driver. This command calls BcmAtm_Uninitialize.
Operate
Operates on traffic descriptor table entries, ATM interfaces and VCCs. Depending on
the options, this command calls BcmAtm_GetTrafficDescrTable,
BcmAtm_SetTrafficDescrTable, BcmAtm_GetInterfaceCfg,
BcmAtm_SetInterfaceCfg, BcmAtm_GetVccCfg, BcmAtm_SetVccCfg,
BcmAtm_GetInterfaceStatistics or BcmAtm_GetVccStatistics.
OPTIONS
Options for the start command
atm start [--cqs <size>] [--pqs <size>] [--bs <size>] [--bo <offset>] [--intf <port>
<type> <address>]
--cqs <size>
size Size used to create the Free and Receive cell queues. Default value is 10.
--pqs <size>
size Size used to create the Free and Receive packet queues. Default value is 200.
--bs <size>
size Size of a buffer used in the Free and Receive packet queues. Default value is
1600.
--bo <offset>
offset - Offset into a receive buffer where data is to be received. Default value is 32.
--intf <port> <type> <address>
port Port number starting at 0 to be configured.
type adsl|loopback|utopia|tc
address UTOPIA address. Only used if type is utopia.
More than one intf option can be specified to configure multiple ports. If no intf
option is specified, the default value is "0, adsl, 0".
Options for the stop command
atm stop
Options for the operate tdte command
atm operate tdte [--add <type> [<pcr>] [<scr>] [<mbs>]] [--delete <index>] [-- show
[<index>]]
--add <type> [<pcr>] [<scr>] [<mbs>]
type - ubr|ubr_pcr|cbr|rtvbr|nrtvbr
pcr Peak Cell Rate (PCR) if type requires it
scr Sustainable Cell Rate (SCR) if type requires it
mbs Maximum Burst Size (MBS) if type requires it
--delete <index>
index Traffic descriptor table entry index to delete. The show option displays the
current index values.
--show [<index>]
index Traffic descriptor table entry index to display information about.
If index is omitted, all traffic descriptor table entries are displayed.
Options for the operate intf command
atm operate intf [--state <port> <type> ] [--show [<port>]] [--stats [<port>] [reset]]
--state <port> <type>
port Port number starting at 0 to enable or disable.
type enable|disable
--show [<port>]
port Port number starting at 0 to display configuration information about.
If port is omitted, configuration information is displayed for all configured ports.
--stats [<port>] [reset]
port Port number starting at 0 to display statistics for.
reset Resets statistics fields.
If port is omitted, statistics are displayed for all configured ports.
Options for the operate vcc command
atm operate vcc [--add <port.vpi.vci> <aal_type> <tdte_index>
<encapsulation_type>] [--delete <port.vpi.vci>] [--addq <port.vpi.vci> <size>
<priority> ] [--deleteq <port.vpi.vci> <size> <priority> ] [-- state <port.vpi.vci>
<type> ] [--show [<port.vpi.vci>]] [--stats [<port.vpi.vci>] [reset]]
--add <port.vpi.vci> <type> <tdte_index> <encapsulation_type>
port.vpi.vci Port number, VPI and VCI that identifies the VCC to add.
type aal5|aal2|aal0pkt|aal0cell|aaltransparent
tdte_index - Traffic descriptor table entry index to use for this VCC.
The command, atm operate tdte -show, displays the current index values.
encapsulation_type vcmux_routed|vcmux_bridged8023|llcencaps|other|unknown
--delete <port.vpi.vci>
port.vpi.vci Port number, VPI and VCI that identifies the VCC to delete.
--addq <port.vpi.vci> <size> <priority>
port.vpi.vci Port number, VPI and VCI that identifies the VCC to add a new queue
for.
Size Size of the queue.
Priority Priority of the queue.
--deleteq <port.vpi.vci> <size> <priority>
port.vpi.vci Port number, VPI and VCI that identifies the VCC to delete a queue
for.
size Size of the queue.
priority Priority of the queue.
--state <port.vpi.vci> <type>
port.vpi.vci Port number, VPI and VCI that identifies the VCC to enable or disable.
type enable|disable
--show [<port.vpi.vci>]
port.vpi.vci Port number, VPI and VCI that identifies the VCC to display
configuration information about.
If port.vpi.vci is omitted, configuration information is displayed for all configured
VCCs.
--stats [<port.vpi.vci>] [reset]
port.vpi.vci Port number, VPI and VCI that identifies the VCC to display statistics
for.
reset Resets statistics fields.
If port.vpi.vci is omitted, statistics are displayed for all configured VCCs.
EXIT CODES
Exit codes less than 100 are assigned by the ATM driver. Exit codes of 100 or greater
are assigned by the atm utility.
ATMDRV_SUCCESS 0
ATMDRV_ERROR 1
ATMDRV_STATE_ERROR 2
ATMDRV_PARAMETER_ERROR 3
ATMDRV_ALLOC_ERROR 4
ATMDRV_RESOURCE_ERROR 5
ATMDRV_IN_USE 6
ATMDRV_VCC_DOWN 7
ATMDRV_INTERFACE_DOWN 8
ATMDRV_LINK_DOWN 9
ATMDRV_NOT_FOUND 10
ATMDRV_NOT_SUPPORTED 11
ATM_GENERAL_ERROR 100
ATM_ALLOC_ERROR 101
ATM_INVALID_COMMAND 102
ATM_INVALID_OPTION 103
ATM_INVALID_PARAMETER 104
ATM_INVALID_NUMBER_OF_OPTIONS 105
ATM_INVALID_NUMBER_OF_PARAMETERS 106

EXAMPLES
A simple initialization.
atm start
atm operate vcc -add 0.0.35 aal5 1 vcmux_bridged8023
A more complex initialization.
atm start -pqs 400 -bo 0
atm operate tdte -add ubr_pcr 15000
atm operate tdte -show
index type pcr scr mbs
1 ubr 0 0 0
2 ubr_pcr 15000 0 0

atm operate vcc -add 0.0.35 aal5 2 vcmux_bridged8023
Display interface configuration (assumes that the ATM driver is started).
atm operate intf -show
port status type
0 enabled adsl

Create and display a VCC configuration (assumes that the ATM driver is
started).
atm operate vcc -add 0.0.35 aal5 1 vcmux_bridged8023 -addq 0.0.35 64 2 -
addq 0.0.35 80 1
atm operate vcc -add 0.0.36 aal5 1 vcmux_routed --addq 0.0.36 128 1
atm operate vcc -show
vcc status type tdte_index q_size q_priority encapsulation
0.0.35 enabled aal5 1 64 2 vcmux_bridged8023
80 1
0.0.36 enabled aal5 1 128 1 llcencaps

Display interface statistics (assumes that the ATM driver is started).
atm operate intf -stats
interface statistics for
port 0
in octets 8130336
out octets 46512
in errors 0
in unknown 0
in hec errors 0
in invalid vpi
vci errors
0
in port not
enable errors
0
in pti errors 0
in circuit type
errors
0
in oam rm crc
errors
0
in gfc errors 0

aal5 interface statistics
for port 0
in octets 8130336
out octets 46512
in ucast pkts 5426
out ucast pkts 189
in errors 0
out errors 0
in discards 0
out discards 0


Display VCC statistics (assumes that the ATM driver is started and two VCCs
are configured).
atm operate vcc -stats
aal5 vcc statistics for
0.0.35
crc errors 0
oversized sdus 0
short packet
errors
0
length errors 0

aal5 vcc statistics for
0.0.36
crc errors 0
oversized sdus 0
short packet
errors
0
length errors 0

BRCTL
NAME
brctl bridge administration utility
SYNOPSIS
brctl [ command ]
DESCRIPTION
brctl is used to set up, maintain, and inspect the bridge configuration.
A bridge is a device commonly used to connect different networks (Ethernet, USB,
802.11x wireless network or ATM) together, so that these networks will appear as one
network to the participants.
Each of the networks being connected corresponds to one physical interface (port) in
the bridge. These individual networks are bundled into one bigger ('logical') network,
this bigger network corresponds to the bridge network interface such as br0.
COMMANDS
addbr <bridge>
Creates a new instance of the bridge. The network interface corresponding to the
bridge will be called <bridge> .
delbr <bridge>
Deletes the instance <bridge> of the bridge. The network interface corresponding to
the bridge must be down before it can be deleted.
show <bridge>
Shows the instance of the bridge.
show
Shows all current instances of the bridge.
addif <bridge> <device>
Makes the interface <device> a port of the bridge <bridge>. This means that all
frames received <device> on will be processed as if destined for the bridge <bridge>.
Also, when sending frames on <bridge>, <device> will be considered as a potential
output interface.
delif <bridge> <device>
Detaches the interface from the bridge <bridge> .
showmacs <bridge>
Shows a list of learned MAC addresses for this bridge.
showstp <bridge>
Shows the STP (Spanning Tree Protocol) status of this bridge.
setageing <bridge> <time>
Sets the MAC address ageing time, in seconds. After <time> seconds of not having
seen a frame coming from a certain address, the bridge will time out (delete) that
address from the Forwarding DataBase (fdb).
setbridgeprio <bridge> <priority>
Sets the bridge's priority to <priority>. The priority value is an unsigned 16-bit
quantity (a number between 0 and 65535), and has no dimension. Lower priority
values are 'better'. The bridge with the lowest priority will be elected 'root bridge'.
setfd <bridge> <time>
Sets the bridge's 'bridge forward delay' to <time> seconds.
setgcint <bridge> <time>
Sets the garbage collection interval for the bridge <bridge> to <time> seconds. This
means that the bridge will check the forwarding database for timed out entries
every <time> seconds.
sethello <bridge> <time>
Sets the bridge's 'bridge hello time' to <time> seconds.
setmaxage <bridge> <time>
Sets the bridge's 'maximum message age' to <time> seconds.
setpathcost <bridge> <port> <cost>
Sets the port cost of the port <port> to <cost>. This is a dimensionless metric.
setportprio <bridge> <port> <prio>
Sets the port <port>'s priority to <priority>. The priority value is an unsigned 8-bit
quantity (a number between 0 and 255), and has no dimension. This metric is used in
the designated port and root port selection algorithms.
stp <bridge> <state>
Controls this bridge instance's participation in the spanning tree protocol. If is "on" or
"yes" the STP will be turned on, otherwise it will be turned off. When turned off, the
bridge will not send or receive BPDUs, and will thus not participate in the spanning
tree protocol. If your bridge isn't the only bridge on the LAN, or if there are loops in
the LAN's topology, DO NOT turn this option off. If you turn this option off, please
know what you are doing.
OPTIONS
None.
EXAMPLES
Display all the learned MAC addresses on br0
brctl showmacs br0
Set the ageing timer value to be 400 seconds on br0
brctl setageing br0 400
Turn off STP brctl stp br0 off

CAT
NAME
cat concatenates FILE(s) and prints them to standard output
SYNOPSIS
cat [FILE] ...
DESCRIPTION
Concatenates FILE(s) and prints them to standard output
COMMANDS
None.
OPTIONS
None.
EXAMPLES
Display system memory information.
cat /proc/meminfo

DEFAULTGATEWAY
NAME
defaultgateway configure or show the default gateway or default route
SYNOPSIS
defaultgateway config auto
defaultgateway config static [<ipaddress>] [<interface>]
defaultgateway show
defaultgateway --help
DESCRIPTION
The primary use of defaultgateway command is to set up a static default gateway or
default route, or to retrieve the default gateway information automatically from
remote ISPs through DHCP protocol for a MER interface or through PPP protocol for
a PPPoA or PPPoE interface. A PPPoA or PPPoE interface will always retrieve
remote gateway information automatically. This command will save configuration to
the Permanent Storage.
If the default gateway is configured with static data, it will override any remote
gateway address received automatically from some WAN interface and become
effective immediately in the runtime system. Ipaddress is optional if the default route
is en route a PPPoE, PPPoA or IPoA interface. If the default gateway is en route a
MER interface, ipaddress must be configured and the interface parameter is optional.
If there is only one IPoA WAN interface, you must configure static default gateway or
default route since IPoA does not support DHCP.
If the default gateway is configured with the "auto" option, the system needs to be
rebooted before it can take effect. If there are multiple WAN interfaces with DHCP or
PPP enabled, multiple remote gateway addresses may be received and the first
received will be chosen to be the default gateway.
OPTIONS
ipaddress
the IP address of the default gateway in dotted decimal.
interface
force the default gateway to be associated with the specified device, as the kernel will
otherwise try to determine the device on its own by checking already existing routes
and devices.
EXAMPLES
Enable the system to retrieve the default gateway information automatically
from the remote dhcp server when system starts. The system needs to be
rebooted for modified configuration to take effect.
defaultgateway config auto
Set up a static default gateway to 10.6.33.125. It should be effective right away
and is saved to Permanent Storage on the flash memory.
defaultgateway config 10.6.33.125

DF
NAME
df print the filesystem used space and available space
SYNOPSIS
df [OPTION]... [FILESYSTEM]...
DESCRIPTION
df displays the amount of disk space available on the file system of each filesystem
name argument. If no file system name is given, the space available on all currently
mounted filesystems is shown. Disk space is shown in 1 kb blocks by default.
COMMANDS
None.
OPTIONS
-h print sizes in human readable format (e.g., 1K 243M 2G )
-m print sizes in megabytes
-k print sizes in kilobytes (default)
EXAMPLES
Display the space available on all the mounted file systems
Df
Display the space available on the flash root file system
df /dev/mtdblock0
DHCPSERVER
NAME
dhcpserver allow a user to configure, or show the DHCP Server data
SYNOPSIS
dhcpserver config <start IP address> <end IP address> leased time (hour)>
dhcpserver show
dhcpserver --help
DESCRIPTION
dhcpserver is used to configure, or show the DHCP server data. This utility can:
configure the DHCP server on the primary LAN interface.
show the DHCP server configuration data.
display usage.
All information is displayed to stdout. A program or shell script that calls this utility
can redirect stdout to a file and then parse the file in order to interpret the displayed
output.
COMMANDS
config
configure the DHCP server with the given data. Notice: the command saves the
configuration data to the flash but does not take effect until the system is rebooted.
show
show the DHCP server configuration data.
--help
display usage.
OPTIONS
Options for the config command
dhcpserver config <start IP address> <end IP address> <leased time (hour)>.
<start IP address>
The IP address of the first address in the range. The value of range start must be less
than or equal to the value of range end.
Valid values: any valid IP address.
Default value: 192.168.1.2.
<end IP address>
The IP address of the last address in the range. The value of range end must be greter
than or equal to the value of range start.
Valid values: any valid IP address.
Default value: 192.168.1.254.
<leased time (hour)>
The lease period for which the server assigns an IP address to the client in case the
client does not request for the specific lease period itself.
Valid values: 0 - 8760.
Default value: 24 hours (this equals a day).
Options for the show command
dhcpserver show
Options for the --help command
dhcpserver --help
EXAMPLES
Configure DHCP server. dhcpserver config 192.168.1.2 192.168.1.254 24
Display DHCP server configuration data.

dhcpserver show

start 192.168.1.2
end 192.168.1.254
interface br0
option lease 86400
option min_lease 30
option subnet 255.255.255.0
option router 192.168.1.1
option dns 192.168.1.1
Display usage.

Dhcpserver --help

Usage: dhcpserver config <start IP address> <end IP address> <leased time
(hour)>
dhcpserver show
dhcpserver help

DLTFTP
NAME
dltftp allow a user to download a binary image from a TFTP server to the DSL
router using TFTP protocol
SYNOPSIS
dltftp
DESCRIPTION
Download a binary image from a TFTP server to the DSL router using TFTP protocol.
OPTIONS
dltftp <ftp_server_ip_address> <file_name>
<ftp_server_ip_address>
The IP address of the TFTP server from which the file is to be downloaded.
Valid values: any valid IP address.
<file_name>
The name of the binary file to be downloaed. The filename contains the complete path
in the TFPT server. The file must be a valid image file for the DSL router.
Valid values: String of up to 128 characters.
EXAMPLES
A simple TFTP download setup.
dltftp 192.168.1.2 bcm96345R_fs_kernel

DNSRELAY
NAME
dnsrelay allow a user to configure or show the DNS relay data
SYNOPSIS
dnsrelay config auto
dnsrelay config static <primary DNS> [<secondary DNS>]
dnsrelay show
dnsrelay --help
DESCRIPTION
dnsrelay is used to configure, or show the DNS relay data. This utility can:
configure the DNS relay with the given data.
show the DNS relay configuration data.
display usage.
All information is displayed to stdout. A program or shell script that calls this utility
can redirect stdout to a file and then parse the file in order to interpret the displayed
output.
COMMANDS
config
configure the DNS relay with the given data. Notice: the command only saves the
configuration data to the flash, and does not take effect until the system is rebooted.
show
show the DNS relay configuration data.
--help
display usage.
OPTIONS
Options for the config auto command
dnsrelay config auto
Options for the config static command
dnsrelay config static <primary DNS> [<secondary DNS>]
<primary DNS>
The IP address of the primary DNS server.
Valid values: any valid IP address.
[<secondary DNS>]
The IP address of the secondary DNS server. Its optional and can be omitted.
Valid values: any valid IP address.
Options for the show command
dnsrelay show
Options for the --help command
dnsrelay help
EXAMPLES
An auto DNS configuration.
dnsrelay config auto
A static DNS configuration without secondary DNS.
dnsrelay config static 10.6.33.1
A static DNS configuration with secondary DNS.
dnsrelay config static 10.6.33.1 10.6.33.2
Display DNS relay configuration data.
dnsrelay show
Primary 10.6.33.1
Secondary 10.6.33.2
Display usage.
dnsrelay --help

Usage: dnsrelay config auto

Usage: dnsrelay config static <primary DNS> [<secondary DNS>]
dnsrelay show
dnsrelay --help

ECHO
NAME
echo display a line of text or an environment variables value
SYNOPSIS
echo [OPTION]... [STRING]...
DESCRIPTION
echo displays a line of text, or an environment variables value. Notice that ls
command is not supported in the CLI. Echo can be used to display files and
subdirectories using wildcard *.
COMMANDS
None.
OPTIONS
-n suppress trailing newline -e interpret backslash-escaped characters (i.e., \t=tab) -E
disable interpretation of backslash-escaped characters
EXAMPLES
Display a string
echo Hello, world
Display the vaule of the environment variable $TERM
echo $TERM
Display all files or subdirectories
echo /etc/*
echo *
echo /var/*

HELP
NAME
help list all of available CLI commands that the DSL router supports
SYNOPSIS
Help | ?
DESCRIPTION
list all of available CLI commands that the DSL router supports.
OPTIONS
None
EXAMPLES
An example is shown.
?
help
logout
reboot
adsl
atm
brctl
cat
df
dltftp
echo
ifconfig
kill
arp
defaultgateway
dhcpserver
dnsrelay
lan
passwd
ppp
remoteaccess
restoredefault
route
save
swversion
wan
ping
ps
pwd
sysinfo
traceroute

IFCONFIG
NAME
ifconfig configure a network interface
SYNOPSIS
ifconfig [interface] ifconfig interface [aftype] options | address ...
DESCRIPTION
Ifconfig is used to configure the kernel-resident network interfaces. It is used at boot
time to set up interfaces as necessary. After that, it is usually only needed when
debugging or when system tuning is needed.
If no arguments are given, ifconfig displays the status of the currently active
interfaces. If a single interface argument is given, it displays the status of the given
interface only; if a single -a argument is given, it displays the status of all interfaces,
even those that are down. Otherwise, it configures an interface.
COMMANDS
None.
OPTIONS
interface
The name of the interface. This is usually a driver name followed by a unit number,
for example eth0 for the first Ethernet interface.
address
The IP address to be assigned to this interface.
up
This flag causes the interface to be activated. It is implicitly specified if an address is
assigned to the interface.
down
This flag causes the driver for this interface to be shut down.
[-]arp
Enable or disable the use of the ARP protocol on this interface.
[-]promisc
Enable or disable the promiscuous mode of the interface. If selected, all packets on the
network will be received by the interface.
[-]allmulti
Enable or disable all-multicast mode. If selected, all multicast packets on the network
will be received by the interface.
metric N
This parameter sets the interface metric.
mtu N
This parameter sets the Maximum Transfer Unit (MTU) of an interface.
dstaddr addr
Set the remote IP address for a point-to-point link (such as PPP). This keyword is now
obsolete; use the pointopoint keyword instead.
netmask addr
Set the IP network mask for this interface. This value defaults to the usual class A, B
or C network mask (as derived from the interface IP address), but it can be set to any
value.
irq addr
Set the interrupt line used by this device. Not all devices can dynamically change their
IRQ setting.
io_addr addr
Set the start address in I/O space for this device.
mem_start addr
Set the start address for shared memory used by this device. Only a few devices need
this.
[-]broadcast [addr]
If the address argument is given, set the protocol broadcast address for this interface.
Otherwise, set (or clear) the IFF_BROADCAST flag for the interface.
[-]pointopoint [addr]
This keyword enables the point-to-point mode of an interface, meaning that it is a
direct link between two machines with nobody else listening on it. If the address
argument is also given, set the protocol address of the other side of the link, just like
the obsolete dstaddr keyword does. Otherwise, set or clear the IFF_POINTOPOINT
flag for the interface.
[-]trailers
Set or clear the IFF_NOTRAILERS flag for the interface.
[-]dynamic
Set or clear the IFF_DYNAMIC flag for the interface.
hw class address
Set the hardware address of this interface, if the device driver supports this operation.
The keyword must be followed by the name of the hardware class and the printable
ASCII equivalent of the hardware address. Hardware classes currently supported
include ether (Ethernet) only.
multicast
Set the multicast flag on the interface. This should not normally be needed as the
drivers set the flag correctly themselves.
outfill N
This parameter sets the interface outfill timeout.
keepalive N
This parameter sets the interface keepalive timeout.
txqueuelen length
Set the length of the transmit queue of the device. It is useful to set this to small
values for slower devices with a high latency (modem links, ISDN) to prevent fast
bulk transfers from disturbing interactive traffic like telnet too much.
EXAMPLES
Display all the active interfaces
ifconfig
Set interface eth0s IP address to be 192.168.1.1, netmask to be 255.255.255.0
ifconfig eth0 192.168.1.1 netmask 255.255.255.0

KILL
NAME
kill send a signal to the specified process(es)
SYNOPSIS
kill [ -signal ] pid ...
kill -l [ signal ]
DESCRIPTION
kill sends the specified signal to the specified process or process group. If no signal is
specified, the TERM signal is sent. The TERM signal will kill processes which do not
catch this signal. For other processes, it may be necessary to use the KILL (9) signal,
since this signal cannot be caught.
COMMANDS
None.
OPTIONS
pid...
Specify the list of processes that
kill should signal.
-signal given as a signal name or number.
-l List all signal names and numbers.

EXAMPLES
Terminate the process with pid 120
kill 120
Send KILL signal to the process with pid 120
kill SIGKILL 120
List all signal names and numbers
kill -l

LAN
NAME
lan allow a user to configure the IP layer for the LAN interfaces
SYNOPSIS
lan config [--ipaddr <primary|secondary> <IP address> <subnet mask> ] [--
dhcpserver <enable|disable>]
lan delete ipaddr <primary|secondary>
lan show [<primary|secondary> ]
lan --help
DESCRIPTION
Lan is used to configure the IP layer data for the primary and secondary LAN
interfaces. A LAN interface is a logic interface toward IP stack from the Bridge
module. Both primary and secondary LAN interfaces share the same MAC address
from the physical Ethernet port. This utility can:
Configure the IP address and subnet mask for the primary LAN interface. It can
be either a private or a public IP address.
Configure the IP address and subnet mask for the secondary LAN interface.
NAT is not supported on the secondary LAN interface. Only public IP address
is allowed.
Enable or disable the DHCP server on the primary LAN interface. DHCP
server is not supported on the secondary LAN interface.
Display configuration data for the primary and secondary LAN interfaces.
Display usage.
All information is displayed to stdout. A program or shell script that calls this utility
can redirect stdout to a file and then parse the file in order to interpret the displayed
output.
COMMANDS
config
configure IP layer for the primary or secondary LAN interface.
delete
delete the primary or secondary LAN interface configuration.
show
show configuration data for the primary and secondary LAN interfaces. --help display
usage.
OPTIONS
Options for the config command
lan config [--ipaddr <primary|secondary> <IP address> <subnet mask> ] [--
dhcpserver <enable|disable>]
--ipaddr <primary|secondary> <IP address> <subnet mask>
primary|secondary specify which LAN interface will be configured.
Valid values: primary or secondary.
IP address - The IP address of the LAN interface.
Valid values: any valid IP address.
Default value: 192.168.1.1.
Subnet mask The subnet mask of the LAN interface.
Valid values: 0.0.0.1 - 255.255.255.255.
Default value: 255.255.255.0
--dhcpserver <enable|disable>
enable|disable specify DHCP server should be enabled or disabled. This option is
only valid for the primary LAN interface.
Valid values: enable or disable.
Default value is enable for the primary LAN interface.
Options for the delete command
lan delete --ipaddr <primary|secondary>
--ipaddr <primary|secondary>
primary|secondary specify which LAN interface will be deleted.
Valid values: primary or secondary.
Options for the show command
lan show [<primary|secondary> ]
primary|secondary specify which LAN interface will be shown.
Valid values: primary or secondary.
If it is omitted, all LAN interfaces are displayed.
Options for the --help command
lan --help
EXAMPLES
Configure a primary LAN interface.
lan config ipaddr primary 192.168.1.1 255.255.255.0
Remove a secondary LAN interface.
lan delete ipaddr secondary
Display all LAN interfaces.
lan show
br0 Link encap:Ethernet HWaddr 02:10:18:01:00:01

inet addr:192.168.1.1 Bcast:192.168.1.255
Mask:255.255.255.0

UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1
RX packets:42083 errors:0 dropped:0 overruns:0 frame:0

TX packets:107786 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0

RX bytes:7412118 (7.0 MiB) TX bytes:34445874 (32.8
MiB)

br0:0 Link encap:Ethernet HWaddr 02:10:18:01:00:01

UP BROADCAST RUNNING MULTICAST MTU:1500
Metric:1

Display usage.
lan help
Usage:
lan
config
[--ipaddr <primary|secondary> <IP address>
<subnet mask>]
[--dhcpserver <enable|disable>]

lan
delete
--ipaddr <primary|secondary>

lan
show
[<primary|secondary> ]

lan
help



LOGOUT
NAME
logout log out current user console
SYNOPSIS
logout
DESCRIPTION
logout is used to log out current user console. After logout command is executed, a
bye bye message appears. Hit return to see a new Login prompt.
EXAMPLES
Logout user admin.
Login: admin
Password:
> logout
Bye bye. Have a nice day!!!
Login:

PASSWD
NAME
passwd allow a user to change password
SYNOPSIS
passwd <admin|support|user><password>
DESCRIPTION
passwd is a CLI command used to change password for user account admin, support
or user.
EXAMPLES
Change password for user admin to guest1.
> passwd admin guest1

PING
NAME
ping send ICMP echo requests to target host
SYNOPSIS
Ping [-c <count>] [-s <size>] host
DESCRIPTION
Ping sends out ICMP echo requests over the ICMP protocol to a host on the network.
The default number of the ICMP echo request packets ping sends out is four. To
continually send out packets without stop, use "-c 0" option.
OPTIONS
count
The number of ICMP echo request packets ping command will send out.
size
force the ping to send out ICMP echo request packets with this number of data bytes.
Host
The name or ip address of the target host.
EXAMPLES
Ping -c 8 192.168.0.5
Send eight ICMP echo requests to 192.168.0.5.

ppp
NAME
ppp allow a user to bring up or bring down a ppp connection
SYNOPSIS
ppp config <port.vpi.vci> up|down
DESCRIPTION
ppp is used to control the ppp interfaces. Ppp command brings up the ppp connection
with "up" option, and brings down the connection with "down" option. For ppp
connection in on-demand mode, in addition to the "up" option, traffic to the ppp
interface needs to be initiated to bring the connection up.
<port.vpi.vci>
Port number, VPI and VCI that identifies the VCC where the ppp connection is
established.
EXAMPLES
Bring down the ppp connection on the 0.0.35 VCC.
ppp config 0.0.35 down

PS
NAME
ps report process status
SYNOPSIS
ps
DESCRIPTION
ps gives a snapshot of the current processes. The output consists of six columns:
PID The process ID
TTY
The terminal device the process
attaches to, such as /dev/ttyp0
Uid The user ID of the process owner
Size
The amount of virtual memory taken
by the process (kilobytes)
State
The state of the process. (S-Sleeping,
R-Running, W-Waiting)
Command
The command that launches the
process

COMMANDS
None.
OPTIONS
None.
EXAMPLES
Report process status
ps

PWD
NAME
pwd print name of current working directory
SYNOPSIS
pwd
DESCRIPTION
pwd is a CLI command used to display name of current working directory.
EXAMPLES
To see current working directory.
>pwd
/

REBOOT
NAME
reboot reboot the system
SYNOPSIS
reboot
DESCRIPTION
Reboot the system.
COMMANDS
None.
OPTIONS
None.
EXAMPLES
Reboot the system
reboot

REMOTEACCESS
NAME
remoteaccess allow certain protocols to access the modem from the WAN side
SYNOPSIS
Usage:
remoteaccess
<enable|disable>
remoteaccess show
remoteaccess --help
DESCRIPTION
Remoteaccess sets security level to allow or disallow remote access into the route
using telnet, http, snmp or ping from the WAN side. The options are enable, disable
and show.
EXAMPLES
Show current remote access mode.
>remoteaccess show
remote access is disabled
Enable remote access.
> remoteaccess enable
Disable remote access.
>remoteaccess disable

RESTOREDEFAULT
NAME
restoredefault restore modem configuration to factory defaults
SYNOPSIS
restoredefault
DESCRIPTION
restoredefault is a CLI command used to erase all configurations made by user, and
restore the modem back to factory default configuration. Once this command is
executed, modem reboots automatically with default configuration.
EXAMPLES
Restore configuration to factory defaults.
>restoredefault

ROUTE
NAME
route show / manipulate the IP routing table
SYNOPSIS
route add <ipaddress> <subnetmask> <[<gateway>] [<interface>]>
route delete <ipaddress> <subnetmask>
route show
route --help
DESCRIPTION
route manipulates the IP routing table. Its primary use is to set up static routes to
specific hosts or networks via an interface.
When the add or delete options are used, route modifies the routing tables. Show
option displays the current contents of the routing tables.
Note default gateway route should use another defaultgateway command. If 0.0.0.0
is entered using route add command, it is treated the same as a static default gateway
where a subnetmask must be entered.
COMMANDS
add
add a new route entry
delete
delete a route entry
show
show current content of routing table including static and dynamic route entries
OPTIONS
ipaddress
the destination network or host IP address in dotted decimal notation.
subnetmask
when adding a network route, the netmask must be specified. Target address must
have zero matching with the zero portion in NM. Otherwise, command will fail and
display message netmask doesn't match route address
gateway
route packets via a gateway.
NOTE: The specified gateway must be reachable first. This usually means that you
have to set up a static route to the gateway beforehand. If you specify the address of
one of your local interfaces, it will be used to decide about the interface to which the
packets should be routed to.
interface
force the route to be associated with the specified device, as the kernel will otherwise
try to determine the device on its own by checking already existing routes and
devices.
EXAMPLES
add a route to the network 192.56.76.x via "br0" interface.
route add 192.56.76.0 255.255.255.0 br0
add route to the gateway 10.6.33.129 for network 192.57.66.x.
route add 192.57.66.0 255.255.255.0 10.6.33.129
OUTPUT
The output of the kernel routing table is organized in the following columns
Destination
The destination network or destination host.
Gateway
The gateway address or * if none set.
Genmask
The netmask for the destination net; 255.255.255.255 for a host destination and
0.0.0.0 for the default route.
Flags Possible flags include
U (route is up)
H (target is a host)
G (use gateway)
R (reinstate route for dynamic routing)
D (dynamically installed by daemon or redirect)
M (modified from routing daemon or redirect)
FILES
/proc/net/route /proc/net/rt_cache

SAVE
NAME
save save current configuration to Permanent Storage on the flash memory
SYNOPSIS
save
DESCRIPTION
save is a CLI command used to save current configuration to flash.
EXAMPLES
Save all current configuration to flash. >save

SWVERSION
NAME
swversion display current running software version
SYNOPSIS
swversion show
DESCRIPTION
swversion is a CLI command used to view the current running software version.
EXAMPLES
Display current software version.
> swversion show
2.12L.01.a0_23a

SYSINFO
NAME
sysinfo display the general system information
SYNOPSIS
sysinfo
DESCRIPTION
sysinfo displays the number of processes in the system, system time, system uptime,
the average system load in the past 1, 5 and 15 minutes, and the system memory
consumption. The figures in the memory consumption table are in 1kb unit.
COMMANDS
None.
OPTIONS
None.
EXAMPLES
Display the system information
sysinfo

TOP
NAME
top display the system and processes information periodically
SYNOPSIS
top [-d <seconds>]
DESCRIPTION
top provides an view of processor activity and system information in real time. This
utility reads the status for all processes in /proc each and shows the status for however
many processes will fit on the screen. This utility will not show processes that are
started after program startup, but it will show the EXIT status for and PIDs that exit
while it is running. Typing q or CTRL+C will stop top
. COMMANDS
None.
OPTIONS
-d <seconds> setup the information update time interval
EXAMPLES
Display the system and process information every 5 seconds
top d 5

TRACEROUTE
NAME
traceroute print the route packets take to network host SYNOPSIS traceroute [-dnrv]
[-m max_ttl] [-p port#] [-q nqueries] [-s src_addr] [-t tos] [-w wait] host [data size]
DESCRIPTION
Traceroute utilizes the IP protocol `time to live' field and attempts to elicit an ICMP
TIME_EXCEEDED response from each gateway along the path to some host.
COMMANDS
None.
OPTIONS
-d set SO_DEBUG options to socket
-d
Print hop addresses numerically rather
than symbolically
-r
Bypass the normal routing tables and
send directly to a host
-v Verbose output
-m
max_ttl
Set the max time-to-live (max number
of hops)
-p port#
Set the base UDP port number used in
probes
(default is 33434)
-q
nqueries
Set the number of probes per ``ttl'' to
nqueries
(default is 3)
-s
src_addr
Use the following IP address as the
source address
-t tos
Set the type-of-service in probe
packets to the following value
(default 0)
-w wait
Set the time (in seconds) to wait for a
response to a probe
(default 3 sec.)

EXAMPLES
Trace the route to www.yahoo.com traceroute
www.yahoo.com

WAN
NAME
wan allow a user to configure the WAN interfaces for the DSL router
SYNOPSIS
wan config
[--protocol <bridge|pppoe|pppoa|mer|ipoa>] [--encap <llc|vcmux>]
[--state <enable|diasble> ] [--service <servicename>]
[--firewall <enable|diasble>] [--nat <enable|diasble>]
[--username <username> --password <password>]
[--pppidletimeout <timeout>] [--pppipextension <disable|enable> ]
[--ipaddr <wanipaddress> <wansubnetmask>]
[--dhcpclient <enable|disable>]
wan delete <port.vpi.vci>
wan show [port.vpi.vci>]
wan --help <bridge|pppoe|pppoa|mer|ipoa>
DESCRIPTION
wan is used to configure the networking protocols for each WAN interface. Currently
each WAN interface occupies one ATM PVC. It does not support multiple PPPoE
sessions on one ATM PVC. Before using this command, the ATM PVC of which the
WAN interface is based on, must be configured first by using the atm command. This
command can:
configure the protocol, encapsulation mode over ATM PVC, state, service
name for each WAN interface.
configure the username, password, idle timeout, and PPP IP extension for a
PPPoE or a PPPoA interface.
configure the IP address and subnet mask for a MER or a IPoA interface.
enabling NAT or firewall for a MER or IPoA interface.
enable or disable the DHCP client for a MER interface.
delete the existed WAN interface (it will not delete the ATM PVC).
show ATM PVC and WAN interface summary data and status.
display usage for WAN interface.
All information is displayed to stdout. A program or shell script that calls this utility
can redirect stdout to a file and then parse the file in order to interpret the displayed
output. Note that special characters are supported in all options of character string
type.
COMMANDS
config
configure the WAN interface for the DSL router. Notice: the command only saves the
configuration data to the flash, and does not take effect until the system is rebooted.
delete
remove the existed WAN interface. Notice: the command only saves the configuration
data to the flash, and does not take effect until the system is rebooted.
show
show ATM PVC VPI/VCI, service category, WAN interface service name, WAN
interface name, WAN protocol, WAN interface service state, WAN interface up/down
status, and WAN IP address.
--help
display usage for WAN interface.
OPTIONS
Options for the config command
wan config <port.vpi.vci>
[--protocol <bridge|pppoe|pppoa|mer|ipoa>] [--encap <llc|vcmux>]
[--state <enable|disable>] [--service <servicename>]
[--firewall <enable|disable>] [--nat <enable|disable>]
[--username <username> --password <password>]
[--pppidletimeout <timeout>] [--pppipextension <enable|disable>]
[--ipaddr <wanipaddress> <wansubnetmask>]
[--dhcpclient <enable|disable>]
<port.vpi.vci>
port: port number of the ATM VCC to add.
Valid values: 0.
vpi: VPI of the VCC to add.
Valid values: 0 - 255.
Default value: 0
Vci: VCI of the VCC to add.
Valid values: 32 - 65535.
Default value: 35.
--protocol <bridge|pppoe|pppoa|mer|ipoa>
The protocol of the WAN interface.
Valid values: bridge, pppoe, pppoa, mer, or ipoa.
Default value: bridge.
--encap <llc|vcmux>
The encapsulation type over the ATM PVC.
Valid values: llc or vcmux.
llc -
For mer, pppoe or bridge, its RFC2684 bridged encapsulation
For pppoa, its RFC2364 LLC/NLPID encapsulation
Vcmux - RFC2684 VC-MUX (null encapsulation).
Default value:
llc for bridge, pppoe, mer, or ipoa.
Vcmux for pppoa.
--state <enable|disable>
The service state of the WAN interface.
Valid values: enable or disable.
Default value: enable.
--service <servicename>
The service name of the WAN interface.
Valid values: strings of 32 characters.
Default value: __.
--firewall <enable|disable>
The firewall state of the MER or IPoA interface.
Notice that firewall is always enabled on a PPPoE or a PPPoA interface.
Valid values: enable or disable.
Default value: enable.
--nat <enable|disable>
The NAT state of the MER or IPoA interface.
Notice that NAT is always enabled on a PPPoE or a PPPoA interface.
Valid values: enable or disable.
Default value: enable.
--username <username>
The login name of the PPPoE or PPPoA interface.
This option is only applied to a PPPoE or PPPoA interface.
The -password option is also needed when this option is used.
Valid values: string of 32 characters.
--password <password>
The password of the PPPoE or PPPoA interface.
This option is only applied to a PPPoE or PPPoA interface.
The -username option is also needed when this option is used.
Valid values: string of 256 characters.
--pppidletimeout <timeout>
The PPP timeout of a PPPoE or PPPoA interface.
This option is only applied to a PPPoE or PPPoA interface.
Valid values: 0 1090 (minutes).
0: PPP connection is always-on.
Greater than 0: WAN traffic will be monitored and PPP connection will be torn down
when there is no user data activity over the WAN interface for more than this idle
time period.
Default value: 30 minutes.
--pppipextension <enable|disable>
The PPP IP extension mode of a PPPoE or PPPoA interface.
This option is only applied to a PPPoE or PPPoA interface.
Valid values: disable or enable.
Default value: disable.
--ipaddr <wanipaddress> <wansubnetmask>
The WAN IP address and WAN subnet mask of a MER or IPoA interface.
This option should only be used for a MER or IPoA interface. PPPoE and PPPoA
interface always receives the IP address, submask and DNS addresses automatically
from the ISP through the PPP protocol. If this option is used and the dhcpclient value
is enable, DHCP client will be disabled on this interface. In general principle, static
configuration overwrites dynamically assigned data.
<wanipaddress> - the WAN IP address.
Valid values: any valid IP address.
<wansubnetmask> - the WAN subnet mask.
Valid values: 0.0.0.1 - 255.255.255.255.
--dhcpclient <enable|disable>
The DHCP client state of the MER interface. This option is only valid to a MER
interface. DHCP client is not supported over any other type of WAN interface.
Valid values: enable or disable.
Default value: enable.
Options for the delete command
wan delete <port.vpi.vci>
<port.vpi.vci>
port: port number of the VCC to add.
Valid values: 0.
vpi: VPI of the VCC to add.
Valid values: 0 - 255.
Default value: 0
vci: VCI of the VCC to add.
Valid values: 32 - 65535.
Default value: 35.
Options for the show command
wan show [<port.vpi.vci>]
<port.vpi.vci>
port: port number of the VCC to add.
Valid values: 0.
vpi: VPI of the VCC to add.
Valid values: 0 - 255.
Default value: 0
vci: VCI of the VCC to add.
Valid values: 32 - 65535.
Default value: 35
If <port.vpi.vci> is obmitted then it will display summary state of all existing WAN
interfaces. Notice, configuration needs to be saved to the Permanent Storage first and
then become effective after reboot. The wan show command shows the WAN
interfaces after reboot, the second stage.
Options for the --help command
wan help [<bridge|pppoe|pppoa|mer|ipoa>]
<bridge|pppoe|pppoa|mer|ipoa>
Display only valid options for the specified protocol.
If it is obmitted then the help for all protocols is diplayed.
EXAMPLES
Configure a PPPoE interface
wan config 0.0.35 -protocol pppoe -username username -password
password -encap llc
Configure a PPPoA interface
wan config 0.0.36 -protocol pppoa -username username -password
password -encap vcmux
Configure a MER configuration using DHCP client
wan config 0.0.37 -protocol mer -encap llc
Configure a MER configuration using static WAN address
wan config 0.0.37 -protocol mer -encap llc -ipaddr 10.6.33.163
255.255.255.0
Configure a IPoA configuration without fireware, without NAT
wan config 0.0.40 -protocol ipoa -encap llc -firewall disable -nat disable
-ipaddr 10.6.33.227 255.255.255.0
Configure a bridge configuration
wan config 0.2.35
Remove a WAN interface
wan delete 0.2.35
Display all WAN interfaces
wan show
VCC Catego. Service Name
Intf.
Name
Proto. State Status IP address
===============================================================
=============
0.0.35 UBR pppoe_0_35 ppp33 PPPoE Enable Up 10.6.33.143
0.0.36 UBR pppoa_0_36 ppp42 PPPoA Enable Up 10.6.33.152
0.0.37 UBR mer_0_37 nas27 MER Enable Up 10.6.33.193
0.0.40 UBR ipoa_0_40 atm52 IPoA Enable Up 10.6.33.227
===============================================================
=============
Display usage for all protocols

wan help

Usage: wan config <port.vpi.vci>
[--protocol <bridge|pppoe|pppoa|mer|ipoa>] [--encap <llc|vcmux>]
[--state <enable|disable>] [--service <servicename>]
[--firewall <enable|disable>] [--nat <enable|disable>]
[--username <username> --password <password>]
[--pppidletimeout <timeout>] [--pppipextension <disable|enable>]
[--ipaddr <wanipaddress> <wansubnetmask>
[dhcpclient <enable|disable>]
wan delete <port.vpi.vci>
wan show [<port.vpi.vci>]
wan --help <bridge|pppoe|pppoa|mer|ipoa>
Display usage for bridge

wan help bridge

Usage: wan config <port.vpi.vci>
[--protocol <bridge|pppoe|pppoa|mer|ipoa>] [--encap <llc|vcmux>]
[--state <enable|disable>] [--service <servicename>]
wan delete <port.vpi.vci>
wan show [<port.vpi.vci>]
wan --help <bridge|pppoe|pppoa|mer|ipoa>

You might also like