NTP Flashcards
Network Time Protocol
What is the purpose of NTP
Synchronizing internal clocks across all devices on a network
What is the command to view the time in Cisco IOS
sh clock
What is the default timezone for Cisco devices
UTC
What is the command to view the time source on Cisco devices
sh clock detail
What is the default time source for Cisco devices
Hardware calendar
T/F: Hardware calendar is considered an authoritative source
F
Internal hardware clock of a device will drift over time, so it is not the ideal source
What does an asterisk in front of the output of sh clock mean?
The time is not considered authoritative
What is the most important reason to have an accurate time on a device?
Accurate log keeping for troubleshooting purposes
What is the command to view a device’s logs
sh logging
What is the command to manually configure the time on a Cisco device
clock set
What config mode do you need to be in for clock commands
Priviledged EXEC mode
What is the command to manually configure the hardware clock (aka calendar)
calendar set
T/F: You never want the calendar and the clock on a device synchronized
F
It is always a good idea for the calendar and the clock to be synchronized
What is the command to view a device’s hardware clock
sh calendar
What is the command to sync a device’s calendar to its clock time
clock update-calendar
What is the command to sync a device’s clock to the calendar time
clock read-calendar
What is the command to configure the time zone on a Cisco device
clock timezone
T/F: Timezone must be configured from global config mode since it is part of the device’s running config
T
T/F: Timezone must be configured from priviledged EXEC mode since it is not part of the device’s running config
F
Timezone is part of the running config and therefore has to be changed in global config mode
What is the command to enable daylight savings time automatic adjustment
clock summer-time (timezone) recurring (day to switch) (day to switch back)
NTP prevents us from having to manually configure _____
time on devices connected to the network
T/F: NTP doesn’t prevent device clocks from drifting and becoming out of sync
F
Part of NTP’s purpose is to provide clock synchronization across multiple devices
T/F: It is possible for a device to become an NTP server and an NTP client at the same time
T
Generally, NTP provides an accuracy of within _____ if the NTP server is in the same LAN
~1 millisecond
Generally, NTP provides an accuracy of within _____ if the NTP server is over a WAN or the internet
~50 milliseconds
What is the distance of an NTP server from the original reference clock referred to as
Stratum
The farther away from a reference clock, the higher the ______ of the server
stratum
T/F: A reference clock is stratum 0 within the NTP hierarchy
T
What is a reference clock?
A very accurate timekeeping device like an atomic clock or a GPS clock
Describe a stratum 1 NTP server
An NTP server that is directly connected to a reference clock
T/F: Cisco devices generally can’t get their time from a stratum 0 source
T
Cisco devices generally need to be connected to a stratum 1 or higher source
T/F: A stratum 2 server is directly connected to a stratum 1 server and gets its time from the stratum 1 server
T
Stratum 2 servers get their time from stratum 1 servers
T/F: A stratum 3 server is directly connected to a stratum 0 server and gets its time from the stratum 0 server
F
Stratum 3 servers get their time from a stratum 2 server
What is the maximum stratum before an NTP server is considered unreliable
Stratum 15
T/F: NTP devices can peer with devices at the same stratum to provide a more accurate time and redundancy
T
When an NTP server is peered with another NTP server on the same stratum, it is referred to as being in ______
symmetric active mode
T/F: A Cisco device cannot be in server, client, and symmetric active mode (all 3) at the same time
F
Cisco devices can operate in all 3 modes
T/F: An NTP client cannot sync to multiple servers at the same time
F
An NTP client can sync to multiple NTP servers
NTP servers which get their time directly from reference clocks are referred to as _____
primary servers
Define an NTP primary server
One which is directly connected to a reference clock
T/F: Stratum 1 servers can also be called secondary servers
F
They could be called primary servers
NTP servers which get thier time from other NTP servers are called ____
Secondary servers
Secondary servers operate in both ____ and ____ modes at the same time
Client, server
NTP servers with stratum 2 and above are ____
secondary servers
What is the command to add an NTP server to a Cisco device?
ntp server ip-address
What is the command to manually have a Cisco device prefer a certain NTP server?
ntp server ip-address preferred
What is the command to view NTP servers for a Cisco device?
sh ntp associations
What is the command to get an overview of the NTP configuration on a Cisco device
sh ntp status
T/F: NTP uses only the UTC time zone. To compensate, the time zone must be configured on the individual device
T
What is the command to configure a router to update the hardware clock with the time learned via NTP
ntp update-calendar
T/F: Normally, it is a bad idea to configure all devices to sync to public NTP servers in a small network
F
Best practice is to use public NTP servers for small networks. NTP servers are only needed for larger enterprise networks
What is the command to change the source interface for NTP messages on a Cisco router?
ntp source interface
Why is is best practice to configure the NTP source int as a loopback int?
Since loopbacks can’t physically fail, there is no possibility for an interface failure to cause a device to loose its NTP connection.
tl;dr reduces failure probability
After manually configuring the system clock and issuing the ntp server 1.1.1.1 command, what should be done to complete a basic NTP client configuration?
Nothing, the basic configuration is complete.
Issuing the ntp server command from global config mode enables ______
NTP static client mode
R1 is connected to a subnet of NTP stratum 1 servers on its g0/0 interface. We want to configure R1 to receive its time from any NTP server on this connected subnet. What command should be issued?
ntp broadcast client on g0/0
TOCK is an NTP stratum 2 server with the IP address 10.255.0.1
We want to configure R1 to synchronize its time from TOCK. What command should be issued to accomplish this?
ntp server 10.255.0.1
R1 is configured to synchronize its time from TOCK, a stratum 2 NTP server. We want to configure R1 to act as an NTP server for its connected devices, while R1 still synchronizes with TOCK. What command should be issued to accomplish this?
ntp master 3
R1 gets its time from TOCK, a stratum 2 server, so it is therefore stratum 3
Issuing the ntp peer command from global config mode enables _____
NTP symmetric active mode