Page 56 / 83 Scroll up to view Page 51 - 55
54
usr/config$ ifaddr
LAN information and configuration
Usage:
ifaddr [-print]|[-mode used]|[-sntp mode [server][-cmcenter ipaddress]]
ifaddr [-ip ipaddress] [-mask subnetmask] [-gate defaultgateway]
ifaddr [-dns index [dns server address]]
ifaddr [-id username][-pwd password][-http http port]
-print
Display LAN information and configuration.
-ip
Specify ip address.
-mask
Set Internet subnet mask.
-gate
Specify default gateway ip address
-mode
Set ip client service(0=FIX IP, 1=DHCP, 2=Pppoe).
-sntp
Set SNTP server mode and specify IP address.
-dns
specify IP address of DNS Server.
-timezone
Set local timezone.
-id
Connection user name for pppoe.
-pwd
Connection password for pppoe.
-http
Http port.
Note:
SNTP mode (0=no update, 1=specify server IP, 2=broadcast mode).
Example:
ifaddr -ip 210.59.163.202 -mask 255.255.255.0 -gate 210.59.163.254
ifaddr -mode 1
ifaddr -sntp 1 210.59.163.254
ifaddr -dns 1 168.95.1.1
usr/config$
Parameters Usage:
-print
print out current [ifaddr] settings and status
-ip
assign IP address for Gateway
-mask
assign internet subnet mask
-gate
assign IP default gateway
-mode
Switch the network type (0 = Static IP; 1 = DHCP mode 2 =
PPPoE mode)
-sntp
Simple Network Time Protocol (1 = ON; 0 = OFF) When SNTP
Page 57 / 83
55
function is activated, users have to specify a SNTP server as
network time source. An example is demonstrated below:
-dns
configure the IP address for the DNS server
-timezone
set local time zone according to GMT
-----------------------------------------------------------------------------------------------
usr/config$ ifaddr -sntp 1 10.1.1.1
10.1.1.1 stands for SNTP server’s IP address.
-id
To configure the pppoe connection account for the pppoe
connection.
-pwd
To configure the pppoe connection password for the pppoe
connection.
-http
Change the http port. User can change default HTTP port (80) to
another one for security or NAT application.
4.2.8 [time]
When SNTP function of Gateway is enabled and SNTP server can be found as
well, type
time
command to show current network time.
-----------------------------------------------------------------------------------------------
usr/config$ time
Current time is THU JAN 01 05:29:23 1970
Please make sure about that the SNTP server was configured before you used
this command.
4.2.9 [ping]
Use
ping
to test whether a specific IP is reachable or not.
For example: if 192.168.1.2 is not existing while 192.168.1.254 exists. Users
will have the following results:
usr/config$ ping 192.168.1.2
no answer from 192.168.1.2
usr/config$ ping 192.168.1.254
PING 192.168.1.254: 56 data bytes
Page 58 / 83
56
64 bytes from 192.168.1.254: icmp_seq=0. time=5. ms
64 bytes from 192.168.1.254: icmp_seq=1. time=0. ms
64 bytes from 192.168.1.254: icmp_seq=2. time=0. ms
64 bytes from 192.168.1.254: icmp_seq=3. time=0. ms
----192.168.1.254 PING Statistics----
4 packets transmitted, 4 packets received, 0% packet loss
round-trip (ms)
min/avg/max = 0/1/5
usr/config$
4.2.10 [sysconf]
This command displays system information and configurations.
--------------------------------------------------------------------------------------------------------
usr/config$ sysconf
System information and configuration
Usage:
sysconf [-idtime digit][-keypad dtmf]
[-rba digit][-eod digit][-bl digit]
[-localrbt digit]
[-ring on_time off_time]
sysconf -print
-print
Display system overall information and configuration.
-idtime
Inter-Digits time.(1~10 sec)
-keypad
Select DTMF type: 0=In-band,
1=RFC2833.
-ring
The ring time for ring detection.(Uint:ms)
-rba
the number of ring times before answer.(1~5)
-eod
End of dial.(Enable:1 / Disable:0)
-connect
Auto connect time.(0=Disable, for 1~65535 sec)
Example: sysconf -ring 500
usr/config$
Parameters Usage:
-print
print out all current settings
-idtime
set the duration(in second) of two pressed digits in dial mode as
Page 59 / 83
57
timed out. If after the duration user hasn’t pressed next number, it
will dial out all number pressed. (1-10 seconds)
-keypad
DTMF replay type. When value is “0”, Gateway will transfer DTMF
signal via In-Band type, “1” via RFC2833 type. Users can adjust
the value according to various applications.
1. number (instead of Line number of FXO Line)+ PSTN number
to make a call to PSTN side connected with FXO Line.
2. After gateway-prefix-drop function is enabled, user must
remember to re-configure line number of FXS Line, because
line number of FXS Line must remove prefix number. For
example, origin line number of FXS line is 1001, prefix is 100,
since prefix number will be drop, once gateway has incoming
call 1001, after drop gateway prefix 100, it will search line
number “1”. So line number must be set as “1”.
-ring
ring time for ring detection(in ms). When Gateway has incoming
call from PSTN side to FXO port, Gateway will determine it is a ring
but not noise only if it is longer than this ring time.
Note:
In Taiwan the ring time of PSTN usually is 1000ms, so if user set
ring time longer that 1000ms, FXO port may not be able to pick up
the call from PSTN side.
-rba
When the calls from the PSTN side, FXO port will off hook if the
ring time is matched with this number.
-eod
It will transfer the DTMF in “#” if users disable the end of dial
function. Users have to press the key pad in “#” if the end of dial
function is enable.
-connect
The unit will send the connect message to the IP side automatically.
This function just supports the one-stage-dialing function.
4.2.11 [sip]
Phone Book function allows users to define their own numbers, which mapping
to real IP address. It is effective only in peer-to-peer mode. When adding a
record to Phone Book, users do not have to reboot the machine, and the record
will be effective immediately.
-------------------------------------------------------------------------------------------------------
usr/config$ sip
Page 60 / 83
58
SIP stack information and configuration
Usage:
sip [-mode
pxmode]
sip [-px address] [-outpx address] [-prefix prefixstring] [-line number]
[-expire t1]
sip -print
-print
Display SIP stack information and configuration.
-mode
Configure as Proxy mode or Peer-to-Peer mode.
-px
Proxy server address. (Proxy IPv4 address or Proxy
dns name)
-pxport
Proxy server port.
(the port of proxy)
-outpx
OutBound Proxy server address. (IPv4 address or dns
name)
-prefix
Specify prefix string, use it when UserID contains
alphabets (if UserID uses numerals, specify as null)
-line1
Line 1 is E.164 number of L1.
-line2
Line 2 is E.164 number of L2.
-line3
Line 3 is E.164 number of L3.
-line4
Line 4 is E.164 number of L4.
-expire
The relative time after which the message expires(0 ~
(2^31-1))
-port
SIP local UDP port number (2326~65534), Default: 5060
-rtp
RTP port number (2326~65534), Default: 16384
Example:
sip -px 210.59.163.171 -line1 70 -line2 71
usr/config$
Parameter Usages:
-print
print current h323 related settings
-mode
alternatives for proxy or peer-to-peer mode (1=proxy mode;
0=peer-to-peer mode). If users select proxy mode, a valid proxy is
needed when Gateway is in operation.
-----------------------------------------------------------------------------------------------
usr/config$ sip –mode 0 (peer to peer mode)
-px
to assign the ip address of the proxy when Gateway is in proxy
mode.
-pxport
define the proxy port for the registration or call.

Rate

3.5 / 5 based on 2 votes.

Bookmark Our Site

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

Share
Top