Configure NTP servers and authentication if required.
Name Type Constraint Mandatory Default Value ntp Class [ntp]No
Name Type Constraint Mandatory Default Value name String Regex: ^[^&<>! "]{1,128}$ No ntpdescription String No authentication_keys List [authentication_keys]No authoritative_ntp_server Boolean true, falseNo authoritative_ntp_server_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No authoritative_ntp_server_source_interface String Regex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)? No authoritative_ntp_server_source_interface_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No authoritative_ntp_server_stratum Integer min: 1, max: 15 No authoritative_ntp_server_stratum_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No servers List [servers]No trusted_keys List Integer[min: 1, max: 65535] No trusted_keys_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No
Name Type Constraint Mandatory Default Value id Integer min: 1, max: 4294967295 No id_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No md5_value String min: 1 No md5_value_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No
Name Type Constraint Mandatory Default Value authentication_key Integer min: 1, max: 4294967295 No authentication_key_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No hostname_ip IP No hostname_ip_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No prefer Boolean true, falseNo prefer_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No source_interface String Regex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)? No source_interface_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No ntp_version Integer min: 0, max: 4 No ntp_version_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No vpn_id Integer min: 0, max: 65530 No vpn_id_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,128}$ No
Example-1: Example shows a basic NTP configuration where edge is using two NTP servers in VPN0 without authentication.
description : this is test system profile
description : " Base NTP template; no auth key; no ntp master "
- hostname_ip : time-pnp.cisco.com
source_interface : Loopback0
- hostname_ip : time.google.com
source_interface : Loopback0
Example-2: Example where edges are connecting to enterprise NTP servers inside service VPN 10 and are using authentication keys. First server is defined with static values while second one uses variables. Variables would be used for example if using same template and customer has regional NTP servers.
description : " System profile for NTP example "
description : " NTP template in service VPN and with authentication "
- hostname_ip : 172.16.0.11
source_interface : Loopback0
- hostname_ip_variable : system_ntp_server2_ip
prefer_variable : system_ntp_server2_prefer
source_interface_variable : ntp_server2_source_interface
vpn_id_variable : system_ntp_server2_vpnid
authentication_key_id_variable : system_ntp_server2_keyid
Configure NTP servers and authentication if required.
Name Type Constraint Mandatory Default Value ntp Class [ntp]No
Name Type Constraint Mandatory Default Value name String Regex: ^[^&<>! "]{1,128}$ No ntpdescription String No authentication_keys List [authentication_keys]No authoritative_ntp_server Boolean true, falseNo authoritative_ntp_server_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No authoritative_ntp_server_source_interface String Regex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)? No authoritative_ntp_server_source_interface_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No authoritative_ntp_server_stratum Integer min: 1, max: 15 No authoritative_ntp_server_stratum_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No servers List [servers]No trusted_keys List Integer[min: 1, max: 65535] No trusted_keys_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No
Name Type Constraint Mandatory Default Value id Integer min: 1, max: 65535 No id_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No md5_value String min: 1 No md5_value_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No
Name Type Constraint Mandatory Default Value authentication_key Integer min: 1, max: 65535 No authentication_key_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No hostname_ip IP No hostname_ip_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No prefer Boolean true, falseNo prefer_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No source_interface String Regex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)? No source_interface_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No ntp_version Integer min: 0, max: 4 No ntp_version_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No vpn_id Integer min: 0, max: 65530 No vpn_id_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No
Example-1: Example shows a basic NTP configuration where edge is using two NTP servers in VPN0 without authentication.
description : this is test system profile
description : " Base NTP template; no auth key; no ntp master "
- hostname_ip : time-pnp.cisco.com
source_interface : Loopback0
- hostname_ip : time.google.com
source_interface : Loopback0
Example-2: Example where edges are connecting to enterprise NTP servers inside service VPN 10 and are using authentication keys. First server is defined with static values while second one uses variables. Variables would be used for example if using same template and customer has regional NTP servers.
description : " System profile for NTP example "
description : " NTP template in service VPN and with authentication "
- hostname_ip : 172.16.0.11
source_interface : Loopback0
- hostname_ip_variable : system_ntp_server2_ip
prefer_variable : system_ntp_server2_prefer
source_interface_variable : ntp_server2_source_interface
vpn_id_variable : system_ntp_server2_vpnid
authentication_key_id_variable : system_ntp_server2_keyid
Configure NTP servers and authentication if required.
Name Type Constraint Mandatory Default Value ntp Class [ntp]No
Name Type Constraint Mandatory Default Value name String Regex: ^[^&<>! "]{1,128}$ No ntpdescription String No authentication_keys List [authentication_keys]No authoritative_ntp_server Boolean true, falseNo authoritative_ntp_server_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No authoritative_ntp_server_source_interface String Regex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)? No authoritative_ntp_server_source_interface_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No authoritative_ntp_server_stratum Integer min: 1, max: 15 No authoritative_ntp_server_stratum_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No servers List [servers]No trusted_keys List Integer[min: 1, max: 65535] No trusted_keys_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No
Name Type Constraint Mandatory Default Value id Integer min: 1, max: 65535 No id_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No md5_value String min: 1 No md5_value_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No
Name Type Constraint Mandatory Default Value authentication_key Integer min: 1, max: 65535 No authentication_key_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No hostname_ip IP No hostname_ip_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No prefer Boolean true, falseNo prefer_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No source_interface String Regex: ^(GigabitEthernet|Loopback|TenGigabitEthernet|TwoGigabitEthernet|FortyGigabitEthernet|HundredGigE|Vlan)(([1-9]\d|\d)/){0,2}(0|[1-9]\d*)([:|\.][1-9]\d*)? No source_interface_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No ntp_version Integer min: 0, max: 4 No ntp_version_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No vpn_id Integer min: 0, max: 65530 No vpn_id_variable String Regex: ^[./\[\]a-zA-Z0-9_-]{1,64}$ No
description : this is test system profile
description : " Base NTP template; no auth key; no ntp master "
- hostname_ip : 172.16.0.11
source_interface_variable : ntp_server_source_interface
- hostname_ip : time-pnp.cisco.com
source_interface : GigabitEthernet0/0/0