4.12.6 Set the NTP Server Address on the Cisco 4948 Ethernet Switch

You can set or change the Network Time Protocol (NTP) server on the Cisco 4948 Ethernet switch.

  1. Access the switch using one of the following methods, based on the firmware version:
    1. Firmware versions earlier than version 12.2: Access the switch using Telnet, and log in as the administrator using the administrative password.
    2. Firmware version 12.2 or later: Access the switch using SSH, and log in as the admin user with the admin password.

      Note:

      If SSH has not been configured, then use Telnet to access the switch as the admin user.
  2. Change to enable mode. When prompted for a password, use the administrator password.
    Switch> enable
  3. Review the current configuration.
    Switch# show running-config
  4. Erase the current NTP server configuration.

    In this example, the current IP addresses are 10.10.10.1 and 10.8.8.1.

    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# write memory
    Building configuration...
    Compressed configuration from 2603 bytes to 1158 bytes [OK ]

    Note:

    Each current NTP IP address being changed needs to be erased. Invalid IP addresses must also be erased.
  5. Configure up to two NTP servers.
    Switch# configure terminal
    Enter configuration commands,one per line.End with CNTL/Z.
    Switch(config)# ntp server 10.7.7.1 prefer
    Switch(config)# ntp server 10.9.9.1
    Switch(config)# end
    Switch# write memory
    Building configuration...
    Compressed configuration from 2603 bytes to 1158 bytes [OK ]
  6. Verify the changes.
    Switch# show running-config

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

    For example:

    
    Building configuration...
    ...
    ntp server 10.7.7.1 prefer
    ntp server 10.9.9.1
    ...
  7. Save the configuration.
    Switch# copy running-config startup-config
    Destination filename [startup-config]? 
    Building configuration...
    Compressed configuration from 14343 bytes to 3986 bytes[OK]
  8. Exit from the session.
    Switch# exit