cisco — Configuring VRF-Aware Services for NTP on NTP Client

Configuring Multi-VRF CE Configuring VRF-Aware Services for NTP on NTP Client Command or Action Purpose Step 4 vrf forwarding vrf-name Example: Device(config-if)#vrf forwarding A Associates the VRF with the Layer 3 interface. Step 5 ip address ip-address subnet-mask Example: Device(config-if)#ip address 1.1.1.1 255.255.255.0 Enter the IP address for the interface. Step 6 no shutdown Example: Device(config-if)#no shutdown Enables the interface. Step 7 exit Example: Device(config-if)exit Exits the interface configuration mode. Step 8 ntp authentication-key number md5 md5-number 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 9 ntp authenticate Example: Device(config)#ntp authenticate Enables the NTP authentication feature. NTP authentication is disabled by default. Step 10 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 11 ntp server vrf vrf-name Example: Device(config)#ntp server vrf A 1.1.1.2 key 1 Configures NTP server in the specified VRF. Configuring Multi-VRF CE 14