Sntp Unicast-Server - H3C S5830V2 Series Command Reference Manual

Network management and monitoring
Hide thumbs Also See for S5830V2 Series:
Table of Contents

Advertisement

Examples
# Enable NTP authentication, and specify the MD5 encryption algorithm, with the key ID of 37 and key
value of BetterKey, in simple text.
<Sysname> system-view
[Sysname] sntp authentication enable
[Sysname] sntp authentication-keyid 37 authentication-mode md5 simple BetterKey
# Specify this key as a trusted key.
[Sysname] sntp reliable authentication-keyid 37
Related commands
sntp authentication-keyid
sntp authentication enable

sntp unicast-server

Use the sntp unicast-server command to specify an NTP server for the device.
Use the undo sntp unicast-server command to remove the NTP server.
Syntax
sntp
unicast-server
[ authentication-keyid keyid | source interface-type interface-number | version number ] *
undo sntp unicast-server { ip-address | server-name } [ vpn-instance vpn-instance-name ]
Default
No NTP server is specified for the device.
Views
System view
Predefined user roles
network-admin
Parameters
ip-address: IP address of the NTP server. It must be a unicast address, rather than a broadcast address,
a multicast address, or the IP address of the local clock.
server-name: Host name of the NTP server, a case-insensitive string of 1 to 255 characters.
vpn-instance vpn-instance-name: Specifies the MPLS L3VPN to which the NTP server belongs, where
vpn-instance-name is a case-sensitive string of 1 to 31 characters. If the NTP server is on the public
network, do not specify this option.
authentication-keyid keyid: Specifies the key ID to be used for sending NTP messages to the NTP server,
where keyid is in the range of 1 to 4294967295. If the option is not specified, the local device and NTP
server do not authenticate each other.
source interface-type interface-number: Specifies the source interface for NTP messages. In an NTP
message the local device sends to the NTP server, the source IP address is the primary IP address of this
interface. interface-type interface-number represents the interface type and number.
version number: Specifies the NTP version, where number is in the range of 1 to 4 and defaults to 4.
{
ip-address
|
server-name
68
}
[
vpn-instance
vpn-instance-name
]

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2 series

Table of Contents