Networking Forums

Networking Forums > Computer Networking > Linux Networking > multiple ethernet interfaces, routing depending on destination

Reply
Thread Tools Display Modes

multiple ethernet interfaces, routing depending on destination

 
 
smagister@gmail.com
Guest
Posts: n/a

 
      02-04-2007, 01:15 AM
Hello,

I have two ethernet cards on two interfaces, eth0 and eth1. I have a
cable modem plugged into eth1 and a dsl modem plugged into eth0. I
would like to use the eth1 interface for everything except for http
requests to a particular website which I would like to go through the
dsl modem on eth0. (If you're curious I need to upload a large ammount
of data to amazon's S3 service and the DSL line has much better upload
speeds). I've done quite a bit of searching and it seems like the
linux routing is very flexible but I can't figure out how to have
requests to a particular domain go through a different ethernet
interface.

If someone would be kind enough to step me through this, or point me
to some documentation which deals with this I would be most grateful.

Thanks,
sam

 
Reply With Quote
 
 
 
 
Lasse Jensen
Guest
Posts: n/a

 
      02-04-2007, 06:10 PM
(E-Mail Removed) wrote:

> Hello,
>
> I have two ethernet cards on two interfaces, eth0 and eth1. I have a
> cable modem plugged into eth1 and a dsl modem plugged into eth0. I
> would like to use the eth1 interface for everything except for http
> requests to a particular website which I would like to go through the
> dsl modem on eth0. (If you're curious I need to upload a large ammount
> of data to amazon's S3 service and the DSL line has much better upload
> speeds). I've done quite a bit of searching and it seems like the
> linux routing is very flexible but I can't figure out how to have
> requests to a particular domain go through a different ethernet
> interface.
>
> If someone would be kind enough to step me through this, or point me
> to some documentation which deals with this I would be most grateful.


I haven't tried it, but

route add -host upload.amazon.com dev eth0 metric 1 your.dsl.gateway
route add default dev eth1 metric 2 gw your.cable.gateway

might work.

--
Lasse Jensen [fafler at g mail dot com]
Linux, the choice of a GNU generation.
 
Reply With Quote
Reply

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Routing to multiple interfaces Topi Linux Networking 7 04-03-2008 09:56 AM
Multiple Virtual Ethernet Interfaces netfiber@gmail.com Linux Networking 0 02-02-2007 12:05 AM
Routing Table and Multiple Interfaces Fred Marshall Windows Networking 2 06-30-2004 08:08 PM
Multiple VPN-Interfaces and intelligent routing John Bieling Linux Networking 0 04-26-2004 05:47 PM
Routing through multiple interfaces based PORT? Aidan Linux Networking 0 07-23-2003 01:38 AM



1 2 3 4 5 6 7 8 9 10 11