313
11.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
(2) Configure a SNTP/NTP server IPv6 address
Switch(Config)#sntp server 3ffe:506:1:2::5
11.2.3 sntp poll
Command: sntp poll <interval>
no sntp poll
Function:
Sets the interval for SNTP clients to send requests to NTP/SNTP; the “
no
sntp poll
” command cancels the polltime sets and restores the default setting.
Parameters:
< interval>
is the interval value from 16 to 16284.
Default:
The default polltime is 64 seconds.
Command mode:
Global Mode
Example:
Setting the client to send request to the server every 128 seconds.
Switch#config
Switch(Config)#sntp poll 128
11.2.4 debug sntp
Command: debug sntp {adjust | packets | select }
no debug sntp {adjust | packets | select}
Function:
Displays or disables SNTP debug information.