LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 10-05-2005, 11:56 PM   #1
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Rep: Reputation: 15
wifi + dhcpcd but no web access (why) w/ slackware


Could anyone send me a pointer to a howto on setting up wifi internet access with Slackware 10.2? To connect to a non-secure access point, I do:

ifconfig eth0 down (just in case)
ifconfig wlan0 down
iwconfig wlan0 essid "essid"
ifconfig wlan0 up
"turn on the blue wifi card light on the laptop"
dhcpcd wlan0

as root but the web browser can't see that I am connected.
iwconfig reveals I am connected to access point.

I am using ndiswrapper as module for wifi in a hp pavilion zv5120us laptop with kernel 2.6.13 (kernel installed during Slackware 10.2 initial installation without compiling).

I believe I tried pretty much everything (and any combination of the above command series), but maybe I am missing something specific to Slackware (or something very generic).

Any ideas and pointers (specific to Slackware 10.2) are very much appreciated.
 
Old 10-06-2005, 03:22 AM   #2
pembo13
Member
 
Registered: May 2003
Location: Caribbean
Distribution: Fedora Core2
Posts: 403

Rep: Reputation: 30
When you say the light comes on, does it come on when you bring up the interface, or do you put it on?
 
Old 10-06-2005, 04:05 AM   #3
shilo
Senior Member
 
Registered: Nov 2002
Location: Stockton, CA
Distribution: Slackware 11 - kernel 2.6.19.1 - Dropline Gnome 2.16.2
Posts: 1,132

Rep: Reputation: 49
Here's what I use

Code:
/sbin/iwconfig ath0 essid arghhh
/sbin/iwconfig ath0 channel 6
/sbin/iwpriv ath0 mode 3
/sbin/ifconfig ath0 192.168.0.110
sleep 2
/sbin/route add default gw 192.168.0.1
The last line seems to be the one you are missing (use your routers IP address). I'm pretty certain that no default gateway = no web browsing.
 
Old 10-06-2005, 04:59 AM   #4
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
Indeed I think the default gateway setup incorrectly. Do you have set an IP address here in /etc/rc.d/rc.inet1.conf :
Code:
# Default gateway IP address:
GATEWAY=""
If so, you should run
Code:
/etc/rc.d/rc.inet1 eth0_stop
to clear that default gateway, before you bring your wireless device up.
Better even to put this in /etc/rc.d/rc.inet1.conf (and remove the existing empty ....[1]=... parameters):
Code:
# Config information for wlan0:
IFNAME[1]="wlan0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]=""
WLAN_ESSID[1]=essid
(substitute the proper ESSID value instead of my "essid") and then bring up wireless using:
Code:
/etc/rc.d/rc.inet1 eth0_stop
/etc/rc.d/rc.inet1 wlan0_start
That should work.

Cheers, Eric
 
Old 10-06-2005, 04:49 PM   #5
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
reply to shilo: hmm, when I do
# route add default gw 192.168.0.1
it says:
SIOCADRT: Network is down.
And I'm not able to use the browser. I can ping myself and 192.168.0.1 though.
What does that mean??

reply to pembo13: In windows xp (dual boot) I always turn the light off so that I won't connect to the opan access points by accident (or anyone connects to me somehow). So when I boot to linux, I have to manualy turn the light on so that iwlist wlan0 scan command can come up with access points.

reply to Alien Bob:
I don't have a default gateway set in inet1.conf. Just in case i run
# /etc/inet1 eth0_stop
I also put the lines into the inet1.conf as you suggested.
I still can't use the browser after I do
/etc/rc.d/rc.inet1 eth0_stop
/etc/rc.d/rc.inet1 wlan0_start
When I do
/etc/rc.d/rc.inet1 wlan0_down
it says dhcpcd is not running although I see it when I do
# ps
Is this a concern?
I also did
# route add default gw 192.168.0.1
but the same response came (network down).

PS. You Slackware people are really helpful by the way I am not used to such detailed help :-)
 
Old 10-07-2005, 12:45 AM   #6
Alien Bob
Slackware Contributor
 
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 4,035

Rep: Reputation: Disabled
Maybe you should start posting the output of
Code:
route -n
and
Code:
ifconfig -a
before you bring down eth0, and also after you tried to bring wlan0 up.

Eric
 
Old 10-13-2005, 07:11 PM   #7
towsonu2003
Member
 
Registered: May 2005
Distribution: Ubuntu 6.06
Posts: 129

Original Poster
Rep: Reputation: 15
update:
wlan0 worked fine w/ no tweaking in ubuntu 5.04. No offense
 
Old 10-22-2005, 04:08 PM   #8
delpianod
LQ Newbie
 
Registered: Mar 2004
Location: Cuneo, Italy
Distribution: ubuntu 8.04 +
Posts: 13

Rep: Reputation: 0
Maybe this helps:
I installed SuSE 10.0 on a dv1356 and had similar problems.
I had similar problems until I found a thread (don't remember which) here on LinuxQuestions that suggested adding a "pci=noacpi" boot parameter. I did and everything started to work.
Bye
Dario
 
Old 10-23-2005, 10:54 PM   #9
desertViking
Member
 
Registered: Aug 2005
Location: Arizona
Distribution: Slackware 13, Arch Linux
Posts: 85

Rep: Reputation: 15
Hi,

What I have found is that using the instructions from sourceforge for ndiswrapper, I've always been successful using the tool. Assuming that you've got the program built correctly, you can certainly start somewhere down the line. Here is the link to the installation instructions.

http://ndiswrapper.sourceforge.net/m...p/Installation

Maybe you can begin somwhere around the area of:

iwlist wlan0 scan

When you're sure that one step is complete go on to the next. Once you bring up the wireless by hand, you can go back and implement those steps in the rc files that will make the wireless persistant. The best instructions I've found for that are on the slackbook web site:

http://www.slackbook.org/html/networ...-wireless.html

Using these two sources, I think you'll find what you need. Again get the wireless up by hand first, then worry about making it persistant.

Hope this helps, and Good Luck!
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
dhcpcd wifi: non-stop complications yocompia Linux - Wireless Networking 5 03-02-2004 12:33 PM
Slackware 8 and DHCPCD - Timed out likwid818 Linux - Networking 6 10-22-2003 10:45 PM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM
DHCPCD / Slackware 8.0 Problem romanivice Linux - Networking 3 02-15-2002 08:26 PM
DHCPCD in Slackware 8.0 Floppy Linux - Networking 3 02-10-2002 07:58 AM


All times are GMT -5. The time now is 07:01 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration