Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 06-05-2005, 12:09 AM   #1
Registered: Apr 2005
Posts: 55

Rep: Reputation: 15
Unable to use NTP with wireless networking

Finally finished configuring my wireless-G adapter using ndiswrapper and wpa_supplicant to allow WPA-PSK encryption. Good network throughput, even with the encryption.

Everything works fine except ntp time synchronization. It works fine using eth0, but when I restart and use wlan0 ntpd will start but will not use the time servers listed in /etc/ntp.conf

(I use rc.local to modprobe ndiswrapper, then start wpa_supplicant, followed by dhcpcd -N wlan0, the -N telling the system not to replace the ntp.conf file)

So, everything should be fine, but no go. Ntpdate, for setting the time once, works. As a test, I shut off the encryption and ran wlan0 without wpa_supplicant, thinking there might be a conflict with NTP, but still no go with the NTP.

Any ideas?

Old 06-05-2005, 08:51 AM   #2
LQ Veteran
Registered: Feb 2003
Location: Maryland
Distribution: Slackware
Posts: 7,803
Blog Entries: 1

Rep: Reputation: 416Reputation: 416Reputation: 416Reputation: 416Reputation: 416
There really shouldn't be any difference between eth0 and wlan0. From the computer's point of view they are all just ethernet devices. The only thing I can think of is that your firewall has some eth0 specific rules that are causing trouble.
Old 06-05-2005, 07:33 PM   #3
Registered: Jun 2003
Location: Holly Hill, Florida
Distribution: Slackware 10.1
Posts: 317

Rep: Reputation: 30
It sounds like the script that starts ndiswrapper might be starting after the script that does the ntp lookup. I believe that rc.local is executed last. Which means that when you are using ndiswrapper it tries to look up the ntpdate before you have an internet connection.

If you place the call to your ntp script to rc.local after the ndiswrapper script you should be good to go
Old 06-05-2005, 11:54 PM   #4
Registered: Apr 2005
Posts: 55

Original Poster
Rep: Reputation: 15
Fixed the problem.

I load /usr/sbin/ntpd -p /var/run/ near the end of /etc/rc.d/rc.M after it calls for rc.inet1 or rc.local to run. When I am using eth0 with rc.inet1 set to start, it starts up the loopback network interface.

When I was setting up my wireless and getting the bugs in ndiswrapper and later, wpa_supplicant (for WPA-PSK encryption) worked out, I would chmod -x rc.inet1 and chmod +x rc.local where I would added : modprobe ndiswrapper, tell wpa_supplicant to start, followed by dhcpcd wlan0.

Found out ntpd was actually running and functioning properly per the ntp.log file, but without the loopback in place, could not view the output of ntpq -pn since loopback was not being started (due to rc.inet1 being down)

Found this out by leaving rc.inet1 up and disconnecting the ethernet cable. Then the loopback came up and I could view ntp operation using wlan0 just like before using eth0.

So, I added the loopback code from rc.inet1 and put in at the end of rc.local after dhcpcd starts wlan0, which is before rc.M called for ntpd to start.

This saves me from having to run rc.inet1 if it's not needed.

Thanks for all the help and suggestions over the last few days, concerning wireless networking and the needed kernel recompiling for wireless support. Slackware is truly a marvelous distro for forcing you to learn, if you just take the time.

Take care,


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
NTP cannot work with timeserver, NTP-d can jerryvapps Linux - Networking 0 08-04-2004 02:04 PM
NTP cannot use server, NTP -d can jerryvapps Linux - Newbie 0 07-28-2004 02:22 PM
Wireless networking LostLin Linux - Wireless Networking 0 07-22-2004 08:29 AM
No Networking on Redhat 9.0!!! ; unable to initialize NIC cards smadny Linux - Hardware 3 01-19-2004 05:15 AM
Unable to setup networking(n/w card SN2000) ashishcc Linux - Networking 6 06-17-2001 12:44 AM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:14 AM.

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