DV-201AMR CLI Reference Guide
DV-201AMR CLI Reference Guide
1-1
DV-201AMR/AM
1-2
CLI Reference Guide
CONTENTS
1 LOGOUT............................................................................................................................... 5
2 REBOOT ............................................................................................................................... 5
3 ADSL..................................................................................................................................... 6
4 ADSLCTL ........................................................................................................................... 10
5 ATM .................................................................................................................................... 10
6 BRCTL ................................................................................................................................ 15
7 CAT ..................................................................................................................................... 17
8 DF........................................................................................................................................ 18
9 DUMPCFG.......................................................................................................................... 18
10 ECHO .................................................................................................................................. 20
11 IFCONFIG........................................................................................................................... 21
12 KILL.................................................................................................................................... 23
13 ARP ..................................................................................................................................... 24
14 DEFAULT GATEWAY...................................................................................................... 25
15 DHCPSERVER ................................................................................................................... 26
16 DNS ..................................................................................................................................... 28
17 LAN..................................................................................................................................... 29
18 PASSWD............................................................................................................................. 31
19 PPP ...................................................................................................................................... 32
20 REMOTEACCESS.............................................................................................................. 32
21 RESTOREDEFAULT ......................................................................................................... 33
22 ROUTE................................................................................................................................ 34
23 SAVE................................................................................................................................... 35
24 SWVERSION...................................................................................................................... 35
25 WAN ................................................................................................................................... 36
26 PING.................................................................................................................................... 42
27 PS ........................................................................................................................................ 42
28 PWD .................................................................................................................................... 43
29 SNTP ................................................................................................................................... 43
30 SYSINFO ............................................................................................................................ 43
31 Voice ................................................................................................................................... 44
32 Voice Debugging................................................................................................................. 46
33 IGMP ................................................................................................................................... 47
1-3
DV-201AMR/AM
1-4
CLI Reference Guide
1 LOGOUT
SYNOPSIS
logout
DESCRIPTION
Logout is used to log out current user console. After the logout command is executed,
a bye-bye message appears. Hit return to see a new Login prompt.
EXAMPLES
Login: admin
Password:
> logout
Bye bye. Have a nice day!!!
Login:
2 REBOOT
SYNOPSIS
reboot
DESCRIPTION
EXAMPLES
reboot
1-5
DV-201AMR/AM
3 ADSL
SYNOPSIS
DESCRIPTION
All information is displayed to stdou. 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 ADSL driver. This command calls Adsl_Initialize to initialize the driver
and Adsl_ConnectionStart to start ADSL PHY connection if [--up] is specified. This
command takes parameters that can specfiy various connection modes. These
parameters are the same as in "configure" command.
stop
Stops ADSL connection and ADSL driver. this commmand calls Adsl_Uninitialize.
configure
Configures ASDL connection parameters. These command takes the same
parameters as "start" command except for [--up]. This command will cause ADSL
PHY to retrain.
1-6
CLI Reference Guide
connection
Controls ADSL connection modes,such as up down several special test modes.
this command can also be used to specify tone selection for upstream and
downstraem.
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.
ADSL Options
adsl start [--up] [--mod <a|d|l|t>] [--lpair < (i)inner|(o)uter>][--bm < (D)BM|(F)BM>] [-
-ccw]
adsl configure [--mod <a|d|l|t> [--lpair <(i)nner|(o)uter>]
up
Will call Adsl_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 optons apply to Annex C only:
bm<(D)BM|(F)BM>
(D)BM-DBM mode
(F)BM-FBM mode
ccw
Enables special CRC work-around for Centillium modems
STOP Command
adsl stop
1-7
DV-201AMR/AM
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.
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
1-8
CLI Reference Guide
explicitly. Defualt tone configuration(all tones enabled)will be set by
Bert command
adsl bert [--start <seconds>] [--stop] [--show]
start
start Bit Error Rate Test(BERT)
second - duration of BERT test in seconds
stop
Stops the BERT test
show
Display BERT results to stdout in the following format:
BERT Status indicates whether or not 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 error bits are displayed as 64-bit hexadecimal numbers.
Info Command
adsl info [--state] [--show] [--state] [--reset]
state
Displays the shortest message about ADSL PHY connection state.
Examples:
adsl:ADSL driver and PHY status
Status: Showtime Channel: FAST, Upstream rate=8064Kbps, Downstream
rate=1024kbps
show
Displays more statics about ADSL connection.
stats
Displayes all available statistics about ADSL connection.
reset
1-9
DV-201AMR/AM
4 ADSLCTL
SYNOPSIS
5 ATM
SYNOPSIS
DESCRIPTION
ATM is used to control the Broadcom BCM63xx ADSL driver.this utilily can:
All information is displayed to stdout. A program or shell script that calls this utility can
redirecct stdout to a file and then parse the file in order to interpret the displayed
output.
1-10
CLI Reference Guide
start
starts the ATM driver. this commands calls Atm_Initialize the driver and
Atm_SetTrafficDescrTable to add one UBR traffic descripter table entry.
stop
Stops the Broadcom ATM driver. This command calls Bcm_Atm_Uninitialize.
operate
Operate on traffic descriptor table entries,ATM interface and VCCs.
ATM Options
Start Commands
atm start [--cqs <size>] [--pqs <size>] [--bs <size>] [--bo <offset>] [--intf <port>
<adsl|loopback|utopia|tc> <address>]
cqs <size>
size- Size used to create the Free and Receive cell queues.Default 10.
pqs<size>
size- Size used to create the Free and Receive packet queues. Default 200
bs <size>
size- Size of Buffer used in the Free and Receive packet queues. Default 1600
bo <offsets>
offsets - Offset into a receive buffer where data is to be received. Default 32
More than one intf opton can be specified to configure multilple ports.
If no intf option is specified, the default is 0, adsl,0.
Stop Command
atm stop
1-11
DV-201AMR/AM
delete <index>
index - traffic descriptor table entry index to delte. The show option displays the
urrent index values
show [<index>]
index - Traffic descriptor tabel entry index to display information about. If index is
omiited, all traffic desciiptor talble entries are displayed.
show[<port>] [reset]
port - Port number starting at 0 to display statistics for.
reset - Resets statistics fields.
If port is omitted, statistics are dispalyed for all configured ports.
port.vpi.vci - Port number , VPi and VCI that identifies the VCC to add.
type - aal5|aal2|aa0pkt|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- cmux_routed|vcmux_bridged8023|llcencaps|other|unknown
delete <port.vpi.vci>
port.vpi.vci- Port number, VPI and VCI that identiies the VCC to delete.
1-12
CLI Reference Guide
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
EXAMPLES
z A simple initialization.
atm start
atm operate vcc --add 0.0.35 aal5 1 vcmux_bridgeed8023
1-13
DV-201AMR/AM
0 enabled adsl
z 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
atm operate vcc --add 0.0.36 aal5 1 vcmux_routed --addq 0.0.36 128 1
1-14
CLI Reference Guide
in octets 44064
out octets 19536
in total errors 0
in unknown 0
in hec errors 0
in invalid vpi vci errors 0
in port not enabled errors 0
in pti errors 0
in circuit type errors 0
in oam rm crc errors 0
in gfc errors 0
6 BRCTL
SYNOPSIS
brctl [command]
DESCRIPTION
Brctl is used to set up. Maintain. And inspect the bridge configuration.
Each connected network 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>
1-15
DV-201AMR/AM
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 correspondin to
the brdge must be down before it con be deleted.
Show< bridge>
Shows the instance<bridge>of the bridge.
addif <bridge><device>
Makes the interface<device> a port of the bridge <bridge>. This means that all
frames received on <device> will be processed as if destined for the bridge. Also,
when sending frames on<bridge>,<device> will be considered as a potential output
interface.
showmacs <bridge>
Shows a list of leamed MAC addresses for this bridge.
showstp <bridge>
Shows the STP(Spanning Tree Protocol) status of this 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.
1-16
CLI Reference Guide
EXAMPLES
z Display all the learned MAC addresses on br0
Brct1 showmacs br0
z Set the ageing timervalue to be 400 seconds on br0
Brct1 setageing br0 400
z Turn off STP
Brct1 stp br0 off
7 CAT
SYNOPSIS
cat [FILE]…
DESCRIPTION
Concatenates FILE(S) and prints them to atandard output.
EXAMPLES
z Display system memory information
Cat/proc/meminfo
1-17
DV-201AMR/AM
8 DF
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 file system is shown. Disk space is shown in 1-KB blocks by default.
OPTION
-h Print sizes in human readable format (for example, 1K 243M 2G)
-m Print sizes in megabytes
-k Print sizes in kilobytes(default)
EXAMPLES
z Display the space available on all the mounted file systems.
df
z Display the space available on the flash root file system.
df /dev/mtdblock0
9 DUMPCFG
SYNOPSIS
dumpcfg
EXAMPLES
> dumpcfg
<psitree>
<ADSL/>
<AtmCfg>
<initCfg structureId="2" threadPriority="25" freeCellQSize="10" freePktQSize="20
0" freePktQBufSize="1600" freePktQBufOffset="32" rxCellQSize="10"
rxPktQSize="20
0" txFifoPriority="64" aal5MaxSduLen="64" aal2MaxSduLen="0"/>
</AtmCfg>
<AtmCfgTd>
<td1 cat="UBR" PCR="0" SCR="0" MBS="0"/>
</AtmCfgTd>
1-18
CLI Reference Guide
<AtmCfgVcc/>
<SecCfg>
<srvCtrlList ftp="enable" http="lan" icmp="lan" snmp="lan" ssh="lan" telnet="lan
" tftp="lan"/>
</SecCfg>
<Lan>
<entry1 address="192.168.1.1" mask="255.255.255.0" dhcpServer="enable"
leasedTim
e="24" startAddr="192.168.1.2" endAddr="192.168.1.254"/>
</Lan>
<WirelessCfg>
<vars state="enabled" hide="0" ssId="DV201AM" country="ALL" authMode="open"
radi
usServerIP="0.0.0.0"radiusServerPort="1812"radiusServerKey="" wep="disabled"
k
eyBit="128-bit" key64_1="" key64_2="" key64_3="" key64_4="" key64Index="1"
key12
8_1="" key128_2="" key128_3="" key128_4="" key128Index="1"
wpaRekey="0" wpak
ey="" wpa="tkip"fltMacMode="disabled"apMode="ap" bridgeRestrict="disabled"
wdsMAC_0=""wdsMAC_1=""wdsMAC_2=""wdsMAC_3=""apIsolation="off"
band="b"
channel="11" rate="auto" multicastRate="auto" basicRate="default"
fragThreshold=
"2346" RTSThreshold="2347" DTIM="1" beacon="100" XPress="off" gMode="auto"
gProt
ection="auto" preamble="long" AfterBurner="off" WME="off" WMENoAck="off"
Preauth
entication="off" ReauthTimeout="36000"/>
</WirelessCfg>
<SystemInfo>
<sysLog state="enable" displayLevel="ERR" logLevel="DEBUG" option="local"
server
IP="0.0.0.0" serverPort="514"/>
<snmp state="disable" readCommunity="public" writeCommunity="private"
sysName="D
V201AMR" sysLocation="unknown" sysContact="unknown" trapIP="0.0.0.0"/>
<sysUserName value="admin"/>
</SystemInfo>
<RouteCfg>
<ripGlobal state="disable" ripIfcTableSize="1"/>
<ripIfc tableSize="1">
<ripIfcEntry id="1" name="br0" state="disable" version="2" operation="active"/>
</ripIfc>
<route tableSize="1">
1-19
DV-201AMR/AM
10 ECHO
SYNOPSIS
echo [OPTION]…[STRING]…
DESCRIPTION
ECHO displays a line of text or an environment variable’s value.
Note : The “Is” command is not supported in the CLI. Echo can be used to display
files and subdirectories using wildcard.
OPTIONS
-n Suppress trailing newline
-e Interpret backslash –escaped characters (for example, \t=tab)
-E Disable interpretation of backslash –escaped characters.
EXAMPLES
z Display a string
echo “Hello, world”
z Display the value of the environment variable $TERM
echo $TERM
z Display all files or subdirectories
echo /etc/*
1-20
CLI Reference Guide
echo *
echo /var/*
11 IFCONFIG
SYNOPSIS
ifconfig [interface]
ifconfig interface [aftype] option | 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.
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.
1-21
DV-201AMR/AM
[-]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 keyworld is
now obsolete. USE the pointopoint keyword instead.
Netmask addr
Set the IP network mask for this interface. This value defaults to the usual dass
A,B or C network mask (as derived from the interface IP address), but it can be
setto 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 address in I/O space for 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 keyworld 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
argumentis also given, set the protocol address of the other side of the link, just
like the obsolete dstaddr keyworld does. Otherwise, set or clear the
IFF_POINTOPTIONT 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.
1-22
CLI Reference Guide
Hw class address
Set the hardware address of this interfacem, if the device driver supports this
operation. The keyworld 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.
Multicase
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 set the interface outfill timeout
Keepalive
This parameter sets the interface keepalive timeout.
Txqueuelen length
Set the length of the transmit queue of the devive. 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 linke telnet too much.
EXAMPLES
z display all the active interfaces.
Ifconfig
z Set interface eth0’s IP address be 192.168.1.1, netmask to be 255.255.255.0
Ifconfig eth0 192.168.1.1 netmask 255.255.255.0
12 KILL
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.
OPTION
1-23
DV-201AMR/AM
EXAMPLES
z Terminate the process with pid 120.
kill 120
z Send KILL signal to the process with pid 120.
kill – SIGKILL 120
z List all signal names and numbers.
kill -1
13 ARP
SYNOPSIS
arp add <IP address><MAC address>
arp delete <IP address>
arp show
arp – -help
DESCRIPTION
Arp is used to manipulate modem’s 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
z Add a static ARP entry for IP address 192.168.1.2 whith MAC address
00:11:22:33:44:55
arp add 192.168.1.2. 00:11:22:33:44:55
1-24
CLI Reference Guide
14 DEFAULT GATEWAY
SYNOPSIS
defaultgateway config auto
defaultgateway config static [<ipaddress>] [<interface>]
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 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 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 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.
COMMANDS
ipaddress
The IP address of the default gateway in dotted decimal.
Interface
Forces 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
z Enalble the system to retrieve the default gateway information
automaticallyfrom the remote DHCP server when system starts. The system
needs to be rebooted for modified configuration to take effect.
1-25
DV-201AMR/AM
15 DHCPSERVER
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 :
All information is displayed to stdout. A program or shell script that calls this utility can
redirect stdount to a file and then pares the file to interpret the displayed output.
COMMANDS
z config
Configure the DHCP server with the given data.
Note : The command saves the configuration data to the flash but does not take
effect until the system is rebooted.
z show
Shows the DHCP server configuration data.
z help
Display usage.
OPTIONS
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
1-26
CLI Reference Guide
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
greater 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 dient in case
the dient does not request for the specific lease period itself.
Valid values : 0-8760
Default value : 24 hours (this equals a day)
Show Command
dhcpserver show
Help Command
dhcpserver -- help
EXAMPLES
z Configure DHCP server.
dhcpserver config 192.168.1.2 192.168.1.254 24
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
z Display usage.
dhcpserver - -help
1-27
DV-201AMR/AM
16 DNS
SYNOPSIS
dns config static <primary DNS> [<secondary DNS>]
dns show
dns – -help
DESCRIPTION
DNS is used to configure, or show the DNS relay data. This utility can :
All information is displayed to stdout. A program or shell script that calls this utility can
redirect stdount to a file and then pares the file to interpret the displayed output.
COMMANDS
z config
Configure the DNS relay with the given data.
Note : The command saves the configuration data to the flash but does not take
effect until the system is rebooted.
z show
Shows the DNS relay configuration data.
z help
Display usage.
OPTIONS
Config Static Command
dns config static <primary DNS> [<secondary DNS>]
<primary DNS>
The IP address of the primary DNS server.
Valid calues: any valid IP address
<secondary DNS>
The IP address of the primary DNS server.
Valid calues: any valid IP address
1-28
CLI Reference Guide
Show Command
dns show
--Help Command
dns --help
EXAMPLES
z Static DNS configuration without secondary DNS
dns config static 10.6.33.1
Primary 10.6.33.1
Secondary 10.6.33.2
17 LAN
LAN allows 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:
z Configure the IP address and subnet mask for the primary LAN interface. It can
be either a private or a public IP address.
z 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.
z Enable or disable the DHCP server on the primary LAN interface. DHCP server
is not supported on the secondary LAN interface.
1-29
DV-201AMR/AM
z Display configuration data for the primary and secondary LAN interfaces.
z 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.
-- help Display usage.
OPTIONS
Config command
lan config[- -ipaddr<primary|secondary><IP address><subnet mask>] [--
dhcpserver<enable|disable>]
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 werver should be enabled or disabled. This option is only valid for
the primary LAN interface.
Valid values : enable or disable
Default value is enabled for the primary LAN interface.
Delete Command
lan delete -- ipaddr <primary|secondary> --ipaddr<primary|secondary>
1-30
CLI Reference Guide
Valid values : primary or secondary.
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.
HELP Command
lan –help
EXAMPLES
z Configure a primary LAN interface.
lan config –ipaddr primary 192.168.1.1 255.255.255.0
z 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
18 PASSWD
SYNOPSIS
1-31
DV-201AMR/AM
DESCRIPTION
PASSWD is CLI command used to change password for use account admin, support
or use.
EXAMPLES
z Change password for user admin to broadcom
passwd admin admin
19 PPP
SYNOPSIS
ppp config <port.vpi.vci> up|down
DESCRIPTION
PPP is used to control the ppp interfaces. The PPP command brings up the PPP
connection with the up option and brings down the connection with down option. For a
PP connection with the up option and brings down the connection with down option.
For a 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
z Bring down the PPP connection on the 0.0.35 VCC.
ppp config 0.0.35 down
20 REMOTEACCESS
REMOTEACCESS allows certain protocols to access the modem from the WAN side.
SYNOPSIS
remoteaccess <enable|disable>
remoteaccess show
remoteaccess - -help
DESCRIPTION
REMOTEACCESS sets security level to allow or disallow remote access into the
1-32
CLI Reference Guide
route using telent, http, snmp or ping from the WAN side. The options are enable,
disable and show.
EXAMPLES
z Show current remote access mode.
> remoteaccess show
remote access is disabled
z Enable remote access.
> remoteaccess enable
z Disable remote access.
> remoteaccess disable
21 RESTOREDEFAULT
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, the modem reboot automatically with default configuration.
EXAMPLES
z Rstore configuration to factory defaults.
> restoredefault
1-33
DV-201AMR/AM
22 ROUTE
SYNOPSIS
route add <ipaddress><subnetmask><[<gateway>] [<interface>]>
route delete <ipaddress><subnetmask>
route show
route -- help
DESCRIPTON
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 : The default gateway route should use another “defaultgateway” command. f
0.0.0.0 is entered using route add command, and it is treated the same as a static
default gateway where a subnetmask must be entered.
COMMANDS
Add Adds a new route entry.
Delete Deletes a route entry.
Show Show current content of routin 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, the command will fail and display message
“netmask doesn’t match route address.”
Gateway Routes packets via a gateway.
Note : The specified gateway must be reachable first. This usually
menas 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 deaide about the interface to which the
packets should be routed to.
Interface Forces 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
1-34
CLI Reference Guide
z Add a route to the network 192.56.76.x via the “br0” interface.
route add 192.56.76.0 255.255.255.0 br0
z Add route to 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.
FILES
/proc/net/route
/proc/net/rt_cache
23 SAVE
SAVE saves the 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
z Save all configuration to flash.
> save
24 SWVERSION
1-35
DV-201AMR/AM
SYNOPSIS
swversion show
DESCRIPTION
Swversion is a CLI command used to view the current running software version.
EXAMPLES
z Display current software version.
> swversion show
Product name: DV201AMR
Board ID: DV201AMR
HW version: 0-2
BootRom version: 1.6
AppSW version: 1.02
BRCM SW version: 3.00L.01V.mgcp.g7xxA2pB019a4.d16j
BRCM CFE version: 1.0.37-0.6
Service Company: NONE
25 WAN
WAN allows a user to configure the WAN interfaces for the DSL router.
SYNOPSIS
wan config <port.vpi.vci>
[--protocol <bridge| pppoe| pppoa | mer | ipoa>] [--encap <11c|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|ppoa|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:
z Configure the protocol, encapsulation mode over ATM PVC, state, service name
1-36
CLI Reference Guide
for each WAN interface.
z Configure the username, password, idle timeout, and PPP IP extension for a
PPPoE of a PPPoA interface.
z Configure the IP address and subnet mask for a MER or a IPoA interface.
z Enabling NAT or firewall for a MER or IPoA interface.
z Enable ofr disable the DHCP client for a MER interface.
z Delete the existed WAN interface (it will not delete the ATM PVC).
z Show ATM PVC and WAN interface summary data and status.
z Display usage for WAN interface.
All information is displayed to stdout. A program or shell script that calls this utility can
redirect stdout ot a file and then parse the file in forder 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.
Note: The command only saves the configuration data to the flash,
and does not take effect until the system is rebooted.
Delete Removes the existed WAN interface.
Note: The command only saves the configuration data to the flash,
and does not take effect until the system is rebooted.
Show Shows 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 Displays usage for the WAN interface.
OPTIONS
Config Command
wan config <port.vpi.vci>
[--protocol <bridge|pppoe|mer|ipoa>] [--encap <11c|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>]
-----------------------------------------------------------------------------------------------------------
<port.vpi.vci> port: port number of the ATM VCC to add.
Valid values: 0
1-37
DV-201AMR/AM
1-38
CLI Reference Guide
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: 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).
z 0: PPP connection is always on.
z Greater than 0: WAN traffic will be monitored and
PPP connection will be tom down when there is no user
data activity over the WAN interface for more than this
idle time period.
Default value: 30 minutes.
-----------------------------------------------------------------------------------------------------------
--pppipextension<disable|enable> 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> The WAN IP address and WAN subnet mask of
MER
<wansubnetmask> 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
1-39
DV-201AMR/AM
Delete Command
z wan delete <port.vpi.vci>
<port.vpi.vci> port: port number of the VCC to add.
Valid values: 0
Show Command
wan delete <port. vpi. vci>
<port.vpi.vci> port: port number of the VCC to add.
Valid values: 0
z vpi: VPI of the VCC to add.
Valid values: 0-255
Default value: 0
z vci: VCI of the VCC to add.
Valid values: 32-65535
Default value: 35
--Help Command
wan –help [<bridge|pppoe|pppoa|mer|ipoa>]
<bridge|pppoe|pppoa|mer|ipoa> Displays only valid options for the specified
protocol. If it is omitted, then the help for all protocols is displayed.
EXAMPLES
z Configure a PPPoE interface
wan config 0.0.35 --protocol pppoe --username username --password password --
encap llc
1-40
CLI Reference Guide
wan config 0.0.37 --protocol mer --encap llc
wan show
==============================================================
vcc Catego service Intf. Proto State status ip
Name Name 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 Enalble UP 10.6.33.227
==============================================================
wan –help
Usage : wan config <prot.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 <passworld>]
[- - pppidletimeout <timeout>] [- -pppipextension <disable|enable>]
[- -ipaddr <wanipaddress><wansubnetmask>]
[--dhcpclient <enable|disable>]
wan delete <prot.vpi.vci>
wan show [<prot.vpi.vci>]
wan - -help <bridge|pppoe|pppoa|mer|ipoa>
1-41
DV-201AMR/AM
26 PING
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 “-c0” 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 of IP address of the target host.
EXAMPLES
z Send eight ICMP echo requests to 192.168.0.5.
Ping –c 8 192.168.0.5
27 PS
SYNOPSIS
ps
DESCRIPTION
PS gives a snapshot of the current processes. The output consists of six columns :
1-42
CLI Reference Guide
Size The amount of virtual memory taken by the process (kilobytes)
State The state of the process. (S-Sleeping, R-Running, W-Walting)
Command The command that launches the process
EXAMPLES
z Report process status
ps
28 PWD
SYNOPSIS
pwd
DESCRIPTION
PWD is a CLI command used display name of current working directory.
EXAMPLES :
z To see current working directory
>pwd
/
29 SNTP
30 SYSINFO
SYNOPSIS
sysinfo
DESCRIPION
SYSINFO displays the number of processes in the system time, system uptime, the
1-43
DV-201AMR/AM
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 1-KB units.
EXAMPLES
z Display the system information.
Sysinfo
31 Voice
SYNOPSIS
Command syntax:
voice --help
voice show
voice start
voice stop
voice set caAddr <ipaddress>
voice set gwName <gatewayname>
voice set ifName <interface>
ation (br0, nas25, etc.)
voice set prefCodec <codec>
voice set pstnrule <rule>
voice set pstndata <data>
voice set country <name>
voice set cid <type>
voice set company <name>
voice set epid <name>
voice set sch <start-channel>
voice set caPort <udpport>
voice set gwPort <udpport>
voice set numEndp <number>
voice set profile <standard>
voice set persistent <on|off>
country list:
USA-NORTH_AMERICA
JPN-JAPAN
GBR-UK
SWE-SWEDEN
DEU-GERMANY
FRA-FRANCE
BEL-BELGIUM
ITA-ITALY
1-44
CLI Reference Guide
ETS-ETSI
NLD-NETHERLANDS
FIN-FINLAND
CHN-CHINA
KOR-KOREA
COMMANDS
start start the voice application
Note: When you set voice through telnet, shouldn’t use web
interface for changing voice parameter.
stop stop the voice application
Note: When you set voice through telnet, shouldn’t use web
interface for changing voice parameter.
show Shows the current configuration of voice parameters
--help Displays usage for the VOICE configuration.
DESCRIPION
Voice is used to configure voice parameters for VOIP working on DV-201 AMR. It
supports MGCP and SIP voice protocol. This command reference guide just show the
MGCP based voice configuration.
Note: It doesn’t need to restart in order to apply new configuration parameter after
changing any voice related parameters. Just execute voice stop and start at the telnet
session after changing voice parameter.
OPTIONS
Config Command
set caAddr <ipaddress>
set gwName <gatewayname>
set ifName <interface>
set prefCodec <codec>
set country <name>
set cid <type>
set company <name>
set epid <name>
set sch <start-channel>
set caPort <udpport>
set gwPort <udpport>
set numEndp <number>
set profile <standard>
set persistent <on|off>
-----------------------------------------------------------------------------------------------------------
caAddr <ipaddress> set IP address for MGCP call agent
-----------------------------------------------------------------------------------------------------------
1-45
DV-201AMR/AM
32 Voice Debugging
Telnet CLI can show voice message after turning up log session by below command.
SYNOPSIS
dvcmd trace mgcp 3 3 1
dvcmd getlog
DESCRIPION
By turning on log session, DV-201AMR will show MGCP message which could be
helpful to debug some Voice problems between SSW and Endpoint.
1-46
CLI Reference Guide
EXAMPLES
z > dvcmd trace mgcp 3 3 1
z > dvcmd getlog
<----------------------------------------
200 804289524 OK
00:02:54 <
00:02:54 <<< Recv from 172.17.0.11:2727 at tick 34935<<<
00:02:54
<----------------------------------------
RQNT 409082181 C0/14@[10.128.0.12] MGCP 1.0
X: 19092181
R: l/hd
S: l/vmwi(-)
00:02:54 <
00:02:54 Command received in 'disconnected' state, short-circuiting disconnected
timer...
00:02:54 SIGNAL: endpt 0, cnx -1, evt 39 (VMWI), value 0
33 IGMP
DV-201AMR has IGMP Proxy function for Multicast. By below command, DV-201 AMR
shows which members join to specific groups. IGMP is used to dynamically register
individual hosts in a multicast group on a particular LAN. Hosts identify group
memberships by sending IGMP messages to their local multicast router.
SYNOPSIS
cat /var/igmplog
DESCRIPION
DV-201AMR supports fast join and fast leave as soon as it gets report from local
hosts. And it sends general query every 4 seconds to discover which groups are
active or inactive on a particular subnet.
EXAMPLES
z > cat /var/igmplog
Igmp Table
--------------------------------------------------------------------------------------------------------
Interface ver groups mode member ethport
10.62.0.13
192.168.10.1 22 239.192.0.131 EXCLUDE 192.168.10.2 1
--------------------------------------------------------------------------------------------------------
1-47
DV-201AMR/AM
Proxy Member DB
--------------------------------------------------------------------------------------------------------
group Mode NO source
239.192.0.131 EXCLUDE 0
Maximum Channels is 2.
The Query is sent 4 times at 4 sec intervals.
2) The result is sorted into 4 categories. Igmp Table / Proxy Member DB/ Time of
last Query received from upstream and Maximum channel number.
3) Igmp Table is working as Multicast Router for LAN client in order to control
Multicast Host group.
5) Time of last Query received from upstream shows the last Group Query time
from Multicast router with its IP address.
6) Never mind ver, mode and Column (It always shows the same thing)
1-48