Ruijie Community

Title: How to configure NTP in Ruijie Switch? [Print this page]

Author: GTAC-Sophia    Time: 2023-7-14 10:32
Title: How to configure NTP in Ruijie Switch?

ConfigurationTips
1. Basic network routes setting
2. (Optional) Configuring a switch as NTP Server
3. Configuring a switch as NTP client
4. (Optional) Specifying an interface on switch to communicate with NTP Server
Configuration Steps
NTP configuration without authentication
1. Basic network routes setting
Ensure that NTP client can communicate with the NTPserver
2. (Optional)Configuring a switch as NTP Server
Note
Mostly, the NTP server is a particular server rather than a switch in production network. This example shows how to configure a switch as an NTP server:
Ruijie(config)#ntp master
3. Configuring a switch as NTP client
Ruijie(config)#ntp server 192.168.2.1 ------>set NTP server IP address
Ruijie(config)#ntp update-calendar ------>allow system to save clock in hardware even power interruption
4. (Optional)Specifying an interface on switch to communicate with NTP Server
Ruijie(config)#ntp server 192.168.1.2 source loopback 0 ------> specify interface loopback 0 to communicate with NTP Server
NTP configuration with authentication
1. Basic network routes setting
Ensure that NTP client can communicate with the NTP server
2. (Optional) Configuring a switch as NTP Server
Note
Mostly, the NTP server is a particular server rather than a switch in production network. This example shows how to configure a switch as a NTP server and how to configure NTP authentication on a switch NTP Server
Ruijie(config)#ntp master
Ruijie(config)#ntp authenticate ------>enableNTP authentication
Ruijie(config)#ntp authentication-key 6 md5 ruijie------>NTP key id is "6" , and password is "ruijie"Ruijie(config)#ntp trusted-key 6
3.Configuringa switch as an NTP client
Ruijie(config)#ntp update-calendar ------>allowsystem to save clock in hardware even power interruption Ruijie(config)#ntpauthenticate ------>enable NTP authentication
Ruijie(config)#ntp authentication-key 6 md5 ruijie------>NTP key id is "6" , and password is "ruijie"Ruijie(config)#ntp trusted-key 6
Ruijie(config)#ntp server 192.168.2.1 key 6------>apply key id 6 to corresponding NTP server 192.168.2.1
4.(Optional)Specifying an interface on switch to communicate with NTP Server
Ruijie(config)#ntp server 192.168.1.2 sourceloopback 0 ------>specify interface loopback 0 to communicate with NTP Server





Welcome to Ruijie Community (https://community.ruijienetworks.com/) Powered by Discuz! X3.2