
Chapter 3 Network Commands
X6004 CLI Reference Guide
23
• Displays network interface settings.
3.3 Time Commands
The following table describes commands related to setting the time on the X6004.
3.3.1 Time Command Examples
This example sets the X6004 to use a time server and displays time server details.
> network interface lan ip address 192.168.1.10 netmask 255.255.255.0
> network interface wan ip address 172.16.1.201 netmask 255.255.255.0
> network interface wan ip gateway 172.16.1.254
> network interface wan ip first-dns-server 172.16.5.1
> network interface show ip all
IP Address Subnet Mask Gateway IPMode State Network Interface
172.16.1.201 255.255.255.0 172.16.1.254 STATIC up WAN
192.168.1.10 255.255.255.0 STATIC down LAN
Table 7 Time Commands
COMMAND
DESCRIPTION
time clock date <yyyy-mm-dd> time
<hh:mm:ss>
Sets the date and time manually.
time clock daylight-saving Enables daylight saving.
time clock no daylight-saving Disables daylight saving.
time clock saving-interval begin
<month> <1~4|last> <weekday> <hh:mm>
end <month> <1~4|last> <weekday>
<hh:mm> <offset>
Defines daylight saving period and time offset.
month: jan, feb, mar, .....
<1~4|last>: specifies the week of the month
offset: range of 1~5 in .5 hour interval. For example 1.5
means 1 and a half hours.
time clock time <hh:mm:ss> Sets time manually.
time clock time-zone <[-]hh> Sets time zone.
time ntp server1 <hostname> Sets the hostname or IP of the first time server.
time ntp server2 <hostname> Sets the hostname or IP of the second time server.
time ntp sync Synchronizes the time with the time server.
time show clock date Displays current date.
time show clock status Displays current status including time zone and daylight saving.
time show clock time Displays current time.
time show ntp server Displays the time server list.
> time ntp server1 0.pool.ntp.org
> time show ntp server
NTP server : 0.pool.ntp.org 1.pool.ntp.org
last update time: Fri Aug 17 03:02:22 GMT+8 2007
Comentários a estes Manuais