LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-16-2009, 04:08 PM   #1
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Rep: Reputation: 15
no wireless connection -- card detected, driver installed, config file adjusted


Hello,

This post is a continuation of: http://www.linuxquestions.org/questi...e-12.2-704726/, as that initial problem was solved (i.e. the PCI card is now detected), and the subject is misleading for my current issue.

I'm using an Edimax EW-7128G PCI Wireless Card. I've looked in the slackbook regarding wireless:
http://www.slackbook.org/html/networ...-wireless.html
And followed those instructions. I tried both editing the generic section of rc.wireless.conf, including my 'essid' and 'key', as well as

Code:
# iwconfig wlan0 essid "mynetwork"
# iwconfig wlan0 key XXXXXXXXXXXXXXXXXXXXXXXXXXX
But neither of these allow me to connect to the internet, or ping out. I tried different channels, and
Code:
# iwconfig wlan0 channel auto
.
Additionally, I looked here http://www.linuxforums.org/forum/87018-post11.html and tacked on

Code:
# dhcpcd wlan0
To the end of the previous iwconfig code. This has created another problem for me. It makes it VERY slow to initialize an ssh session with the slackware machine, After entering
Code:
ssh user@darkstar
it takes about 25 seconds before prompting me for a password, as opposed to the previously 'instantaneous' response time. I tried deleting /dhcpcd-wlan0.info and /dhcpcd-wlan0.cache in /etc/dhcpcd/, but this has not helped. If anyone knows how to help even with JUST this part, I'd be thrilled.

Here are some more details. The appropriate driver is rt61pci:
Code:
# lsmod | grep rt61pci
rt61pci                22528  0 
rt2x00pci              10240  1 rt61pci
rt2x00lib              29056  2 rt61pci,rt2x00pci
eeprom_93cx6            5888  1 rt61pci
The relevant lspci info:

Code:
03:01.0 Network controller: RaLink RT2561/RT61 802.11g PCI
        Subsystem: RaLink EW-7108PCg
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV+ VGASnoop- ParErr- Stepping- SERR+ FastB2B- DisINTx-
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=slow >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 64, Cache Line Size: 128 bytes
        Interrupt: pin A routed to IRQ 17
        Region 0: Memory at dfbf8000 (32-bit, non-prefetchable) [size=32K]
        Capabilities: [40] Power Management version 2
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=0mA PME(D0-,D1-,D2-,D3hot-,D3cold-)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Kernel driver in use: rt61pci
        Kernel modules: rt61pci
Code:
# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:13:20:43:f2:60  
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::213:20ff:fe43:f260/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:31002 errors:0 dropped:0 overruns:0 frame:0
          TX packets:26683 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:24418395 (23.2 MiB)  TX bytes:14633249 (13.9 MiB)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:1f:1f:1b:33:9b  
          BROADCAST 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)

wmaster0  Link encap:UNSPEC  HWaddr 00-1F-1F-1B-33-9B-65-74-00-00-00-00-00-00-00-00  
          BROADCAST 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)
Other than that. I am ssh'd into the slackware machine via ethernet cable, if that should change anything.
Thanks for reading!

Last edited by noviciado; 04-16-2009 at 04:17 PM.
 
Old 04-16-2009, 04:50 PM   #2
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Maybe you will find the answer overhere?
http://alien.slackbook.org:80/dokuwi...eless_networks
 
Old 04-16-2009, 08:46 PM   #3
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks. I did find helpful information.

So, I can connect to the internet now with the wireless card, but I can no longer ssh into this computer, neither via cable nor wirelessly.

I changed the rc.inet1.conf, adding:

Code:
IFNAME[1]="wlan0"
IPADDR[1]=""
NETMASK[1]=""
USE_DHCP[1]="yes"
DHCP_HOSTNAME[1]="darkstar"
WLAN_MODE[1]=Managed
WLAN_ESSID[1]="my access point"
WLAN_KEY[1]="XXXXXXXXXXXXXXXXXXXXXXXX"
and then,
Code:
/etc/rc.d.rc.inet1 restart
(though this could have just been /etc/rc.d.rc.inet1 wlan0_start)

I didn't change anything else, but connection times out now when I try to ssh into this machine. Would setting up wireless have effected the eth0 connection? or somehow affect ssh requests? I can't help but think this is related to what I did earlier:
Code:
# dhcpcd wlan0
which made sending the initial ssh request so slow.

Any ideas??

Last edited by noviciado; 04-16-2009 at 08:51 PM.
 
Old 04-17-2009, 07:24 AM   #4
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Can you ssh based on IP address?
Just look for the IP address that ifconfig reports, and put that in the place of "darkstar"
If ssh based on IP works, the issue maybe is DNS related...

And just to be sure: are the wireless and ethernet card connected to the same network or to different networks?
 
Old 04-19-2009, 02:41 PM   #5
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Original Poster
Rep: Reputation: 15
I cannot ssh/ping based on IP address either (I have the IP and the alias in /etc/hosts, and it has not been a problem until I set up wireless).

Code:
# ssh root@192.168.1.200
ssh: connect to host 192.168.1.200 port 22: Connection timed out
ping just hangs interminably without anything more than:
Code:
# ping 192.168.1.200
PING 192.168.1.200 (192.168.1.200) 56(84) bytes of data.

Here's a crude picture of the network:

(((-wireless--> Slackware desktop <--crossover cable--> linux laptop <--wireless-)))

both machines are wirelessly connecting to the internet on the same network. This setup worked fine before, the only change being the wireless connectivity of the slackware desktop.
 
Old 04-20-2009, 06:08 AM   #6
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
what kind of IP address does the wireless network have?
what does the output of route -n look like?
 
Old 04-20-2009, 07:33 AM   #7
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
Hi,

Post the 'route -n' for both machines.
 
Old 04-20-2009, 11:18 AM   #8
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Original Poster
Rep: Reputation: 15
On the Slackware Desktop:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
On the laptop:
Code:
/sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
Quote:
what kind of IP address does the wireless network have?
The wireless IP addresses are dynamically assigned; and eth0 is statically assigned on both machines. (I think that is what you were asking.)

ifconfig -a for Slackware Desktop:
Code:
eth0      Link encap:Ethernet  HWaddr 00:13:20:43:f2:60  
          inet addr:192.168.1.200  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::213:20ff:fe43:f260/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:168 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:10080 (9.8 KiB)  TX bytes:468 (468.0 B)

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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr 00:1f:1f:1b:33:9b  
          inet addr:192.168.1.102  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::21f:1fff:fe1b:339b/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2712 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2201 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:3137691 (2.9 MiB)  TX bytes:324114 (316.5 KiB)

wmaster0  Link encap:UNSPEC  HWaddr 00-1F-1F-1B-33-9B-65-74-00-00-00-00-00-00-
-00  
          UP BROADCAST RUNNING 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)
ifconfig for laptop:
Code:
eth0      Link encap:Ethernet  HWaddr 00:1C:25:80:D2:32  
          inet addr:192.168.1.202  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:790 errors:0 dropped:0 overruns:0 frame:0
          TX packets:55610 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100 
          RX bytes:47400 (46.2 Kb)  TX bytes:4882052 (4.6 Mb)
          Memory:fe000000-fe020000 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3195 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3195 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:1134684 (1.0 Mb)  TX bytes:1134684 (1.0 Mb)

pan0      Link encap:Ethernet  HWaddr E2:C2:E2:9B:09:49  
          BROADCAST 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:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

wlan0     Link encap:Ethernet  HWaddr 00:1F:3C:45:A1:FD  
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:777967 errors:0 dropped:0 overruns:0 frame:0
          TX packets:537671 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:857793869 (818.0 Mb)  TX bytes:118307716 (112.8 Mb)

wmaster0  Link encap:UNSPEC  HWaddr 00-1F-3C-45-A1-FD-00-00-00-00-00-00-00-
-00  
          UP BROADCAST RUNNING 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)

Last edited by noviciado; 04-20-2009 at 11:19 AM.
 
Old 04-20-2009, 01:30 PM   #9
janhe
Member
 
Registered: Jul 2007
Location: Belgium
Distribution: slackware64 14.2, slackware 13.1
Posts: 371

Rep: Reputation: 54
Quote:
Originally Posted by noviciado View Post
The wireless IP addresses are dynamically assigned; and eth0 is statically assigned on both machines. (I think that is what you were asking.)
No, I was asking wheter it was a 192.168.1.0/24 network, or a 10.0.0.0/8 or something else. I should have been a little clearer when I asked my question, sorry for that.

Quote:
Originally Posted by noviciado View Post
On the Slackware Desktop:
Code:
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 wlan0
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
On the laptop:
Code:
/sbin/route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.1.0     0.0.0.0         255.255.255.0   U     1      0        0 eth0
192.168.1.0     0.0.0.0         255.255.255.0   U     2      0        0 wlan0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.1.1     0.0.0.0         UG    0      0        0 wlan0
From this output, I can see you wirless network is a 192.168.1.0/24 network, with possible IP ranges from 192.168.1.1 to 192.168.1.254 . Your little wired network (over the crossover cable) is also a 192.168.1.0/24 network.
What happends is that when you try to connect to 192.168.1.200, your request is sent over the wrong link (wlan0 instead of eth0) or worse, it is dropped. (I don't know that much about routing)

As a rule of thumb, never allow network ranges to overlap.

If you configure your static IPs (on the wired interfaces) to something from another IP range (like 192.168.3.0/24), things should work. e.g. change the IP from the slackware box to 192.168.3.200 and from the laptop to 192.168.3.202)
 
Old 04-20-2009, 02:26 PM   #10
noviciado
Member
 
Registered: Feb 2009
Distribution: Slackware 13.0 (2.6.29.6-smp)
Posts: 47

Original Poster
Rep: Reputation: 15
Thanks so much, Jahne!! That was exactly the problem. Also, thanks for pointing me to the alien slackbook for resolving the networking configs.
 
  


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
How do I write a PCMCIA config file for my intel/pro 2200BG wireless card? pogliacomi Linux - Newbie 1 03-20-2009 05:35 PM
Wireless connection not detected daramola Linux - Newbie 19 02-08-2009 06:30 PM
installed driver for wireless pc card, now what? Fozmo Linux - Wireless Networking 1 05-25-2006 08:13 PM
Quick Question: Which driver file to use for Dell TrueMobile 1350 Wireless card? robert2513 Linux - Wireless Networking 3 12-24-2005 02:34 PM
Sound card not detected even after driver installed eam Linux - Hardware 7 11-11-2004 12:14 AM

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

All times are GMT -5. The time now is 04:58 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