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