0% found this document useful (0 votes)
14 views

DV-201AMR CLI Reference Guide

DV-201AMR CLI Reference Guide

Uploaded by

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

DV-201AMR CLI Reference Guide

DV-201AMR CLI Reference Guide

Uploaded by

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

CLI Reference Guide

CLI Reference Guide


for DV-201AMR

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

This page is empty.

1-4
CLI Reference Guide

1 LOGOUT

LOGOUT logs out the current console.

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

z Logout usr admin

Login: admin
Password:
> logout
Bye bye. Have a nice day!!!

Login:

2 REBOOT

REBOOT restarts the system.

SYNOPSIS

reboot

DESCRIPTION

Reboot the system.

EXAMPLES

z Reboot the system

reboot

1-5
DV-201AMR/AM

3 ADSL

ADSL allows a user to control ADSL driver

SYNOPSIS

adsl start [option]


adsl stop
adsl connection [option]
adsl configure [options]
adsl bert [options]
adsl info [options]

DESCRIPTION

Adsl used to control ADSL driver. This utility can:

z Start and Stop the driver


z Activate, deactivate and control ADSL connection
z Configure ADSL driver and connection parameters
z Start, stop and monitor Bit Error Rate Test (BERT)
z Display status and information of ADSL driver and connection

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

Start and Configure Commands

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.

tones <xmtStart xmtNum xmtMap rcvStart rcvNum rcvMap>


Specifies tones which can be used by ADSL PHY.

z xmStart - First tone used in upstream direction(usually 0)


z xmNum - Number of tones in upstream direction(usually 32)
z xmtMap - Bitmap for tones used in upstream direction. Specfied as a
hexadecimal string.Bit value zero means the corresponding tone is not used, bit
value one means it is used.
z rcvStart - first tone used in downstream direction(usually 32)
z rcvNum - number of tones in downstream direction(usually 224)
z 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

1-8
CLI Reference Guide
explicitly. Defualt tone configuration(all tones enabled)will be set by

adsl tones 0 32 0xFFFFFFFF 32 224 0xFF.(repeated 28 times)

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= [NOT]RUNNING


BERT Total Time = 10sec
BERT Elapsed Time = 10sec
BERT Bits Tested = 0x00000000000045A6380 bits
BERT Err Bits = 0x000000000002 bits

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

Clears all statistic counters in ADSL driver

4 ADSLCTL

ADSLCTL allows a user to control ADSL driver like ADSL command.

SYNOPSIS

adslctl start [option]


adslctl stop
adslctl connection [option]
adslctl configure [options]
adslctl bert [options]
adslctl info [options]

5 ATM

ATM allows a user to control the ATM driver.

SYNOPSIS

atm start [options]


atm stop
atm opreate tdte|intf|vcc [options]

DESCRIPTION

ATM is used to control the Broadcom BCM63xx ADSL driver.this utilily can:

z Start and stop the driver


z Activate and deactivate an ATM interface (port) or a Virtual Channel
Connection(VCC)
z Add and remove traffic descriptor table entries
z Add and remove VCCs
z Display the configuration for traffic descriptor table entries,ATM interfaces and
VCCs Display Statistics for ATM interface and VCCs.

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

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 opton can be specified to configure multilple ports.
If no intf option is specified, the default is 0, adsl,0.

Stop Command

atm stop

Operate TDTE Command

atm operate tdte [--add <ubr|ubr_pcr|cbr|rtvbr|nrtvbr> <pcr>] [<scr>] [<mbs>]] [--


delete <index>] [--show [<index>]

1-11
DV-201AMR/AM

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 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.

Operate INTF Commmand


atm operate intf [--state <port> <enable|disable>] [--show [<port>]] [--stats [<port>]
[reset]]

state <port> <type>


port - port numbers starting at 0 enable or disable.
type - enable/disable

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.

Operate VCC command


atm operate vcc [--add <port.vpi.vci> <aal5|aal2|aal0pkt|aal0cell|aaltransparent>
<tdte_index> <vcmux_routed|vcmux_bridged8023|llcencaps|other|unknown>] [--
delete <port.vpi.vci>] [--addq <port.vpi.vci> <size> <priority> [--deleteq
<port.vpi.vci> <size> <priority>] [--state <port.vpi.vci> <enable|disable>] [--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|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

addq <port.vpi.vci> <size><priority>


port.vpi.vci- port number,VPI and VCI that identifies the VCC to add a new queue
Size -Size of the queue.
Priority - Priorty of the queue.

deleteq<port.vpi.vci> <size> <priority>


port.vpi.vci- Port number, VPI and VCI that identifies the VCC to enable or disable.
Size -Size of the queue.
Priority - Priorty of the queue.

state <port.vpi.vci> <type>


port.vpi.vci-Port number,VPI and VCI that identifiles 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 diplay statistics
for.
reset - Resets statistics fields.
if port vpi.vci is omitted, statistics are displayed for all configured VCCs.

EXAMPLES
z A simple initialization.
atm start
atm operate vcc --add 0.0.35 aal5 1 vcmux_bridgeed8023

z A more complex Initialization.


atm start --pqs 400 --bo 0
atm operate tdte --add ubr_pcr 15000
atm operate tdte --show

atm operate tdte --show


index type pcr scr mbs
1 ubr 0 0 0
2 nrtvbr 1887 1886 150
3 rtvbr 1887 1886 150

z Display interface configuration (assumes that the ATM driver is started).


atm operate intf --show
port status type

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

atm operate vcc --show


vcc status type tdte_index q_size q_priority encapsulation
0.0.32 enabled aal5 2 64 1 llcencaps
0.0.33 enabled aal5 3 64 1 llcencaps
0.0.34 enabled aal5 2 64 1 vcmux_routed
0.0.35 enabled aal5 1 64 1 llcencaps

z Display inteface statistics (assumes that the ATM driver is started).


atm operate intf --stats
atm operate vcc --stats
aal5 vcc statistics for 0.0.32
crc errors 50731
oversized sdus 0
short packet errors 0
length errors 0

aal5 vcc statistics for 0.0.33


crc errors 1
oversized sdus 0
short packet errors 0
length errors 0

aal5 vcc statistics for 0.0.34


crc errors 0
oversized sdus 0
short packet errors 0
length errors 0

aal5 vcc statistics for 0.0.35


crc errors 0
oversized sdus 0
short packet errors 0
length errors 0

atm operate intf --stats


not operated(console)

atm interface statistics for port 0

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

aal5 interface statistics for port 0


in octets 44064
out octets 19536
in packets 353
out packets 179
in errors 2
out errors 0
in discards 0
out discards 0

6 BRCTL

BRCTL is the 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 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.

delif <bridge> <device>


Detaches the interface<device>form the bridge<bridge>.

showmacs <bridge>
Shows a list of leamed 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 cetain address, the bridge, the bridge will time
out(delete) that address from the Forwarding DataBase(fdb).

setbridgeprio <bridge> <priority>


Sets the bridge’s prionity to <priority>. The prionity 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.

1-16
CLI Reference Guide

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 prot and root port selection algorithms.

stp <bridge> <state>


Contrds this bridge instance’s participation in the spanning tree protocol.
If<state>is “on” or “yes”, the STP will be turned on; otherwise it will be turned off.
When tumed off. The bridge will notsend or receive BPDUs, and will thus not
participate in the spanning tree protocol. If your bridge is not the only bridge on the
LAN, or if there are loops in the LAN’s topology, DO NOT tum this option off unless
you are.

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

CAT concatenates FILE(s) and prints them to standard output.

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

DF prints 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 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

DUMPCFG shows the current configuration in IAD

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

<routeEntry id="1" addr="192.56.76.0" mask="255.255.255.0" gateway="0.0.0.0"


ifN
ame="br0"/>
</route>
</RouteCfg>
<PMapCfg/>
<SNTPCfg/>
<ToDCfg/>
<Voice>
<MGCP caAddr="192.168.1.100" gwName="DV201AM" ifName="br0"
prefCodec="auto" coun
try="KOR" cid="ETSI" company="" epid="aaln" sch="1" numEndp="2"
caPort="2727" gw
Port="2427" profile="RFC2705" persistent="on" />
</Voice>
</psitree>
> apMode
apMode: not found

10 ECHO

ECHO displays a line of text or an environment variable’s value.

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

IFCONFIG configures a network interface.

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

KILL sends 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.

OPTION

1-23
DV-201AMR/AM

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
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

ARP manipulates the modem;s 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 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

z Show ARP table.


arp show
HW type flags HWaddress Mask Device
IP address 0x1 0x2 00:01:03:E3:4F:F9 . br0
192.168.1.3 0x1 0x6 00:11:22:33:44:55 . br0

z Delete ARP entry for IP address 192.168.1.2


arp delete 192.168.1.2

1-24
CLI Reference Guide

14 DEFAULT GATEWAY

DEFAULTGATEWAY configures or shows the default gateway or default route.

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

defaultgateway config auto

z 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

15 DHCPSERVER

DHCPSERVER allows 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 :

z Configure the DHCP server on the primary LAN interface.


z Show the DHCP server configuration data.
z Display usage.

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

z 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

z Display usage.
dhcpserver - -help

Usage : dhcpserver config <start IP address> <end IP address> <leased


time(hour)>
dhcpserver show
dhcpserver – help

1-27
DV-201AMR/AM

16 DNS

DNS allows a user to configure or show the DNS relay data

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 :

z Configure the DNS relay with the given data.


z Show the DNS relay configuration data.
z Display usage.

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

z Static DNS configuration with secondary DNS


dns config static 10.6.33.1 10.6.33.2

z Display DNS configuration data


dns show

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>]

ipaddr<primary|secondary><IP address> <subnet mask> primary|secondary


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 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>

-- ipaddr <primary|secondary> --ipaddr<primary|secondary>


primary|secondary
Specify which LAN interface will be deleted.

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 Remove a secondary LAN interface.


lan delete –ipaddr secondary

z 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 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

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

PASSWD allows a user to change the user password

SYNOPSIS

1-31
DV-201AMR/AM

passwd <admin|support|user> <password>

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

PPP allows 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. 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

If you want to make a ftp service, as follws.

- remoteaccess enable --service ftp


00:18:49 ********** callClientMain elapsed=3757
00:18:53 ********** callClientMain elapsed=3722
- remoteaccess show
remote access for FTP is enabled
remote access for HTTP is disabled
remote access for ICMP is disabled
remote access for SNMP is disabled
remote access for SSH is disabled
remote access for TELNET is disabled
remote access for TFTP is disabled

21 RESTOREDEFAULT

RESTOREDEFAULT restores the modem configuration to the 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, the modem reboot automatically with default configuration.

EXAMPLES
z Rstore configuration to factory defaults.
> restoredefault

1-33
DV-201AMR/AM

22 ROUTE

ROUTE shows/manipulates the IP routing table.

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.

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

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

SWVERSION displays the current running software version.

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

vpi: VPI of the VCC to add.


Valid values: 0 – 255.
Default value: 0

1-37
DV-201AMR/AM

Vci: VCI of the VCC to add.


Valid values: 32-65535.
Default value: 35
-----------------------------------------------------------------------------------------------------------
--protocol <bridge|pppoe|ppoa|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.
z llc –
For mer, pppoe, or bridge, it is RFC2684 bridged
encapsulation
For pppoa, it lss RFC2364 VC-MUX(null encapsulation).
z 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: <protocol>_<vpl>_<vci>
-----------------------------------------------------------------------------------------------------------
--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 enables 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

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

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
-----------------------------------------------------------------------------------------------------------

Delete Command
z 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

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

z Configure a PPPoA interface


wan config 0.0.36 --protocol pppoa --username username -- password password --
encap vcmux

z Configure a MER configuration using DHCP dient

1-40
CLI Reference Guide
wan config 0.0.37 --protocol mer --encap llc

z 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

z 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

z Configure a bridge configuration


wan config 0.2.35

z Remove a WAN interface


wan delete 0.2.35

z Display all WAN interfaces

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
==============================================================

z Display usage for all protocols

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>

z Display usage for bridge


wan –help bridge

1-41
DV-201AMR/AM

Usage : wan config<port.vpi.vci>


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

26 PING

PING sends ICMP echo requests to the 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 “-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

PS reports the 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

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

PWD prints the name of the current working directory.

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

Network time server


sntp -s server [ -s server2 ] -t "timezone"
disable
date
zones
sntp --help>

30 SYSINFO

SYSINFO displays the general system information.

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

VOICE allows user to control voice configuration

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

gwName <gatewayname> set gateway name used in MGCP messages


-----------------------------------------------------------------------------------------------------------
ifName <interface> set interface name used by
the voice application (br0, nas25, etc.)
-----------------------------------------------------------------------------------------------------------
prefCodec <codec> set the preferred codec
(auto, G711U, G711A, G723, G726, G729)
-----------------------------------------------------------------------------------------------------------
set country <name> set the call progress tone country
-----------------------------------------------------------------------------------------------------------
set cid <name> set the caller ID type (ETSI|NTT|BELLCORE)
-----------------------------------------------------------------------------------------------------------
set company <name> set the VOIP service providor
-----------------------------------------------------------------------------------------------------------
set epid <name> set the MGCP Endpoint ID
(epid/sch@gwName)
-----------------------------------------------------------------------------------------------------------
set sch <start-channel> set the start channel number
(epid/sch@gwName)
-----------------------------------------------------------------------------------------------------------
set caPort <udpport> set UDP port number for MGCP call agent
-----------------------------------------------------------------------------------------------------------
set gwPort <udpport> set UDP port number for MGCP client
-----------------------------------------------------------------------------------------------------------
set numEndp <number> set number of MGCP endpoint to register
-----------------------------------------------------------------------------------------------------------
set profile <standard> set MGCP standard
(NCS|RFC2705|RFC3435)
-----------------------------------------------------------------------------------------------------------
set persistent <on|off> set set the persistent event mode (on|off)
-----------------------------------------------------------------------------------------------------------

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

Time of last QUERY received from upstream:


From 217.16.40.231 at Wed Nov 30 16:03:13 2005

Maximum Channels is 2.
The Query is sent 4 times at 4 sec intervals.

1) You can see above information by executing “cat /var/igmplog” command.


But, this command is only available when IGMP Process is running.

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.

4) Proxy Member DB is working as Multicast Host in order to control Group


information.

Note : Ebtables is only appeared at DV-201AM (2port LAN). It shows snooping


information.

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

You might also like