3 typical examples of ntp function, Ypical, Xamples of – PLANET WGSW-52040 User Manual

Page 485: Unction

Advertising
background image

63-56

debug ntp packets [send | receive]

no debug ntp packets [send | receive]

To enable debug switch of NTP packet

information.

debug ntp adjust

no debug ntp adjust

To enable debug switch of time update

information.

debug ntp sync

no debug ntp sync

To enable debug switch of time

synchronize information.

debug ntp events

no debug ntp events

To enable debug switch of NTP event

information.

63.3 Typical Examples of NTP Function

A client switch wanted to synchronize time with time server in network, there is two time server in network, the

one is used as host, the other is used as standby, the connection and configuration as follows (Switch A and

Switch B are the switch or route which support NTP server ):

The configuration of Switch C is as follows: (Switch A and Switch B may have the different command because

of different companies, we not explain there, our switches are not support NTP server at present)

Switch C:

Switch(config)#ntp enable

Switch(config)#interface vlan 1

Switch(Config-if-Vlan1)#ip address 192.168.1.12 255.255.255.0

Switch(config)#interface vlan 2

Switch(Config-if-Vlan1)#ip address 192.168.2.12 255.255.255.0

Switch(config)#ntp server 192.168.1.11

Switch(config)#ntp server 192.168.2.11

Advertising