361
Fig 12-1 Working Scenario
ES4700 series implements SNTPv4 and supports SNTP client unicast as described in
RFC2030; SNTP client multicast and unicast are not supported, nor is the SNTP server
function.
12.2 Command for SNTP
12.2.1 clock timezone
Command:clock timezone <name> hour <hours> [before-utc | after-utc]
Function:
set the difference between local time and UTC time.
Parameter
:
<name>
is the name of local tomezone, consist of max 16 characters.
<hours>
is the time difference to UTC time
,
range from 0 to 12 .
before-utc
means local
time equals the UTC time subtracting the difference
, after-utc
means the local time
equals the UTC time adding the difference
Default:
8
hours
before-utc
Command Mode:
Global Mode
Example:
set the customer timezone 10 hours before-utc
Switch(Config)#clock timezone customer10 before-utc
12.2.2 sntp server
Command:sntp server {<server_address> | < server_ipv6_addr> } [version
<version_no>]
no sntp server {<server_address> | < server_ipv6_addr>}
Function:
Configure the IPv4/IPv6 addresses and the version of the SNTP/NTP server;
the “no” form of this command cancels the configured SNTP/NTP server addresses.
Parameter: <server_address>
is the IPv4 unicast address of the SNTP/NTP
server,
<server_ipv6_addr>
is the IPv6 unicast address of the SNTP/NTP
server,
<version_no>
is the version No. of the SNTP on current server,ranging between
1-4 and defaulted at 1.
Default:
No sntp/ntp configured by default.
Command Mode:
Global Mode
Example:
(1) Configure an IPv4 address of a SNTP/NTP server. SNTPv4 version is adopted on
the server
Switch(Config)#sntp server 10.1.1.1 version 4