Configuring (enabling or disabling) the Timep mode
This software enables configuration of a global unicast address for IPv6 Timep time server.
For the details of configuring Timep on the switch, see the Management and Configuration Guide for your switch.
The following commands are available at the global config level for Timep operation:
Syntax:
show timep
Display the current timep configuration.
Syntax:
timesync <sntp|timep>
Enable either SNTP or Timep as the time synchronization method on the switch without affecting the configuration of either.
Syntax:
ip timep dhcp [interval] <1-9999>
Syntax:
ip timep manual
<ipv6-addr> [interval <1-9999>]
Enable Timep operation with a statically configured IPv6 address for a Timep server. Optionally change the interval between time requests.
Syntax:
no ip timep
Disables Timep operation. To re-enable Timep, it is necessary to reconfigure either the DHCP or the static option.
To use a global unicast IPv6 address to configure an IPv6 Timep server on the switch, the switch must be receiving advertisements from an IPv6 router on a VLAN configured on the switch.
To use a link-local IPv6 address to configure an IPv6 Timep server on the switch, it is necessary to append
%vlan
followed (without spaces) by the VLAN ID of the VLAN on which the server address is available. The VLAN must be configured on the switch. For example:
fe80::11:215%vlan10
Syntax:
ip timep dhcp [interval <1-9999>]
ip timep manual
<ipv6-addr|ipv4-addr> [interval <1-9999>]
Used at the global config level to configure a Timep server address. The switch allows one Timep server configuration.
timep dhcp
: Configures the switch to obtain the address of a Timep server from an IPv4 or IPv6 DHCP server.
timep manual
: Specifies static configuration of a Timep server address.
<ipv6-addr>
: Specifies the IPv6 address of an SNTP server.
[interval <1-9999>]
: This optional setting specifies the interval in minutes between Timep requests. Default: 720
Configuring a link-local Timep server address
To configure a link-local Timep server address of fe80::215:60ff:fe7a:adc0 where the address is on VLAN 10, configured on the switch, enter this command at the global config level:
Switch(config)# ip timep manual fe80::215:60ff:fe7a:adc0%vlan10
In the preceding example, using a link-local address requires that you specify the local scope for the address; VLAN 10 in this case. This is always indicated by
%vlan
followed immediately (without spaces) by the VLAN identifier. For a global unicast address, you would enter the address without the
%vlan
suffix.
Syntax:
show timep
Displays the current Timep configuration, including the following:
Time sync mode: Indicates whether timesync is disabled or set to either SNTP or Timep. Default: Disabled
Timep mode: Indicates whether Timep is configured to use a DHCP server to acquire a Timep server address or to use a statically configured Timep server address.
Server address: Lists the currently configured Timep server address.
Poll interval (min) [720]: Indicates the interval between consecutive time requests to the configured Timep server.
Output for the show timep command
The
show timep
output for the preceding
ip timep manual
command example would appear as follows:
Switch(config)# show timep Timep Configuration Time Sync Mode: Timep TimeP Mode [Disabled] : Manual Server Address : fe80::215:60ff:fe7a:adc0%vlan10 Poll Interval (min) [720] : 720
The
show management
command can also be used to display Timep server information.