LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 09-27-2005, 12:09 PM   #1
petermbm
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Rep: Reputation: 0
debian: two ethernet devices, only one works at a time


I got a Sony Vaio Laptop with an e100 wired lan and ipw2200 wireless lan. Both interfaces work fine, but only when activated on their own.

When I first bring up the wlan, and after that bring up the normal cable lan interface, only the wlan can ping machines on the local net and internet. If i do it the other way round, i can ping via the cable lan, but not using the wlan interface.
Can I make both interfaces work as normal at once? I guess it has something to do with my route settings maybe...

Although the system is debian, I made a custom network start script which goes like this:
(eth0=wireless, eth1=cable lan)

Code:
iwconfig stuff , essid, wep and so on... this should be alright.

ifconfig eth0 192.168.1.96 netmask 255.255.255.0
ifconfig eth0 up
ifconfig eth1 192.168.1.92 netmask 255.255.255.0
ifconfig eth1 up
route add default gw 192.168.1.1
However, only the first device brought up "works"....
 
Old 09-29-2005, 09:07 AM   #2
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
just interested,,,how do you know only the first device works? How are you trying to route your packets and, frankly, why if they both go to the same gateway?
 
Old 09-29-2005, 09:20 AM   #3
petermbm
LQ Newbie
 
Registered: Oct 2003
Posts: 5

Original Poster
Rep: Reputation: 0
I do it with ping -I ethX 192.168.1.1, and with the second activated, "non-working" device,
it always says destination host unreachable, no matter what ip i ping.
When I bring up eth0 first, eth1 won't ping anything, if I bring up eth1 first, eth0 wont ping.


All I do with route is set the default gateway 192.168.1.1.
I dont have much experience with route, what is the correct way to get both interfaces to use 192.168.1.1 as a gateway?
 
Old 09-29-2005, 12:10 PM   #4
otchie1
Registered User
 
Registered: Apr 2004
Posts: 560

Rep: Reputation: 30
you need load balancing software for that as a given app would have to divide its packets between two NICs. That's probably why one of the NICs is always suspended.
 
  


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
automounting usb devices with usbmount works well but i have one problem mechmg93 Debian 9 10-23-2005 07:24 AM
Logitech - Devices - New device works great! goozlq Linux - Hardware 0 09-01-2005 04:21 PM
No mixer elements and/or devices found. Works only as root! titan_pi8 Linux - Newbie 2 04-30-2005 06:51 AM
no signal when starting xorg for the 1st time (but the second time works fine) bungalowbill Linux - Software 0 06-04-2004 09:56 AM
multiple ethernet devices poison Slackware 2 02-23-2004 06:46 AM

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

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