H3C S3600 Series Operation Manual
Hide thumbs Also See for S3600 Series:

Advertisement

Operation Manual - NTP
H3C S3600 Series Ethernet Switches-Release 1510
Chapter 1 NTP Configuration ....................................................................................................... 1-1
1.1 Introduction to NTP ............................................................................................................ 1-1
1.1.1 Applications of NTP................................................................................................. 1-1
1.1.2 Implementation Principle of NTP............................................................................. 1-2
1.1.3 NTP Implementation Modes.................................................................................... 1-4
1.2 Configuring NTP Implementation Modes........................................................................... 1-6
1.2.1 Configuration Prerequisites..................................................................................... 1-6
1.2.2 Configuration Procedure ......................................................................................... 1-7
1.3 Configuring Access Control Right...................................................................................... 1-9
1.4 Configuring NTP Authentication ........................................................................................ 1-9
1.4.1 Configuration Prerequisites................................................................................... 1-10
1.4.2 Configuration Procedure ....................................................................................... 1-10
1.5 Configuring Optional NTP Parameters ............................................................................ 1-12
1.6 Displaying and Debugging NTP....................................................................................... 1-13
1.7 Configuration Example .................................................................................................... 1-13
1.7.1 Configuring NTP Server Mode .............................................................................. 1-13
1.7.2 Configuring NTP Peer Mode ................................................................................. 1-15
1.7.3 Configuring NTP Broadcast Mode ........................................................................ 1-16
1.7.4 Configuring NTP Multicast Mode .......................................................................... 1-19
1.7.5 Configuring NTP Server Mode with Authentication............................................... 1-21

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading

Summary of Contents for H3C S3600 Series

  • Page 1: Table Of Contents

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Table of Contents Table of Contents Chapter 1 NTP Configuration ....................... 1-1 1.1 Introduction to NTP ......................1-1 1.1.1 Applications of NTP....................1-1 1.1.2 Implementation Principle of NTP................1-2 1.1.3 NTP Implementation Modes..................1-4 1.2 Configuring NTP Implementation Modes................
  • Page 2: Chapter 1 Ntp Configuration

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Chapter 1 NTP Configuration 1.1 Introduction to NTP Network time protocol (NTP) is a time synchronization protocol defined in RFC1305. It is used for time synchronization between a set of distributed time servers and clients.
  • Page 3: Implementation Principle Of Ntp

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Note: The clock stratum determines the accuracy, which ranges from 1 to 16. The stratum of a reference clock ranges from 1 to 15. The clock accuracy decreases as the stratum number increases.
  • Page 4 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration NTP packet 10:00:00 am NTP Packet NTP Packet NTP Packet NTP Packet NTP Packet NTP Packet NTP Packet 10:00:00 am 10:00:00 am 10:00:00 am 10:00:00am 10:00:00am...
  • Page 5: Ntp Implementation Modes

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration 1.1.3 NTP Implementation Modes According to the network structure and the position of the local Ethernet switch in the network, the local Ethernet switch can work in multiple NTP modes to synchronize the clock.
  • Page 6 Figure 1-5 Multicast mod Table 1-1 describes how the above mentioned NTP modes are implemented on S3600 series Ethernet switches. Table 1-1 NTP implementation modes on S3600 series Ethernet switches implementation Configuration on S3600 series switches mode Configure the local S3600 Ethernet switch to operate in the NTP server mode.
  • Page 7: Configuring Ntp Implementation Modes

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration implementation Configuration on S3600 series switches mode Configure the local S3600 Ethernet switch to operate in NTP broadcast server mode. In this mode, the local switch broadcasts NTP packets through the VLAN interface configured on the switch.
  • Page 8: Configuration Procedure

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration 1.2.2 Configuration Procedure Table 1-2 Configure NTP implementation modes Operation Command Description Enter system view system-view — ntp-service unicast-server remote-ip Optional Configure the switch to server-name...
  • Page 9 Note: To reduce the risk of being attacked by malicious users against opened socket and enhance switch security, the S3600 series Ethernet switches provide the following functions, so that a socket is opened only when it is needed: Opening UDP port 123 (used for NTP) when NTP is enabled;...
  • Page 10: Configuring Access Control Right

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration IV. NTP multicast server mode When an S3600 Ethernet switch operates in NTP multicast server mode, it multicasts clock synchronization packets periodically. The devices in the NTP multicast client mode will respond to these packets and start the clock synchronization process.
  • Page 11: Configuration Prerequisites

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration 1.4.1 Configuration Prerequisites NTP authentication configuration involves: Configuring NTP authentication on the client Configuring NTP authentication on the server Observe the following principles when configuring NTP authentication:...
  • Page 12 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Note: NTP authentication requires that the authentication keys configured for the server and the client are the same. Besides, the authentication keys must be trusted keys.
  • Page 13: Configuring Optional Ntp Parameters

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Note: The procedure for configuring NTP authentication on the server is the same as that on the client. Besides, the client and the server must be configured with the same authentication key.
  • Page 14: Displaying And Debugging Ntp

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration 1.6 Displaying and Debugging NTP After the above configurations, you can execute display commands in any view to display the running status of switch, and verify the effect of the configurations.
  • Page 15 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration <S3600> display ntp-service status Clock status: unsynchronized Clock stratum: 16 Reference clock ID: none Nominal frequency: 60.0002 Hz Actual frequency: 60.0002 Hz Clock precision: 2^18 Clock offset: 0.0000 ms Root delay: 0.00 ms...
  • Page 16: Configuring Ntp Peer Mode

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration 1.7.2 Configuring NTP Peer Mode I. Network requirements The local clock of H3C2 is set to the NTP master clock, with the clock stratum level of 2.
  • Page 17: Configuring Ntp Broadcast Mode

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration [H3C3] ntp-service unicast-peer 3.0.1.33 The S3600 Ethernet switch and H3C3 are a pair of peers. H3C3 operates in active peer mode, while the S3600 Ethernet switch operates in passive peer mode. Because the stratum level of the local clock of H3C3 is 1, and that of the S3600 Ethernet switch is 3, the S3600 Ethernet switch is synchronized to H3C3.
  • Page 18 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Note: This example assumes that H3C3 is a switch that supports the local clock being the master clock. II. Network diagram 3.0.1.31/24 3.0.1.31/24 Vlan-inte Vlan-inte rface 2...
  • Page 19 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration Configure S3600-2 # Enter system view. <S3600-2> system-view [S3600-2] # Enter Vlan-interface2 view. [S3600-2] interface Vlan-interface 2 [S3600-2-Vlan-interface2] # Set S3600-2 to a broadcast client. [S3600-2-Vlan-interface2] ntp-service broadcast-client...
  • Page 20: Configuring Ntp Multicast Mode

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration 1.7.4 Configuring NTP Multicast Mode I. Network requirements The local clock of H3C3 is set to the NTP master clock, with a clock stratum level of 2.
  • Page 21 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration [S3600-1] # Enter Vlan-interface2 view. [S3600-1] interface Vlan-interface 2 # Set S3600-1 to a multicast client. [S3600-1-Vlan-interface2] ntp-service multicast-client Configure S3600-2. # Enter system view. <S3600-2> system-view [S3600-2] # Enter Vlan-interface2 view.
  • Page 22: Configuring Ntp Server Mode With Authentication

    Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration [1]3.0.1.31 127.127.1.0 15.4 note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured 1.7.5 Configuring NTP Server Mode with Authentication I. Network requirements The local clock of H3C1 is set to the NTP master clock, with a clock stratum level of 2.
  • Page 23 Operation Manual – NTP H3C S3600 Series Ethernet Switches-Release 1510 Chapter 1 NTP Configuration [S3600] ntp-service unicast-server 1.0.1.11 authentication-keyid 42 After the above configurations, S3600 is ready to synchronize with H3C1. Because the NTP authentication function is not enabled on H3C1, S3600 will fail to be synchronized to H3C1.

Table of Contents