3com 8807 User Guide

Page of 883
NTP Configuration Example
767
Network diagram
Figure 179   Network diagram for NTP configuration example
Configuration procedure
Configure Switch 3Com1.
# Enter system view.
<3Com1> system-view 
# Set the local clock as the master NTP clock at stratum 2.
[3Com1] ntp-service refclcok-master 2 
Configure Switch 3Com2.
# Enter system view.
<3Com2> system-view 
# Set 3Com1 as time server.
[3Com2[ ntp-service unicast-server 1.0.1.11 
# Enable authentication.
[3Com2] ntp-service authentication enable 
# Set the key.
[3Com2] ntp-service authentication-keyid 42 authentication-mode md5 
aNiceKey 
# Set the key as reliable.
[3Com2] ntp-service reliable authentication-keyid 42
 
[Qudiway2] ntp-service unicast-server 1.0.1.11 authentication-keyid 42 
The above examples synchronized 3Com2 by 3Com1. Since 3Com1 has not been 
enabled authentication, it cannot synchronize 3Com2. And now let us do the 
following additional configurations on 3Com1.
# Enable authentication.
[3Com1] ntp-service authentication enable 
...... 
Vlan - interface2: 
1.0.1.11 
3Com-0
3Com-1
3Com-2
3Com-3
3Com-4
3Com-5
Vlan - interface2: 
1.0.1.12 
Vlan - interface2: 
3.0.1.31 
Vlan - interface2: 
3.0.1.32 
Vlan - interface2: 
3.0.1.33 
1.0.1.2 3.0.1.2