Cisco Ultra-Reliable Wireless Backhaul Standalone, Software Configuration Guide, Release 26.1.x

PDF

Cisco Ultra-Reliable Wireless Backhaul Standalone, Software Configuration Guide, Release 26.1.x

Configure NTP from CLI

Want to summarize with AI?

Log in

Configure NTP server settings, authentication, timezone, and service status using CLI commands.


Configure Network Time Protocol (NTP) settings to ensure accurate time synchronization on the device.

NTP configuration includes setting up server addresses, authentication methods, timezone settings. Proper NTP configuration ensures time synchronization across network devices.

Procedure

1.

Use the configure ntp server string command to configure the NTP server address.

Example:

Device# configure ntp server 192.168.216.201

String - IP address or domain name.

2.

Use the configure ntp authentication command to configure NTP authentication.

Example:

Device# configure ntp authentication none
Device# configure ntp authentication md5 <password> <keyid> 
Device# configure ntp authentication sha1 <password> <keyid>

none - disables the NTP authentication md5|sha1 - authentication method.

Note

Optional, the md5 password and keyid should match NTP server's md5 password and keyid.

To configure a new password using a GUI or CLI, the password should match the following criteria:

  • The password length range is from 8 to 20 characters.

  • The following special characters are not allowed:

    • ' (apex)

    • " [double apex]

    • ` [backtick]

    • $ [dollar]

    • = [equal]

    • \ [backslash]

    • # [number sign]

    • whitespace

Example:

Device# configure ntp authentication md5 test1234 65535
3.

Use the configure ntp {enable | disable} command to enable or disable the NTP service.

Example:

Device# configure ntp enable
4.

Use the configure ntp timezone string command to configure the NTP timezone.

Example:

Device# configure ntp timezone Asia/Shanghai
5.

Use the show ntp config command to validate the NTP configuration and status.

Example:

Device# show ntp config
NTP status: enabled
NTP server: 192.168.216.201
authentication: MD5
password: test123
keyid: 5
timezone: Asia/Shanghai
6.

Use the show ntp command to check if device can sync up time with NTP server.

Example:


Device# #show ntp 
Stratum Version Last Received  Delay    Offset  Jitter    NTP server
1          4      9sec ago    1.840ms -0.845ms 0.124ms 192.168.216.201