LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 12-06-2004, 06:12 PM   #1
elspxvwcyr
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Rep: Reputation: 0
Unhappy How do I use 2 ethernet adapters?


I have a question about using two ethernet adapeters at the same time. I have two computers running Win2K and one running Mandrake 10.1 all with two ethernet adapters. One adapter is connected to a DSL router, and the other to an ethernet hub for local networking. This works fine in the Windows boxes but gives me trouble in the Linux box.

With one adapter (eth0) active, connected to the router, internet access works fine. But when I activate the 2nd adapter (eth1), connected to the hub, internet
access no longer works. I'm not sure if local networking works, since I haven't got past the internet problem yet. BTW, the adapters are using IP addresses in different subnets.

What's going on here? How do internet applications know which adapter to use? I haven't been able to find any parameters about this, and I'm kind of a networking newbie.

Thanks...
 
Old 12-06-2004, 08:32 PM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Apps decide which path to take depeding on which interface can talk to default gateway (route). Do you have a default route set when both interfaces are active? What are the network/netmask combos you're using? If you're a network newbie, it's easy to screw up netmasks.
 
Old 12-07-2004, 09:24 AM   #3
elspxvwcyr
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Smile More info

Route table.. default route.. how do I do that?

Info:
>ifconfig
eth0 Link encap:Ethernet HWaddr 00:0E:A6:47:43:88
inet addr:192.168.1.101 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::20e:a6ff:fe47:4388/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:334 errors:0 dropped:0 overruns:0 frame:0
TX packets:5671 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37044 (36.1 Kb) TX bytes:274108 (267.6 Kb)
Interrupt:5 Base address:0x8800

eth1 Link encap:Ethernet HWaddr 00:A0:C9:E8:A0:E8
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)
Interrupt:10 Base address:0x8000

Thanks for your reply.
 
Old 12-07-2004, 10:02 AM   #4
Butt-Ugly
Member
 
Registered: Nov 2004
Location: Brisbane, Australia
Distribution: Fedora Core 5
Posts: 89

Rep: Reputation: 15
Re: More info

Quote:
Originally posted by elspxvwcyr
Route table.. default route.. how do I do that?
This may help: http://www.brennan.id.au/04-Network_...n.html#routing

BU.
 
Old 12-07-2004, 03:48 PM   #5
elspxvwcyr
LQ Newbie
 
Registered: Jul 2004
Posts: 3

Original Poster
Rep: Reputation: 0
Thumbs up Internet working now

Thanks to sigsegv and Butt-Ugly for the info. I read the Networking-Overview-HOWTO and the The Linux Network Administrator's Guide, but somehow missed the Linux Home Server HOWTO!

My routing table specified eth1 as the default. When I corrected it, the problem was gone.
 
  


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
a lil help with ethernet adapters... bmxwrestler180 Linux - Hardware 14 09-01-2006 06:20 PM
How to the no of attached ethernet adapters Bassam Linux - Networking 1 03-01-2005 03:40 AM
More than two adapters using ad-hoc andrewjjones Linux - Wireless Networking 5 10-20-2004 04:29 PM
for network adapters arben Red Hat 1 02-17-2004 01:33 AM
USB Adapters sihere Linux - Software 2 12-30-2001 05:29 PM

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

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