ntp server 
 
   
  Specifies or adds an NTP server IP address and optionally associates an authentication key to the server. 
  
 Syntax
 
	 
				ntp server
				{ip_address
					}
					[
					source-interface-type
					{ethernet
					source-interface-number
					|
					loopback
					source-interface-number
					|
					management
					source-interface-number|
					ve
					source-interface-number
					}][
					key
					key_id
					]
					[
					maxpoll
					interval
					]
					[
					minpoll
					interval]
					[
					use-vrf
					vrf_name]
					[
					version
					3 | 4
					]
			
 
	 
				no ntp server
				{ip_address
					}
				
			
  
	 Command Default
 
		 No default peer is configured. 
 
	 
		Parameters
			
				
					- ip_address
					
- Specifies the IPv4 or IPv6
						address of the NTP peer. 
- source-interface-type
- Specifies the type of interface. 
							
								- ethernet
- Specifies an Ethernet interface as the source type.
- loopback
- Specifies a loopback interface as the source type.
- management
- Specifies a management interface as the source type.
- ve
									
- Specifies a VE as the source type.
- source-interface-number
- Specifies the interface number. Valid values range from 1
									through 4096.
 
- key
							key_id
					
- Specifies the symmetric key
						ID. By default, no symmetric key is configured. The range is 1 to 65,534.
					
- maxpoll
							interval
					
- Specifies the longest polling
						interval. The range is 4 to 17. Default is 10. The interval argument is
						power of 2, for example: 3=8s, 4=16s, 5=32s, 6=64s, 7=128s, 8=256s, 9=512s.
					
- minpoll
							interval
					
- Specifies the shortest
						polling interval. The range is 4 to 17. The default is 6. The interval
						argument is power of 2, for example: 3=8s, 4=16s, 5=32s, 6=64s, 7=128s,
						8=256s, 9=512s. 
- use-vrfvrf_name
					
-  Specifies the VRF name to
						synchronize the time with server. The default is mgmt-vrf. 
- version
							3 | 4
					
- Specifies the NTP version
						supported by the peer. The default is 4. 
Modes
 
		 Global configuration mode 
		
 
	 
 
	 Usage Guidelines
 
		 Use this command to add an NTP server IPv4 or IPv6 address to a list of server IP addresses, or to associate an existing authentication key with an NTP server IP address. 
		
 
		 The maximum number of NTP servers allowed is five. 
		
 
		 Network Time Protocol (NTP) commands must be configured on each individual switch. 
		
 
		 Use the 
		  no ntp server 
		  ip-address command to remove the specified NTP server IP address. Removing the current active NTP server resets the NTPstatus to "LOCL" until a new, active server is selected. 
		
 
		 Use the 
		  no ntp server 
		  ip-address 
		  key 
		  key-id command to remove the key from the specified NTP IP address. 
		
 
		By default, all management services are enabled on the management VRF ("mgmt-vrf") and the default VRF ("default-vrf"). 
		
 
	 
 Examples
 
	  
		This example associates a configured key ID of
					15 to an NTP server on the management VRF. 
 
		device(config)# ntp peer 1.2.3.4
device(config-server-1.2.3.4/mgmt-vrf)# key 15