Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ sudo ntpdate ntp.ubuntu.com
- 4 Mar 12:27:35 ntpdate[1258]: no server suitable for synchronization found
- $ sudo ntpdate pool.ntp.org
- 4 Mar 12:27:50 ntpdate[1267]: no server suitable for synchronization found
- $ sudo ntpdate de.pool.ntp.org
- 4 Mar 12:28:01 ntpdate[1273]: no server suitable for synchronization found
- $ sudo ntpdate us.pool.ntp.org
- 4 Mar 12:28:12 ntpdate[1276]: no server suitable for synchronization found
- $ sudo nmap -p123 -sU -P0 localhost
- ...
- PORT STATE SERVICE
- 123/udp closed ntp
- ...
- $ sudo ufw allow 123/udp
- Rules updated
- Rules updated (v6)
- $ sudo nmap -p123 -sU -P0 localhost
- ...
- PORT STATE SERVICE
- 123/udp open ntp
- ...
- $ sudo ntpdate ntp.ubuntu.com
- 4 Mar 13:06:16 ntpdate[4361]: no server suitable for synchronization found
- $ sudo ntpdate -u ntp.ubuntu.com
- 4 Mar 13:06:28 ntpdate[4427]: no server suitable for synchronization found
- $ sudo ntpdate -dv ntp.ubuntu.com
- 4 Mar 13:12:24 ntpdate[4523]: ntpdate 4.2.6p5@1.2349-o Wed Oct 9 19:08:07 UTC 2013 (1)
- Looking for host ntp.ubuntu.com and service ntp
- host found : golem.canonical.com
- transmit(91.189.89.199)
- transmit(91.189.94.4)
- transmit(91.189.89.199)
- transmit(91.189.94.4)
- transmit(91.189.89.199)
- transmit(91.189.94.4)
- transmit(91.189.89.199)
- transmit(91.189.94.4)
- transmit(91.189.89.199)
- transmit(91.189.94.4)
- 91.189.89.199: Server dropped: no data
- 91.189.94.4: Server dropped: no data
- server 91.189.89.199, port 123
- stratum 0, precision 0, leap 00, trust 000
- refid [91.189.89.199], delay 0.00000, dispersion 64.00000
- transmitted 4, in filter 4
- reference time: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
- originate timestamp: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
- transmit timestamp: d6c041ae.e6166441 Tue, Mar 4 2014 13:12:30.898
- filter delay: 0.00000 0.00000 0.00000 0.00000
- 0.00000 0.00000 0.00000 0.00000
- filter offset: 0.000000 0.000000 0.000000 0.000000
- 0.000000 0.000000 0.000000 0.000000
- delay 0.00000, dispersion 64.00000
- offset 0.000000
- server 91.189.94.4, port 123
- stratum 0, precision 0, leap 00, trust 000
- refid [91.189.94.4], delay 0.00000, dispersion 64.00000
- transmitted 4, in filter 4
- reference time: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
- originate timestamp: 00000000.00000000 Mon, Jan 1 1900 1:00:00.000
- transmit timestamp: d6c041af.1948fc50 Tue, Mar 4 2014 13:12:31.098
- filter delay: 0.00000 0.00000 0.00000 0.00000
- 0.00000 0.00000 0.00000 0.00000
- filter offset: 0.000000 0.000000 0.000000 0.000000
- 0.000000 0.000000 0.000000 0.000000
- delay 0.00000, dispersion 64.00000
- offset 0.000000
- 4 Mar 13:12:33 ntpdate[4523]: no server suitable for synchronization found
- $ timedatectl status
- Local time: Wed 2014-03-05 13:11:54 CET
- Universal time: Wed 2014-03-05 12:11:54 UTC
- Timezone: Europe/Berlin (CET, +0100)
- NTP enabled: yes
- NTP synchronized: yes
- RTC in local TZ: no
- DST active: no
- Last DST change: DST ended at
- Sun 2013-10-27 02:59:59 CEST
- Sun 2013-10-27 02:00:00 CET
- Next DST change: DST begins (the clock jumps one hour forward) at
- Sun 2014-03-30 01:59:59 CET
- Sun 2014-03-30 03:00:00 CEST
- $ sudo hwclock --show
- Wed 05 Mar 2014 01:11:56 PM CET -0.625627 seconds
- transmit(91.189.94.4)
- transmit(91.189.89.199)
- transmit(91.189.94.4)
- transmit(91.189.89.199)
- sudo nano /etc/ntp.conf
- server pool.ntp.org
- server 0.ubuntu.pool.ntp.org
- server 1.ubuntu.pool.ntp.org
- server 2.ubuntu.pool.ntp.org
- server 3.ubuntu.pool.ntp.org
- /etc/init.d/ntpd start
- sudo ntpdate pool.ntp.org
- sudo ntpdate 0.ubuntu.pool.ntp.org
- sudo ntpdate <one of the servername in /etc/ntp.conf>
- ntpdate -u pool.ntp.org
- $ sudo ntpdate pool.ntp.org
- $ sudo service ntp stop
- $ sudo ntpdate pool.ntp.org
- $ sudo service ntp start
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement