Skip to main content

Configuration du NTP

NTP: Network Time Protocol

Introduction

Pour effectuer une synchronisation NTP, il faut tout d'abord que le switch puisse aller sur internet

Procurve switch 2650# configure terminal
Procurve switch 2650(config)# vlan 1
Procurve switch 2650(vlan-1)# ip address 192.168.1.100 255.255.255.0
Procurve switch 2650(vlan-1)# exit
Procurve switch 2650(config)# ip default-gateway 192.168.1.1
Procurve switch 2650(config)# 
Configuration du SNTP
Procurve switch 2650(config)# timesync sntp
Procurve switch 2650(config)# sntp server 194.2.0.28
Procurve switch 2650(config)# sntp unicast
Vérification
Procurve switch 2650# show sntp

SNTP Configuration

	Time Sync Mode: sntp
    SNTP Mode: unicast
    Poll Interval (sec) [720] : 720
    
    IP Address			Protocol Version
    -------------		----------------
    194.2.0.28			3

Procurve switch 2650# show time
Sun Dec 12 10:29:05 2021
Configuration du NTP
Procurve switch 2650(config)# ip timep manual 194.2.0.58
Procurve switch 2650(config)# timesync timep
Vérification
Procurve switch 2650# show timep

 Timep Configuration
 	
    Time Sync Mode: Timep
    TimeP Mode [Disabled] : Manual		Server Address : 194.2.0.58
    Poll Interval (min) [720] : 720

Procurve switch 2650# show time
Sun Dec 12 10:37:16 2021
Configuration statique
ProCurve Switch 2650(config)# time 09:56
Mon Jan  1 09:56:36 1990
ProCurve Switch 2650(config)# time 05/14/2022
Sat May 14 09:56:50 2022