Configuring the NTP/SNTP Server to Obtain the Date and Time (CLI)

Configuring the NTP/SNTP Server to Obtain the Date and Time (CLI)

Use these commands to configure an NTP/SNTP server to obtain the date and time:

Procedure

  • To specify the NTP/SNTP server for the controller, enter this command:

    config time ntp server index ip-address

  • (Optional) To specify the polling interval (in seconds), enter this command:

    config time ntp interval

  • To enable or disable NTP/SNTP server authentication, enter these commands:

    • config time ntp auth enable server-index key-index —Enables NTP/SNTP authentication on a given NTP/SNTP server.

    • config time ntp key-auth add key-index md5 {ascii | hex} key—Adds an authentication key. By default MD5 is used. The key format can be ASCII or hexadecimal.

    • config time ntp key-auth delete key-index —Deletes authentication keys.

    • config time ntp auth disable server-index —Disables NTP/SNTP authentication.

    • show ntp-keys —Displays the NTP/SNTP authentication related parameter.

  • To delete an NTP server IP address or DNS server from the controller, enter this command:

    config time ntp delete NTP_server index

posted @ 2026-04-27 12:40  雪花落霞静似诗  阅读(18)  评论(0)    收藏  举报