System time
5.2 NTP Client
SCALANCE XM-400/XR-500 Command Line Interface (CLI)
Configuration Manual, 06/2016, C79000-G8976-C252-11
163
5.2.3
Commands in the NTP configuration mode
This section describes commands that you can call up in the NTP configuration mode.
In the Global configuration mode, enter the
ntp
command to change to this mode.
●
If you exit the NTP configuration mode with the
exit
command, you return to the Global
configuration mode.
●
If you exit the NTP configuration mode with the
end
command, you return to the Privileged
EXEC mode.
5.2.3.1
ntp server
Description
With this command, you configure the connection to a server on the NTP client.
Requirement
You are in the NTP configuration mode.
The command prompt is as follows:
cli(config-ntp)#
Syntax
Call up the command with the following parameters:
ntp server id <integer(1-3)> { ipv4 <ip_addr> | fqdn-name <Fully Qualified Domain
Name> | ipv6 <ip6_addr>} [port { <1025-36564> | default}] [poll <seconds(64-1024)>]
The parameters have the following meaning:
Parameter
Description
Range of values / note
integer
Number of the NTP server.
1 ... 3
ipv4
Keyword for an IPv4 address
-
ip_addr
Value for the IPv4 address of the time
server
Enter a valid IPv4 address.
fqdn-name
Keyword for a domain name
-
FQDN
Domain name (Fully Qualified Domain
Name)
Maximum of 100 characters
ipv6
Keyword for an IPv6 address
-
ip6_addr
Value for the IPv6 address of the time
server
Enter a valid IPv6 address.
port
UDP port of the time server
1025 … 36564
default
Default value for the UDP port
123
poll
Keyword for the time after which the
time of day is requested again
-
seconds
Value for the time in seconds
64 … 1024
For information on identifiers of addresses and interfaces, refer to the section "Addresses
and interface identifiers".