NTP (Network Time Protocol, the network time protocol) is a protocol
based on RFC1305, is a cross Wan or LAN complex time synchronization protocol. Configuration on the router suggestions in general, and of course the configuration on other devices can be. We next based on the topology of the graph below to see NTP server is configured on the router and method ofobtaining NTP information in different segments.
The experimental requirements:
R5 acts as
a NTP Server.
R1 and R6
automatically gets the NTP
address from the Server.
The configuration
1, the basic information to configure the router.
R1
Inter FA 0/0
IP address 155.1.146.1 255.255.255.0
No shut
R4
Inter Ethernet 0/0
IP address 155.1.146.4 255.255.255.0
No shut
!
Interface Serial 0/0
Encaps frame-relay
No frame-relay inverse
IP address 155.1.0.4 255.255.255.0
Frame map IP 155.1.0.5 405 broad
No shutdown
R5
Interface Serial 0/0
Encaps frame-relay
No frame-relay inverse
IP address 155.1.0.5 255.255.255.0
Frame map IP 155.1.0.4 504 broad
No shut
R6
Inter gig 0/0
IP address 155.1.146.6 255.255.255.0
No shut
2, configuring the router's time zone.
R5 (config) #clock timezone Peking +8
R5 (config) #
Mar 1 00:24:49.275:%SYS-6-CLOCKUPDATE: System clock has been updated from 08:24:49Peking Fri Mar
12002 to 08:24:49 Peking Fri Mar
12002, configured from console by console
Note: the above
configuration in Peking used to specify the time zone name, +8 is offset relative to the time, the value range from -23 – 23.
3, configuring
the router time
R5#clock set 08:36:00
12 April 2012
4, the
designated router as a NTP
server, and the specified send to radio interface
R5:
NTP master 1
Interface Serial 0/0
NTP broadcast
Note: the designated router for the NTP server with the command is master, not server,attention is now back to the global schema
5, in
the R4 enabled NTP client receives the clock signal sent by NTP Server
R4
Interface Serial 0/0
NTP broadcast client
6 In R1
and R6 set the NTP synchronization
R1 (config) #ntp server 155.1.146.4
R1 (config) #clock timezone Peking +8
R6 (config) #ntp server 155.1.146.4
R6 (config) #ntp peer 155.1.146.1
R6 (config) #clock timezone Peking +8
If not work, please pay attention to the following reasons, such as network access, the firewall blocked123 port (NTP port), time and NTP server client display on the time gap is
too large.
Note: now use the NTP server command to specify the NTP server
address, pay attention not to hope the
time zone settings, otherwise the time
will be UTC time.
Customers interested in purchasing Cisco router or the price, please refer to below links: http://www.3anetwork.com
没有评论:
发表评论