LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 02-11-2005, 09:05 AM   #1
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Rep: Reputation: 15
Strange interface wlan0


Hello!

I am having a strange problem with my wireless connection in my Destop PC.

This has worked pretty well yesterday and this morning... but suddenly I can't access to the internet.
I still have signal from the router, I can even get an IP (dhcpcd), but I can't access to the internet.

Anyone has any idea about the problem?! I think this can be something due to the router... but I already rebooted it, and my laptop works well... so I am not sure about the source of the problem.

I have a nameserver, and it seems to be everything ok... but it really doesn't work... and a strange thing is that I can't even do a ping to the router...


If someone already had any problem similar, please tell me the procedure to jump this obstacle.

Best regards.

*System: Slackware 10.1, kernel 2.4.29;
*Wireless card: Netgear WG311v2, running with ndiswrapper
*Router: D-Link (DI-514)

/Edu
 
Old 02-11-2005, 09:26 AM   #2
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
First thing to check is if your settings are right. To see your wireless settings use "iwconfig wlan0" for your general IP settings use "ifconfig wlan0" but I guess you found the latter already.

That you can't ping to the router is pretty strange if you can get an IP from it. Does it say that your network is unreachable or do you have packet loss if you ping?
 
Old 02-11-2005, 10:07 AM   #3
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
Also try the command "route" Maybe your gateway is set wrong?
 
Old 02-11-2005, 01:14 PM   #4
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 15
Hello darkleaf.

one more time, thank you for your reply.

I already have some time in Linux... but just some time ago I started to work more deeply... so sometimes you do some mistakes... and you don't understand what is happening.... and then you go to situations like this...

Ok... I will tell you the story... But I still have some doubts about this, because this had work yesterday and this morning... so I don't know what has changed!

I have two network cards in my computer... but I am just using the wireless one, but when I installed slackware, I gave an IP address to the eth0 card, I can't say why... but I did this...
So, basically the thing was that I could contact/get an IP_addr from the router, with "dhcpcd wlan0", and I also could detect the network, with the best link quality ("iwconfig wlan0")... but, and this is the weird thing, the interface that was used to access the router was the "eth0", not "wlan0", so I could not find the router when I did "ping"... and I was not very concentrated when I did it, because I didn't compared the "From <ip_addr> ...." from the result of ping... and I found 5 minutes ago that it was the ip_addr of the eth0 interface... this means basically that eth0!!

So I just turned it off ("ifconfig eth0 down") and it's working perfectly!

Do you have any idea about the procedure that is taken when you have two active interfaces... because you when you are using a browser of something, they must look just for one of them... but which one?! I think you know what I mean...

ok... one more problem solved... thank you for your help, again!!

Best regards

/Edu
 
Old 02-11-2005, 01:23 PM   #5
darkleaf
Senior Member
 
Registered: Jun 2004
Location: the Netherlands
Distribution: debian SID
Posts: 2,170

Rep: Reputation: 45
I don't know how to change it but apparently there's a hierarchy somewhere in this that it picks your eth0 interface over wlan0 if you have it configured. I would be surprised if you couldn't change that somewhere but till then I think you're stuck with if-down'ing and if-up'ing your eth0 interface.
 
Old 02-11-2005, 01:47 PM   #6
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 15
No... I already found an answer to the problem...

I just have changed the network configuration card "/etc/rc.d/rc.inet1.conf" (this in slackware... I suppose in debian is /etc/interfaces or something like that...) and I said that eth0 should not be initialized on boot time "onboot=no"... and it's ok now!!

I agree with you... there must be some kind of hierarchy to see which interface should be used... maybe I will investigate something about this!

Ok... See you around!

/Edu
 
Old 02-17-2005, 08:09 AM   #7
edafe
Member
 
Registered: Feb 2005
Posts: 44

Rep: Reputation: 15
eduardomsilva,
Maybe try this solution. The problem here is also with the Host AP driver calling the NIC wlan and Slackware ignoring anything other than eth:

http://www.edafe.org/slackware/index.html#hostap

Regards,
Edafe
 
Old 02-17-2005, 08:53 AM   #8
eduardomsilva
Member
 
Registered: Feb 2005
Location: Portugal
Distribution: Slackware
Posts: 45

Original Poster
Rep: Reputation: 15
Hello edafe...

I have solved all the problems related with my connection... I just have removed my eth0 connection, because I am not using it... But I will take a look in the link that you sent to me, because it seems to be very interesting!

Thank you for your help!

See you around!

/Edu
 
Old 02-17-2005, 09:52 AM   #9
edafe
Member
 
Registered: Feb 2005
Posts: 44

Rep: Reputation: 15
eduardomsilva,
OK. Good to know things are working for you now.

All the best,
Edafe
 
  


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
"wlan0" interface not recognized with NETGEAR WG111 USB Wireless Network Adapter lasindi Slackware - Installation 3 09-24-2005 05:51 PM
change ipw220 interface name from eth1 to wlan0 zen0n Linux - Laptop and Netbook 3 08-23-2005 01:55 PM
problem installing ma111 USB on fedora 3: wlan0: unknown interface: No such device sohmc Linux - Wireless Networking 1 05-17-2005 12:09 AM
Failed to activate interface : SIOCSIFADDR: No such device wlan0: hasnain Linux - Wireless Networking 1 04-11-2005 11:13 AM
About the wlan0 interface and driver problem paranoia1980 Linux - Wireless Networking 73 03-08-2004 04:38 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

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