4.12.5 Set the NTP Server Address on the Cisco 9300 Series Management Network Switch

This procedure describes how to change the Network Time Protocol (NTP) server address on the Cisco 9300 Series Management Network Switch.

  1. Access the switch using SSH, and log in as the admin user with the administrator password.

    Note:

    If SSH has not been configured, then use Telnet to access the switch as the admin user.
  2. Review the current configuration.
    Switch# show running-config

    The command output includes entries for the current NTP servers.

    For example:

    ...
    ntp server 10.10.10.1 prefer use-vrf default
    ntp server 10.8.8.1 use-vrf default
    ...
  3. Erase the current NTP server configuration.
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# no ntp server 10.10.10.1
    Switch(config)# no ntp server 10.8.8.1
    Switch(config)# end
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.

    Note:

    Each current NTP IP address being changed needs to be erased. Invalid IP addresses must also be erased.
  4. Configure up to two NTP servers.

    In this example, the new NTP server IP addresses are 10.7.7.1 and 10.9.9.1.

    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# feature ntp
    Switch(config)# ntp server 10.7.7.1 prefer
    Switch(config)# ntp server 10.9.9.1
    Switch(config)# clock protocol ntp
    Switch(config)# end
  5. Verify the changes.
    Switch# show running-config

    The command output should include entries for the new NTP servers.

    For example:

    ...
    ntp server 10.7.7.1 prefer use-vrf default
    ntp server 10.9.9.1 use-vrf default
    ...
  6. Save the configuration.
    Switch# copy running-config startup-config
    [########################################] 100%
    Copy complete, now saving to disk (please wait)...
    Copy complete.
  7. Exit from the session.
    Switch# exit