LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 10-20-2008, 09:23 AM   #1
mrgreedy
LQ Newbie
 
Registered: Sep 2008
Location: England
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
How to select the right interface with two network devices.


Hi,

I'm trying to use the wireless card on my new Dell X1 laptop, I think I know what's wrong but I don't know how to fix it.

Both the Ethernet and Wireless devices are detected. Ethernet is on eth0 and the wireless interface is on eth1. I can connect my browser and ping my ADSL router with the cable plugged in (eth0). I've configured my wireless settings and it has no problem connecting to the wireless access point with a good quality connection. The device appears to be working well.

However, if I pull out the network cable, I assumed that the web browser or pinging the ADSL router would go via the connected wireless card. But I can't connect. Using iptables I can actually see occasional broadcast packets from my router coming in on the wireless card (eth1).

Having looked at #route and #arp, I can see that the default route is only configured to use eth0. Is this why it doesn't work? If so, how can I add a second default route to use eth1?

Thanks,
MrGreedy
 
Old 10-20-2008, 03:11 PM   #2
mrgreedy
LQ Newbie
 
Registered: Sep 2008
Location: England
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
I've spent some time looking into my problem. It seems as though my computer is trying to use eth0 no matter what happens.

If I try to ping my router with #ping 192.168.2.1, it fails. But if I specify the wireless device with #ping -I eth1 192.168.2.1, then it works. I don't know how to get Firefox to use eth1. Is there a way to configure my computer to use eth1 rather than eth0 when the connection on eth0 is down, ie no cable.

Appreciate any help.
Pete
 
Old 10-20-2008, 03:54 PM   #3
mrgreedy
LQ Newbie
 
Registered: Sep 2008
Location: England
Distribution: Slackware
Posts: 15

Original Poster
Rep: Reputation: 0
I've now managed to get Firefox working with wireless.

I'm using Slackware, and I had to bring down eth0 with '#./rc.inet1 eth0_stop', so that ping started using the eth1 (wireless) interface. I also had to do '#route add default gw 192.168.2.1' in order for Firefox to start working.

I'm sure there's a proper solution to this, but for now I'll probably stick those commands in a script or something.
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
auto select wifi network by signal rateing capn_hector Programming 3 01-15-2008 09:39 AM
In FC6 network interface doesn't come up if 'service network restart' command is run rajat Linux - Networking 2 05-03-2007 12:53 AM
Select Active Network at boot? staniel Linux - Networking 1 03-15-2006 06:56 PM
network interface and usb devices not working.. szehanz Solaris / OpenSolaris 4 03-22-2005 09:56 PM
trouble with human interface devices during install sir_sparksalot Linux - Software 4 08-09-2003 05:12 PM


All times are GMT -5. The time now is 03:49 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration