Displaying NTP Configuration 379
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.
Disabling an Interface
from Receiving 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.
Configuration
Example
Configuring NTP
Server/Client Mode
Network requirements
■ The local clock of Device A (a switch) is to be used as a master clock, with the
stratum level of 2.
■ Device A is used as the NTP server of Device B (a Switch 4210)
Tab le 295 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.
Tab le 296 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.
Tab le 297 Display NTP configuration
Operation Command Description
Display the status of NTP
services
display ntp-service status Available in any view
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