3 typical examples of ntp function, 4 ntp function troubleshooting, Ypical – PLANET XGS3-24042 User Manual

Page 631: Xamples of, Unction, Roubleshooting

Advertising
background image

73-4

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.

73.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

73.4 NTP Function Troubleshooting

In configuration procedures, if there is error occurred, the system can give out the debug information.

The NTP function disables by default, the show command can be used to display current configuration. If the

configuration is right please use debug every relative debugging command and display specific information in

procedure, and the function is configured right or not, you can also use show command to display the NTP

running information, any questions please send the recorded message to the technical service center.

Advertising
This manual is related to the following products: