LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-18-2014, 11:01 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Getting IPv6 Errors in NTP


I loaded a server this evening to learn something new (systemd) and I got ntpd installed on the box and when I checked the status, I noticed some 'red' errors:

Code:
    cachedrive ~ $ sudo systemctl status ntpd.service
    ● ntpd.service - Network Time Service
       Loaded: loaded (/usr/lib/systemd/system/ntpd.service; enabled)
       Active: active (running) since Tue 2014-11-18 23:30:25 EST; 14min ago
      Process: 318 ExecStart=/usr/bin/ntpd -g -u ntp:ntp (code=exited, status=0/SUCCESS)
     Main PID: 320 (ntpd)
       CGroup: /system.slice/ntpd.service
               └─320 /usr/bin/ntpd -g -u ntp:ntp

    Nov 18 23:30:25 ntpd[320]: Listen normally on 2 lo 127.0.0.1:123
    Nov 18 23:30:25 ntpd[320]: Listen normally on 3 enp0s25 192.168.0.115:123
    Nov 18 23:30:25 ntpd[320]: Listen normally on 4 lo [::1]:123
    Nov 18 23:30:25 ntpd[320]: bind(21) AF_INET6 fe80::f24d:a2ff:fe35:8504%2%2#123 flags 0x11 failed: Cannot assign requested address
    Nov 18 23:30:25 ntpd[320]: unable to create socket on enp0s25 (5) for fe80::f24d:a2ff:fe35:8504%2#123
    Nov 18 23:30:25 ntpd[320]: failed to init interface for address fe80::f24d:a2ff:fe35:8504%2
    Nov 18 23:30:25 ntpd[320]: Listening on routing socket on fd #21 for interface updates
    Nov 18 23:28:38 ntpd[320]: Listen normally on 6 enp0s25 [::f24d:a2ff:fe35:8504]:123
    Nov 18 23:28:38 ntpd[320]: Listen normally on 7 enp0s25 [fe80::f24d:a2ff:fe35:8504%2]:123
    Nov 18 23:28:38 ntpd[320]: new interface(s) found: waking up resolver
Can someone help me w/ fixing this error so it's not logged. I don't want or need IPv6 at this time so if I can disable that and resolve the error...
 
Old 11-19-2014, 04:10 PM   #2
corp769
LQ Guru
 
Registered: Apr 2005
Location: /dev/null
Posts: 5,818

Rep: Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007Reputation: 1007
Per the ntpd man page, you can pass the -4 argument in your ntp config to force IPv4. Since you are using systemd (aren't we all nowadays?), you can set this by creating /etc/systemd/system/ntpd.service.d/customexec.conf and modifying ExecStart. (See https://wiki.archlinux.org/index.php...ded_unit_files for a reference)
Code:
[Service]
ExecStart=
ExecStart=/usr/bin/ntpd -4 -g -u ntp:ntp
 
Old 11-20-2014, 07:51 AM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
Trying to properly disable IPv6 from the OS.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux system hangs giving ntp errors siddhv Linux - Newbie 3 01-21-2011 03:24 AM
ntp drift file in /etc/ntp instead of /var/lib/ntp - suggestion for a patch in Slack niels.horn Slackware 16 05-07-2009 07:35 PM
installing ntp results in errors! ninja master Linux From Scratch 7 02-28-2009 02:50 PM
ipv6 tunneling setup issues, /sbin/ip errors zer0python Linux - Networking 0 01-30-2005 08:43 PM
ntp service causing huge time errors zoubidoo Linux - General 2 11-23-2004 10:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 12:22 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration