Disabling an interface from receiving ntp messages, Displaying and maintaining ntp configuration, Ntp configuration examples – H3C Technologies H3C WX3000 Series Unified Switches User Manual

Page 465: Configuring ntp server/client mode, Configuring ntp server/client mode -14

Advertising
background image

46-14

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the maximum number of
dynamic sessions that can be
established on the local device

ntp-service
max-dynamic-sessions
number

Required
By default, up to 100 dynamic
sessions can be established
locally.

Disabling an Interface from Receiving NTP messages

Follow these steps to disable an interface from receiving NTP messages:

To do…

Use the command…

Remarks

Enter system view

system-view

Enter VLAN interface view

interface

Vlan-interface vlan-id

Disable an interface from receiving
NTP messages

ntp-service in-interface disable

Required
By default, a VLAN interface
receives NTP messages.

Displaying and Maintaining NTP Configuration

To do…

Use the command…

Remarks

Display the status of NTP services

display ntp-service status

Display the information about the sessions
maintained by NTP

display ntp-service sessions
[ verbose ]

Display the brief information about NTP servers
along the path from the local device to the
reference clock source

display ntp-service trace

Available in any view

NTP Configuration Examples

Configuring NTP Server/Client Mode

Network requirements

z

As shown in

Figure 46-6

, the local clock of Device A is to be used as a master clock, with the

stratum level of 2.

z

Device A is used as the NTP server of Device B (a WX3000 series device)

z

Configure Device B to work in the client mode, and then Device A will automatically work in the
server mode.

Figure 46-6

Network diagram for the NTP server/client mode configuration

1.0.1.11/24

1 .0.1.12/24

Device A

Device B

Advertising