Network diagram
Figure 179 Network diagram for NTP configuration example
Vlan - interface2:
1.0.1.11
3Com-1
1.0.1.2
3.0.1.2
3Com-0
Vlan - interface2:
1.0.1.12
3Com-2
......
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:
3.0.1.31
3Com-3
Vlan - interface2:
3.0.1.32
3Com-4
Vlan - interface2:
3.0.1.33
3Com-5
NTP Configuration Example
767