Command with FXS Gateway
usr/config$
Figure 19-13 ifaddr commend list
Parameter Usages:
print current IP setting and status
-ip
assigned IP address for FXS Gateway
-mask
internet subnet mask
-gate
IP default gateway
-dhcp
Dynamic Host Configuration (1 = ON; 0 = OFF)
-sntp
Simple Network Time Protocol (1 = ON; 0 = OFF) When SNTP function is
activated, users have to specify a SNTP server as network time source. An
example is demonstrated below:
-dns
Specify Primary(-dns 1) or Secondary(-dns 2) DNS Server IP address.
usr/config$ ifaddr -dns 1 168.95.1.1
usr/config$ ifaddr -dns 2 203.23.123.2
-timezone set local time zone according to GMT
usr/config$ ifaddr -sntp 1 10.1.1.1
While 10.1.1.1 stands for SNTP server’s IP address.
-ipsharing To specify a global fixed IP address, user can add this IP address in the
command.
usr/config$ ifaddr -ipsharing 1 210.11.22.33
-upnp
Enable/ Disable UPnP function. If IP sharing has this function, use can enable
upnp function that user doesn’t need to configure gateway or IP sharing for NAT
function.
usr/config$ ifaddr -print
Internet address information
IP address : 192.168.4.72
Subnet mask : 255.255.0.0
Default gateway : 192.168.1.254
DHCP startup : OFF
SNTP : mode=1
server 168.95.195.12
time zone : GMT+8
cycle=1024 mins
IPSharing : no IPSharing device.
Command List
19-19