LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Thread Tools
Old 12-10-2006, 12:42 AM   #1
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 12.2
Posts: 101
Thanked: 0
Difficulty to connect with wifi


[Log in to get rid of this advertisement]
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
jayhel is offline     Reply With Quote
Old 12-10-2006, 01:12 AM   #2
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191
Thanked: 0
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
drkstr is offline     Reply With Quote
Old 12-10-2006, 10:02 AM   #3
masonm
Senior Member
 
Registered: Mar 2003
Location: Following the white rabbit
Distribution: Slackware64 -current
Posts: 2,225
Thanked: 3
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.
masonm is offline     Reply With Quote
Old 12-10-2006, 01:18 PM   #4
codeguy
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware 11
Posts: 15
Thanked: 0
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
codeguy is offline     Reply With Quote
Old 12-11-2006, 03:30 AM   #5
leveex
LQ Newbie
 
Registered: Nov 2006
Location: Croatia
Distribution: Slackware 10.2
Posts: 26
Thanked: 0
Maybe this will help you...
leveex is offline     Reply With Quote
Old 12-11-2006, 08:59 AM   #6
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 5,445
Blog Entries: 1
Thanked: 204
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.
onebuck is offline     Reply With Quote
Old 12-11-2006, 10:32 AM   #7
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 401
Thanked: 0
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.
hollywoodb is offline     Reply With Quote
Old 12-12-2006, 09:43 AM   #8
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 12.2
Posts: 101
Thanked: 0

Original Poster
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?
jayhel is offline     Reply With Quote
Old 12-12-2006, 09:48 AM   #9
codeguy
LQ Newbie
 
Registered: Jan 2004
Distribution: Slackware 11
Posts: 15
Thanked: 0
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
codeguy is offline     Reply With Quote
Old 12-13-2006, 08:24 AM   #10
onebuck
Guru
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 5,445
Blog Entries: 1
Thanked: 204
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.
onebuck is offline     Reply With Quote
Old 12-13-2006, 10:20 AM   #11
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 12.0
Posts: 1,853
Thanked: 6
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
2Gnu is offline     Reply With Quote
Old 12-13-2006, 09:36 PM   #12
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 12.2
Posts: 101
Thanked: 0

Original Poster
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?
jayhel is offline     Reply With Quote
Old 12-13-2006, 10:53 PM   #13
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 12.2
Posts: 101
Thanked: 0

Original Poster
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?
jayhel is offline     Reply With Quote
Old 12-13-2006, 11:40 PM   #14
2Gnu
Senior Member
 
Registered: Jan 2002
Location: Southern California
Distribution: Slackware 12.0
Posts: 1,853
Thanked: 6
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.
2Gnu is offline     Reply With Quote
Old 12-14-2006, 02:39 AM   #15
jayhel
Member
 
Registered: Nov 2004
Location: Montreal
Distribution: Slackware 12.2
Posts: 101
Thanked: 0

Original Poster
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...
jayhel is offline     Reply With Quote

Reply

Bookmarks


Thread Tools

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


All times are GMT -5. The time now is 06:39 AM.

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
RSS2  LQ Podcast
RSS2  LQ Radio
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration