LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 12-09-2006, 11:42 PM   #1
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Rep: Reputation: 15
Difficulty to connect with wifi


Hi!

By necessity I have to go wifi on my Centrino laptop.
I compiled the kernel with the Intel Pro 2200 enabled. The module is loaded an I downloaded the firmware.
The tools are installed (iwconfig, iwlist, etc...).
When I execute iwlist scanning, I get the list of the networks available nearby.
I can't connect, though.
My device is eth1 with a HWaddress in hex.
I am totally lost and confused.
I don't know what to do.
I feel beeing not far from the solution.

Can anyone help me please?

Jayhel
Centrino laptop
Slackware 11
 
Old 12-10-2006, 12:12 AM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
Hard to tell without more information, But the fact that your device is 'eth0' leads me to belive you didn't configure the '/etc/rc.d/rc.inet1.conf' correctly. Also, I would recommend not messing around with the encryption options until you have verified it works.

If you are still having problems, please post the relevent portions of the file I mentioned earlier.

best regards,
...drkstr
 
Old 12-10-2006, 09:02 AM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,300

Rep: Reputation: 90
eth1 indicates that it is seeing the card as a LAN card instead of wireless. It should be wlan0. As already suggested check the rc.inet1.conf file.
 
Old 12-10-2006, 12:18 PM   #4
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
Quote:
Originally Posted by masonm
eth1 indicates that it is seeing the card as a LAN card instead of wireless. It should be wlan0. As already suggested check the rc.inet1.conf file.
I am not sure that is correct. I have slack 11 on an asus M5N, with wireless.

My wireless device is eth1 and the hardline is eth0:

Code:
root@slacker:~# iwconfig
lo        no wireless extensions.

eth0      no wireless extensions.

eth1      radio off  ESSID:off/any
          Mode:Managed  Channel:0  Access Point: Not-Associated
          Bit Rate:0 kb/s   Tx-Power=off   Sensitivity=8/0
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality:0  Signal level:0  Noise level:0
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0

jayhel: I have several wlan's that I connect to, and I found rc.inet1.conf and its friend rc.wireless.conf didnt give me enough flexability.

I wrote my own wlan script to connect (here are some snippets):

Code:
WIRELESS=eth1
LINE=eth0
IWC=/usr/local/sbin/iwconfig
PID=/etc/dhcpc/dhcpcd
DHCPC=/sbin/dhcpcd
IFCONFIG=/sbin/ifconfig

poweroff() {
        echo "shutting down wireless..." | $LOG
        /sbin/ifconfig $WIRELESS down
        $IWC $WIRELESS txpower off
}

stopdhcp() {
        # pkill dhcpd
        /sbin/dhcpcd -k $WIRELESS
        #if [ -a $PID-$WIRELESS.pid ]; then
        #   kill `cat $PID-$WIRELESS.pid`;
        #fi
}

start() {
        # if wired nic is allready up, dont bring up the wireless
        #$IWC $WIRELESS rts 250 frag 512
        $IWC $WIRELESS key XXXXXXXXXXXXXXXXXXXXXXXX
        $IWC $WIRELESS mode managed channel 11 essid CHEWBACCA
        $IWC $WIRELESS txpower auto
        $IWC $WIRELESS power on
        /sbin/ifconfig $WIRELESS up
        dhcpcd -N -d -t 30 $WIRELESS > /dev/null
}

adhoc() {
        $IWC $WIRELESS key off
        $IWC $WIRELESS mode Ad-Hoc
        $IWC $WIRELESS essid slacker
        /sbin/ifconfig $WIRELESS up
        /sbin/ifconfig $WIRELESS 10.0.0.2
        /usr/sbin/dhcpd
}

musicstore() {
        $IWC $WIRELESS key off
        $IWC $WIRELESS mode managed channel 9 essid ACTIONTEC
        $IWC $WIRELESS txpower auto
        $IWC $WIRELESS power on
        /sbin/ifconfig $WIRELESS up
        dhcpcd -N -d -t 30 $WIRELESS > /dev/null
}

any() {
        $IWC $WIRELESS key off
        $IWC $WIRELESS mode managed essid ANY
        $IWC $WIRELESS txpower auto
        $IWC $WIRELESS power on
        /sbin/ifconfig $WIRELESS up
        dhcpcd -N -d -t 30 $WIRELESS > /dev/null
}
You should be able to type in theses commands from the command line to connect someplace.

Also, if you have an entry for the Access point, like this:

Code:
eth1      IEEE 802.11g  ESSID:"CHEWBACCA"
          Mode:Managed  Frequency:2.462 GHz  Access Point: 00:0F:B5:EF:A8:54
          Bit Rate:54 Mb/s   Tx-Power=-1 dBm   Sensitivity=8/0
          Retry limit:7   RTS thr:off   Fragment thr:off
          Encryption key:6141-201A-BADB-69C3-0765-926A-10   Security mode:open
          Power Management:on
          Link Quality=96/100  Signal level=-27 dBm  Noise level=-85 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0
Then you are connected. If "ifconfig eth1" does not show you an ip, then you just need to assign on or use dhcp.

-Andy
 
Old 12-11-2006, 02:30 AM   #5
leveex
LQ Newbie
 
Registered: Nov 2006
Location: Croatia
Distribution: Slackware 10.2
Posts: 26

Rep: Reputation: 15
Maybe this will help you...
 
Old 12-11-2006, 07:59 AM   #6
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by jayhel
Hi!

By necessity I have to go wifi on my Centrino laptop.
I compiled the kernel with the Intel Pro 2200 enabled. The module is loaded an I downloaded the firmware.
The tools are installed (iwconfig, iwlist, etc...).
When I execute iwlist scanning, I get the list of the networks available nearby.
I can't connect, though.
My device is eth1 with a HWaddress in hex.
I am totally lost and confused.
I don't know what to do.
I feel beeing not far from the solution.

Can anyone help me please?

Jayhel
Centrino laptop
Slackware 11
Hi,

Since you can do a 'iwlist scanning' and you say that you get a list of networks the radio is working. Then you possibly have a security issue or inet issue. Do you have a 'IP', static or dhcp? Do you pass the wpa/wep key to the desired access point if needed?

You then say that you have 'My device is eth1 with a HWaddress in hex.', apparently you don't have a 'IP' address. Post as root the output of;

Code:
#ifconfig -a                 #get information
#iwconfig
Post the output of 'iwlist scanning' for the access point you wish to connect too.

Also post your /etc/rc.d/rc.inet1.conf and the /etc/rc.d/rc.wireless.conf files.
 
Old 12-11-2006, 09:32 AM   #7
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
ipw2200 cards assign themselves the next ethX entry, this is not a problem. Some cards go with wifi0 or wlan0, madwifi drivers (atheros) often go ath0. Intel cards go ethX. Non-issue.

If you're using WEP or WPA there is some configuration to be done. wpa_supplicant is either in /extra or /testing on the install media or fav slackware mirror.

If its just straight DHCP,
Code:
 dhcpcd eth1
should be enough to test that its working. Also, if MAC filtering is set up at the access point or router, make sure it has the MAC address (that hex value for HWaddr in ifconfig) for your card or it won't accept connections.
 
Old 12-12-2006, 08:43 AM   #8
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
I am still unable to connect with my browser.

=================================================================
root@hal:/etc/rc.d# ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:9F:9A:17:55
inet addr:192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe9a:1755/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:250 (250.0 b)
Interrupt:10

eth1 Link encap:Ethernet HWaddr 00:12:F0:50:08:98
UP BROADCAST NOTRAILERS MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xc000 Memory:b0118000-b0118fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3741 (3.6 KiB) TX bytes:3741 (3.6 KiB)

root@hal:/etc/rc.d#
====================================================================
root@hal:/etc/rc.d# iwconfig
eth0 no wireless extensions.

lo no wireless extensions.

eth1 radio off ESSID:"floor14" Nickname:"hal"
Mode:Ad-Hoc Channel:0 Cell: 00:16:B6:28:54:AD
Bit Rate:0 kb/s Tx-Power=off Sensitivity=8/0
Retry limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

sit0 no wireless extensions.

root@hal:/etc/rc.d#
===========================================================================

My hardwired connexion is with a static IP. I use a static setup behind NAT.
I don't know if I have to activate DHCP or not for wireless.
If yes how?
 
Old 12-12-2006, 08:48 AM   #9
codeguy
Member
 
Registered: Jan 2004
Distribution: Slackware
Posts: 187

Rep: Reputation: 46
You probably need a default route entry.

if you can "ping 192.168.1.1" then it works enough to ping your gateway. (assuming 192.168.1.1 is your gateway).

type "route" and see if you have a default gateway of 192.168.1.1, if not type "route add default gw 192.168.1.1"

Can you surf when you have the hardline plugged in?

-Andy
 
Old 12-13-2006, 07:24 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Quote:
Originally Posted by jayhel
I am still unable to connect with my browser.

=================================================================
root@hal:/etc/rc.d# ifconfig
eth0 Link encap:Ethernet HWaddr 00:C0:9F:9A:17:55
inet addr:192.168.1.13 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe9a:1755/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:250 (250.0 b)
Interrupt:10

eth1 Link encap:Ethernet HWaddr 00:12:F0:50:08:98
UP BROADCAST NOTRAILERS MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:11 Base address:0xc000 Memory:b0118000-b0118fff

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:52 errors:0 dropped:0 overruns:0 frame:0
TX packets:52 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3741 (3.6 KiB) TX bytes:3741 (3.6 KiB)

root@hal:/etc/rc.d#
====================================================================
root@hal:/etc/rc.d# iwconfig
eth0 no wireless extensions.

lo no wireless extensions.

eth1 radio off ESSID:"floor14" Nickname:"hal"
Mode:Ad-Hoc Channel:0 Cell: 00:16:B6:28:54:AD
Bit Rate:0 kb/s Tx-Power=off Sensitivity=8/0
Retry limit:7 RTS thrff Fragment thrff
Encryption keyff
Power Managementff
Link Quality:0 Signal level:0 Noise level:0
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

sit0 no wireless extensions.

root@hal:/etc/rc.d#
===========================================================================

My hardwired connexion is with a static IP. I use a static setup behind NAT.
I don't know if I have to activate DHCP or not for wireless.
If yes how?
Hi,

Which device do you want to use, eth0 (wired) or eth1(wireless)? Right now you seem to have the eth0 as your active device. The radio for your eth1 device is off presently.

Too keep things simple, choose either the wired or wireless.

Right now your eth0 has a IP,'192.168.1.13' so your on subnet xxx.xxx.1.0. What is the output of 'route -n'. If your default gw(gateway) is '192.168.1.1' and the route is ok then you should be able to ping the gw.

You need to post the requested files, '/etc/rc.d/rc.inet1.conf' and '/etc/rc.d/rc.wireless.conf. I must repeat that you need to decide which medium that you want to use, either wired or wireless. You can have a means to select between the two but not both at this time.
 
Old 12-13-2006, 09:20 AM   #11
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Not only is the radio off, the card is set for ad-hoc. There are several things I'd suggest, in order:

Bring down eth0
Turn on the radio
Set the mode to managed
dhcpcd eth1
 
Old 12-13-2006, 08:36 PM   #12
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
My problem is not the wired connection which has been working satisfactorily for quite a long time.
My problem is wireless.
The ipw2200 module sees the card as eth1, not wlan0, whatever i tweak in rc.inet1.conf
====================================================
Thank you 2Gnu.
To bring down eth0 i execute ifconfig eth0 down.

How do i turn on the radio?
 
Old 12-13-2006, 09:53 PM   #13
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
OK I figured out how to turn on the radio:

#iwconfig eth1 txpower on

I ran kwifimanager. I get:

Connexion speed: 54
Connexion network: RitzMotel
Accesspoint: 00 18 39 BC F1 37
Local IP: Unavailable
Frequency: 2.437[6]

I still cannot connect with my browser to http://www.foxnews.com (for example)
I get the message in the browser:

An error occured when loading http://www.foxnews.com
Unknown host http://www.foxnews.com

I executed:

#dhcpcd eth1 &

so a dhcpcd daemon runs in the background.

I set the mode to managed.

What is wrong?

Is it mormal that the Local IP is unavailable?
 
Old 12-13-2006, 10:40 PM   #14
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware
Posts: 1,880

Rep: Reputation: 51
Are you actually getting an IP address from the router?

Now that it seems you have the wireless parameters set properly, post ipconfig for the wireless adapter.
 
Old 12-14-2006, 01:39 AM   #15
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 14.1
Posts: 161

Original Poster
Rep: Reputation: 15
Allright!

ifconfig lists:

eth1 Link encap: Ethernet HWaddr 00:12:F0:84:27:B6
inet6 addr : fef0:212:foff:fe84:27bc/64
scope:limit
UP BROADCAST RUNNING MULTICAST MTU1500 Metric 1
Rx bytes 7861 Tx bytes 432
Iinterrupt 11 Base Address 0xc00...

I don't see any IP anywhere...
 
  


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
can connect but can't browse - wifi problems Dr. Doerke Linux - Wireless Networking 4 04-09-2006 03:35 PM
can't connect wifi at home, but can connect everywhere else Javi2 SUSE / openSUSE 1 08-25-2005 06:49 PM
difficulty using ssh to connect to X11 remotely shortname Linux - Networking 6 03-05-2005 12:53 PM
What app. should I use to connect via wifi? Unknown_User Linux - Wireless Networking 3 01-08-2005 05:14 PM
WiFi 3Com Office Connect cyberFISH Linux - Wireless Networking 1 05-15-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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

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