4.10.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. Connect to the switch as the admin user.
  2. Review the current configuration.
    Switch# show running-config
  3. 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.
  4. Configure up to three 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 ]
  5. 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
    ...
  6. Save the configuration.
    Switch# copy running-config startup-config
    Destination filename [startup-config]? 
    Building configuration...
    Compressed configuration from 14343 bytes to 3986 bytes[OK]
  7. Exit from the session.
    Switch# exit