Disabling an interface from receiving ntp messages, Displaying ntp configuration – H3C Technologies H3C S3100 Series Switches User Manual

Page 704

Advertising
background image

1-14

Configuring the Number of Dynamic Sessions Allowed on the Local Switch

A single device can have a maximum of 128 associations at the same time, including static associations

and dynamic associations. A static association refers to an association that a user has manually created

by using an NTP command, while a dynamic association is a temporary association created by the

system during operation. A dynamic association will be removed if the system fails to receive messages

from it over a specific long time. In the server/client mode, for example, when you carry out a command

to synchronize the time to a server, the system will create a static association, and the server will just

respond passively upon the receipt of a message, rather than creating an association (static or

dynamic). In the symmetric mode, static associations will be created at the symmetric-active peer side,

and dynamic associations will be created at the symmetric-passive peer side; In the broadcast or

multicast mode, static associations will be created at the server side, and dynamic associations will be

created at the client side.

Table 1-15 Configure the number of dynamic sessions allowed on the local switch

Operation

Command

Description

Enter system view

system-view

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

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

Table 1-16 Disable an interface from receiving NTP messages

Operation

Command

Description

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 NTP Configuration

After the above configurations, you can execute the display commands in any view to display the

running status of switch, and verify the effect of the configurations.

Table 1-17 Display NTP configuration

Operation

Command

Description

Display the status of NTP services

display ntp-service status

Display the information about the sessions
maintained by NTP

display ntp-service sessions
[ verbose ]

Available in any
view

Advertising