Configuration procedure – H3C Technologies H3C WX6000 Series Access Controllers User Manual

Page 92

Advertising
background image

6-24

Configuration procedure

1) Configuration on AC 2:

# Specify the local clock as the reference source, with the stratum level of 3.

<AC2> system-view

[AC2] ntp-service refclock-master 3

# Configure NTP authentication.

[AC2] ntp-service authentication enable

[AC2] ntp-service authentication-keyid 88 authentication-mode md5 123456

[AC2] ntp-service reliable authentication-keyid 88

# Specify AC 2 as an NTP broadcast server, and specify an authentication key.

[AC2] interface vlan-interface 2

[AC2-Vlan-interface2] ntp-service broadcast-server authentication-keyid 88

2) Configuration on AC 3:

# Configure NTP authentication.

<AC3> system-view

[AC3] ntp-service authentication enable

[AC3] ntp-service authentication-keyid 88 authentication-mode md5 123456

[AC3] ntp-service reliable authentication-keyid 88

# Configure AC 3 to work in the NTP broadcast client mode.

[AC3] interface vlan-interface 2

[AC3-Vlan-interface2] ntp-service broadcast-client

Now, AC 3 can receive broadcast messages through VLAN-interface 2, and AC 2 can send broadcast

messages through VLAN-interface 2. Upon receiving a broadcast message from AC 2, AC 3

synchronizes its clock to that of AC 2.

# View the NTP status of AC 3 after clock synchronization.

[AC3-Vlan-interface2] display ntp-service status

Clock status: synchronized

Clock stratum: 4

Reference clock ID: 3.0.1.31

Nominal frequency: 64.0000 Hz

Actual frequency: 64.0000 Hz

Clock precision: 2^7

Clock offset: 0.0000 ms

Root delay: 31.00 ms

Root dispersion: 8.31 ms

Peer dispersion: 34.30 ms

Reference time: 16:01:51.713 UTC Sep 19 2005 (C6D95F6F.B6872B02)

As shown above, AC 3 has been synchronized to AC 2, and the clock stratum level of AC 3 is 4, while

that of AC 2 is 3.

# View the NTP session information of AC 3, which shows that an association has been set up between

AC 3 and AC 2.

[AC3-Vlan-interface2] display ntp-service sessions

source reference stra reach poll now offset delay disper

**************************************************************************

[1234] 3.0.1.31 127.127.1.0 3 254 64 62 -16.0 32.0 16.6

note: 1 source(master),2 source(peer),3 selected,4 candidate,5 configured

Total associations : 1

Advertising