NTP Configuration Commands
509
Designate an interface on the local equipment to transmit NTP multicast packet.
The local equipment operates in multicast-server mode and multicasts packets
regularly to its clients.
Example
Configure to transmit NTP multicast packets encrypted with Key 4 via
Vlan-Interface1 at 224.0.1.1 and use NTP version 3.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]interface vlan-interface 1
[SW5500-Vlan-Interface1]ntp-service multicast-server 224.0.1.1
authentication-keyid 4 version 3
ntp-service reliable
Syntax
authentication-keyid
ntp-service reliable authentication-keyid
number
undo ntp-service reliable authentication-keyid
number
View
System view
Parameter
: Specify the key number, ranging from 1 to 4294967295.
number
Description
Use the
command to configure
ntp-service reliable authentication-keyid
the key as reliable. Use the
undo ntp-service reliable
command to cancel the current setting.
authentication-keyid
By default, no key is configured as reliable.
When you enable the authentication to use this command to configure one or
more than one key as reliable. In this case, a client will only get synchronized by a
server whichever can provide a reliable key.
Example
Enable NTP authentication, adopt MD5 encryption, and designate Key 37
BetterKey and configure it as reliable.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]ntp-service authentication enable
[SW5500]ntp-service authentication-keyid 37 authentication-mode md5
BetterKey
[SW5500]ntp-service reliable authentication-keyid 37
ntp-service
Syntax
source-interface
interface-name | interface-type
ntp-service source-interface {
interface-number
}
undo ntp-service source-interface