User Tools

Site Tools


ruijie:switch:ntp

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ruijie:switch:ntp [2020/09/17 21:54] – created aperezruijie:switch:ntp [2020/09/22 18:55] (current) aperez
Line 36: Line 36:
 NTP configuration without authentication NTP configuration without authentication
  
-1. Basic network routes setting+**1. Basic network routes setting**
  
 Ensure that NTP client can communicate with the NTP server Ensure that NTP client can communicate with the NTP server
  
- +**2. (Optional) Configuring a switch as NTP Server**
  
-2(Optional) Configuring a switch as NTP Server+Note: Mostly NTP server is a particular server rather than a switch in production networkThis example shows how to configure a switch as NTP server:
  
-Note: 
  
-Mostly 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:+Ruijie(config)#**ntp master**   
  
-Ruijie(config)#ntp master    
- 
-  
  
-3. Configuring a switch as NTP client+**3. Configuring a switch as NTP client**
  
 Ruijie(config)#ntp server 192.168.2.1   ------>set NTP server IP address Ruijie(config)#ntp server 192.168.2.1   ------>set NTP server IP address
Line 59: Line 55:
  
    
- +**4. (Optional) Specifying a interface on switch to communicate with NTP Server**
-4. (Optional) Specifying a 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 Ruijie(config)#ntp server 192.168.1.2 source loopback 0   ------> specify interface loopback 0 to communicate with NTP Server
  
-  
  
-NTP configuration with authentication+**NTP configuration with authentication**
  
-1. Basic network routes setting+**1. Basic network routes setting**
  
 Ensure that NTP client can communicate with the NTP server Ensure that NTP client can communicate with the NTP server
  
-  
  
-2. (Optional) Configuring a switch as NTP Server+**2. (Optional) Configuring a switch as NTP Server**
  
-Note: 
  
-Mostly 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+Note:Mostly 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 master   +Ruijie(config)#**ntp authenticate**    ------>enable NTP authentication
  
-Ruijie(config)#ntp authenticate    ------>enable NTP authentication+Ruijie(config)#**ntp authentication-key 6 md5 ruijie**     ------>NTP key id is "6" , and password is "ruijie"
  
-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 trusted-key 6     
  
- +**3. Configuring a switch as NTP client**
  
-3. Configuring a switch as NTP client+Ruijie(config)#**ntp update-calendar**      ------>allow system to save clock in hardware even power interruption
  
-Ruijie(config)#ntp update-calendar      ------>allow system to save clock in hardware even power interruption+Ruijie(config)#**ntp authenticate**    ------>enable NTP authentication
  
-Ruijie(config)#ntp authenticate    ------>enable NTP authentication+Ruijie(config)#**ntp authentication-key 6 md5 ruijie**     ------>NTP key id is "6" , and password is "ruijie"
  
-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 trusted-key 6  +Ruijie(config)#**ntp server 192.168.2.1 key 6**    ------>apply key id to corresponding NTP server 192.168.2.1
  
-Ruijie(config)#ntp server 192.168.2.1 key 6    ------>apply key id 6 to corresponding NTP server 192.168.2.1+**4. (OptionalSpecifying a 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
- +
-4. (Optional) Specifying a 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+
  
    
 **V. Verification** **V. Verification**
  
-1. This example displays the clock on NTP server+**1. This example displays the clock on NTP server**
  
 {{:ruijie:switch:image014.png?400|}} {{:ruijie:switch:image014.png?400|}}
  
-2. This example displays the clock on NTP client before synchronization+**2. This example displays the clock on NTP client before synchronization**
  
 {{:ruijie:switch:image015.png?400|}} {{:ruijie:switch:image015.png?400|}}
  
-3. This example displays NTP status on NTP client before synchronization+**3. This example displays NTP status on NTP client before synchronization**
  
 {{:ruijie:switch:image016.png?400|}} {{:ruijie:switch:image016.png?400|}}
  
-4. System returns a message after synchronizing successfully:+**4. System returns a message after synchronizing successfully:**
  
 *Mar 12 10:55:04: %SYS-6-CLOCKUPDATE: System clock has been updated to 10:55:04 UTC Tue Mar 12 2013. *Mar 12 10:55:04: %SYS-6-CLOCKUPDATE: System clock has been updated to 10:55:04 UTC Tue Mar 12 2013.
Line 132: Line 119:
  
 {{:ruijie:switch:image017.png?400|}} {{:ruijie:switch:image017.png?400|}}
- 
- 
- 
-  
ruijie/switch/ntp.1600397674.txt.gz · Last modified: 2020/09/17 21:54 by aperez

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki