Configuring VRF-Aware Services for NTP on the NTP Server Perform the following steps on the NTP server. Procedure Configuring Multi-VRF CE Configuring VRF-Aware Services for NTP on the NTP Server Command or Action Purpose Step 1 enable Example: Device>enable Enables privileged EXEC mode. • Enter your password if prompted. Step 2 configure terminal Example: Device#configure terminal Enters global configuration mode. Step 3 ntp authentication-key number md5 passowrd Example: Device(config)#ntp authentication-key 1 md5 cisco123 Defines the authentication keys.
The device does not synchronize to a time source unless the source has one of these authentication keys and the key number is specified by the ntp trusted-key number command. Note The authentication key number and the MD5 passowrd must be the same on both the client and server. Step 4 ntp authenticate Example: Device(config)#ntp authenticate Enables the NTP authentication feature. NTP authentication is disabled by default. Step 5 ntp trusted-key key-number Example: Device(config)#ntp trusted-key 1 Specifies one or more keys that an NTP server must provide in its NTP packets in order for the NTP client to synchronize to it. The range for trusted keys is from 1 to 65535.
This command provides protection against accidentally synchronizing the NTP client to an NTP server that is not trusted. Step 6 interface interface-id Example: Device(config)#interface gigabitethernet 1/0/3 Specifies the Layer 3 interface to be associated with the VRF, and enters the interface configuration mode. Step 7 vrf forwarding vrf-name Example: Associates the VRF with the Layer 3 interface. Configuring Multi-VRF CE 15