CÔNG TY TNHH CÔNG NGHỆ VIỆT THÁI DƯƠNG
Logo CNTTShop.vn

NTT03, Line 1, Thống Nhất Complex, Thanh Xuân, Hà Nội.
Danh mục sản phẩm

Configure NTP IPv4 Peer Mode

Network Requirements

  • Device1, Device2, and Device3 are interconnected via their interfaces; the route is reachable.
  • Device1 sets the local clock as the reference clock and the number of the layers is 3.
  • Device2 is the NTP client; set Device1 to the NTP server.
  • Device3 sets Device2 as the peer, Device3 is the active peer, and Device2 is the passive peer.

Network Topology

Networking of configuring the NTP peer mode

Figure 4-4 Networking of configuring the NTP peer mode

Configuration Steps

Step 1: Configure the IP address of the interface. (omitted)

Step 2: On Device1, enable NTP IPv4, and configure the time zone as Beijing time zone, and the number of the local clock layers as 3.

Device1#configure terminal
Device1(config)#ntp enable
Device1(config)#clock timezone BINJING 8
Device1(config)#ntp master 3

Step 3: Device2 specifies Device1 as the NTP server.

#On Devie2, enable NTP IPv4, and configure the time zone as Beijing Timezone.

Device2#configure terminal
Device2(config)#ntp enable
Device2(config)#clock timezone BEIJING 8

#Specify the IP address of the NTP server as 1.0.0.254.

Device2(config)#ntp server 1.0.0.254

Step 4: Device3 sets Device2 as the peer.

#On Device3, enable NTP IPv4, and configure the time zone as Beijing time zone.

Device3#configure terminal
Device3(config)#ntp enable
Device3(config)#clock timezone BEIJING 8

#Specify the IP address of the NTP peer as 1.0.0.1.

Device3(config)#ntp peer 1.0.0.1

Step 5: Check the result.

#Execute the show ntp status command on the client Device2 and view the clock synchronization status information.

Device2#show ntp status
Current NTP status information
NTP ipv4 is enabled
NTP ipv6 is disabled
Clock is synchronized, stratum 4, reference is 1.0.0.254
reference time is D8E9785D.221F1F5 (03:09:17.8 Tue Apr 28 2015)

The layers of Device2 clock is 4, larger than Device1 by 1, and the reference clock server address is 1.0.0.254, indicating that the client Device2 is already synchronized with the server Device1.

#Execute the show clock command to view the device clock on the client Device2.

Device2#show clock
BEIJING(UTC+08:00) TUE APR 28 11:10:36 2015

#Execute the show ntp status command on the active peer Device3 and view the clock synchronization status information.

Device3#show ntp status
Current NTP status information
NTP ipv4 is enabled
NTP ipv6 is disabled Clock is synchronized, stratum 5, reference is 1.0.0.1
reference time is D8E9795C.29835CC9 (03:13:32.162 Tue Apr 28 2015)

The layers of Device3 clock is 5, larger than Device2 by 1, and the reference clock server address is 1.0.0.1, indicating that the active peer Device3 is already synchronized with the passive peer Device2.

#Execute the show clock command to view the device clock on client Device3.

Device3#show clock
BEIJING(UTC+08:00) TUE APR 28 11:16:19 2015