4.2 NTP Operating Flashcards

Configure and verify NTP operating in a client and server mode. (28 cards)

1
Q

What is the primary function of Network Time Protocol (NTP)?

A

It synchronizes time across devices.

NTP ensures consistent timestamps across network devices, improving log accuracy and security functions.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does a lower stratum number indicate about an NTP server’s accuracy?

A

Greater accuracy

In NTP (Network Time Protocol), a lower stratum number means the server is closer to the reference clock, making it a more precise time source.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How many servers can an NTP client use to synchronize time?

A

Multiple

An NTP client can connect to several servers to determine the most accurate time, rather than relying on a single source.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What is the purpose of the ‘ntp master’ command in NTP configuration?

A

It allows a device to act as an NTP server.

The ntp master command enables a device to serve time using its internal clock but does not prevent it from synchronizing with external servers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What does the term ‘stratum’ refer to in NTP?

A

It describes the distance between a device and the reference clock.

Stratum levels indicate how close a time source is relative to the primary reference clock, with lower levels indicating closer proximity.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Which command displays NTP associations on a device?

A

‘show ntp associations’

This command provides detailed information about NTP servers associated with the device, including their addresses and polling intervals.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which command shows the current date and time on a device?

A

‘show clock’

The ‘show clock’ command outputs the current date and time in a 24-hour format for the device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What can happen if routers R1 and R2 do not synchronize their clocks?

A

Log messages may appear unrelated.

Differing timestamps across devices can complicate troubleshooting and event correlation.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What command is used to set the timezone on a router?

A

clock timezone {timezone} {offset}

This command configures the local timezone by specifying an offset from UTC.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What does the command ‘ntp master {stratum-level}’ do?

A

It sets the router as an NTP server with a defined stratum level.

The stratum-level parameter assigns a priority to the device as a time source. However, it does not override other NTP settings, meaning the router can still sync with external sources if allowed.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What command is used to configure a router as an NTP client?

A

ntp server {address | hostname}

This command enables the router to sync its clock with an external NTP server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What is the significance of the stratum level in NTP?

A

Lower stratum means higher accuracy.

Stratum levels range from 1 (most accurate) to 15. Stratum 16 indicates an unusable clock.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

True or False:

NTP clients can also act as NTP servers.

A

True

NTP clients can redistribute time to downstream devices, forming an NTP hierarchy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Fill in the blank:

Before enabling NTP, it is important to set the device clock using ‘______ ______’.

A

clock set

Manually setting the clock prevents large time jumps when NTP first synchronizes.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

What does a status of ‘synchronized’ indicate in NTP?

A

The client has adjusted its clock.

A synchronized NTP client has successfully matched its time to a server.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What command is used to verify NTP client status?

A

show ntp status

This command confirms synchronization state, stratum level, and reference clock details.

17
Q

What is the purpose of the ‘clock summer-time’ command?

A

It configures daylight savings time.

This command adjusts the clock automatically during daylight saving transitions.

18
Q

What does the stratum level indicate in NTP?

A

Accuracy of the reference clock.

Lower stratum levels indicate greater accuracy, with stratum 1 being the most precise.

19
Q

What is the default stratum level for routers and switches in NTP?

A

8

The default NTP stratum level for Cisco devices is 8 unless manually configured.

20
Q

What happens to devices that calculate their stratum as 16 in NTP?

A

It considers time data unreliable.

A stratum 16 device does not trust its time source and will not distribute time to clients.

21
Q

What does the ntp master command do?

A

It configures a device as an authoritative NTP server.

The command allows a router to serve as an authoritative NTP source with a defined stratum level (1–15).

22
Q

List ways routers can maintain NTP if external servers fail.

A
  1. Use ntp master as an internal time source.
  2. Synchronize with a local peer (ntp peer).
  3. Maintain previously learned time.
  4. Use a backup internal NTP server.

The ntp master command alone is not the only solution. Peer synchronization and fallback configurations help ensure time accuracy in case of external server failure.

23
Q

True or False:

The ntp master command forces a device to use its own clock and ignore other sources.

A

False

The command allows the device to act as a time server but does not disable synchronization with external NTP servers unless additional restrictions are applied.

24
Q

What is the benefit of using a loopback interface for NTP?

A

It ensures NTP stability.

A loopback interface remains active as long as the router is up, preventing disruptions due to physical interface failures.

25
What is the **default NTP version** used on Cisco devices?
NTPv4 ## Footnote Cisco devices use **NTPv4** by default, which supports both IPv4 and IPv6, *improved security features*, and *better time accuracy* compared to older versions like NTPv3.
26
Why should **NTP authentication** be configured in a network?
To prevent **unauthorized NTP servers** from altering time synchronization. ## Footnote NTP authentication uses MD5 or SHA hash keys to verify *trusted NTP sources,* ensuring that only authenticated servers can provide time updates.
27
List common **NTP synchronization states** from **'show ntp status'**.
1. Unsynchronized 1. Synchronized 1. Clock unsynced 1. Stratum level displayed ## Footnote **Unsynchronized** – No valid NTP source. **Synchronized** – The device is using an NTP source successfully. **Clock unsynced** – The device has not yet adjusted its clock. **Stratum level displayed** – Shows the stratum level of the selected time source.
28
# True or False: The ntp server and ntp peer commands serve **the same function**.
False ## Footnote **ntp server**: Configures a device to receive time from an external server. **ntp peer**: Establishes bidirectional time synchronization between two equal devices.