Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 routes to a single end point ?

Reply
Thread Tools Display Modes

2 routes to a single end point ?

 
 
Jean-Paul Le Fevre
Guest
Posts: n/a

 
      02-26-2004, 09:24 AM
I would like to know whether it is possible to define two direct routes
from a machine with two interfaces to a single other machine :

Machine src Machine dst
eth0 _____
\____
____| dst0
eth1 _____/


I tried bonding, coupling eth0 and eth1 in a master bond0. It worked fine
but it is not what I want to do since the traffic is shared between the
two slaves.

I tried a slightly different configuration : the destination having also
to interfaces dst0 and dst1. With iproute2 I successfully set up two
parallel routes eth0-dst0 and eth0-dst1. But again, it is not what I want.

Finally, using 'ip route add,change, ...' I've tried to configure my
system in order to have the traffic going directly from eth0 to dst0
*or* (exclusive) from eth1 to dst0. But 'ip route' has not accepted my
requests.

Is it a forbidden configuration ?
 
Reply With Quote
 
 
 
 
Rich Grise
Guest
Posts: n/a

 
      02-26-2004, 07:31 PM
"Jean-Paul Le Fevre" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> I would like to know whether it is possible to define two direct routes
> from a machine with two interfaces to a single other machine :
>
> Machine src Machine dst
> eth0 _____
> \____
> ____| dst0
> eth1 _____/
>
>
> I tried bonding, coupling eth0 and eth1 in a master bond0. It worked fine
> but it is not what I want to do since the traffic is shared between the
> two slaves.

....
> Is it a forbidden configuration ?


I'm certainly no expert, but isn't this a job for IP Masquerading?
http://www.tldp.org/HOWTO/Masqueradi...WTO/index.html

Good Luck!
Rich


 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-28-2004, 12:41 AM
Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
> I would like to know whether it is possible to define two direct routes
> from a machine with two interfaces to a single other machine :
>
> Machine src Machine dst
> eth0 _____
> \____
> ____| dst0
> eth1 _____/


In order to help you, I would need to ask you why you wanted to do this.
That would help clarrify the situation.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Jean-Paul Le Fevre
Guest
Posts: n/a

 
      02-28-2004, 09:59 AM
Cameron Kerr wrote:
> Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
>
>>I would like to know whether it is possible to define two direct routes
>>from a machine with two interfaces to a single other machine :
>>
>> Machine src Machine dst
>> eth0 _____
>> \____
>> ____| dst0
>> eth1 _____/

>
>
> In order to help you, I would need to ask you why you wanted to do this.
> That would help clarrify the situation.
>


Some colleagues of mine want to test a set of switch devices.
Actually the architecture is the following :

The source consists of something like 6 interfaces (100 Mb/s)
embedded in 1 or 2 PC.
The destination is a machine with 1 Gigabit/s interface.
A java application is running between the source and the destination
sending data back and forth.
The device to verify is inserted bewteen the source and the destination.
It has 6 input ports and 1 output port.

The goal is to see whether the switch hardware is functionning as
specified and more specifically if the ports are correctly wired.
So it is quite important to know which route (i.e. which port) is chosen.



--
__________________________________________________ _________________

Jean-Paul Le Fèvre * Mail : (E-Mail Removed)
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-28-2004, 10:38 AM
Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
> Cameron Kerr wrote:
>> Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
>>
>>>I would like to know whether it is possible to define two direct routes
>>>from a machine with two interfaces to a single other machine :
>>>
>>> Machine src Machine dst
>>> eth0 _____
>>> \____
>>> ____| dst0
>>> eth1 _____/


Well then, you would need to put static routes on the destination, so
that every IP has its own route, directing it to the correct address.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
Reply With Quote
 
Jean-Paul Le Fevre
Guest
Posts: n/a

 
      02-28-2004, 12:41 PM
Cameron Kerr wrote:
> Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
>
>>Cameron Kerr wrote:
>>
>>>Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
>>>
>>>
>>>>I would like to know whether it is possible to define two direct routes
>>>
>>>>from a machine with two interfaces to a single other machine :
>>>
>>>> Machine src Machine dst
>>>> eth0 _____
>>>> \____
>>>> ____| dst0
>>>> eth1 _____/

>
>
> Well then, you would need to put static routes on the destination, so
> that every IP has its own route, directing it to the correct address.
>

How ?

With route(8) it seems that, if you define 2 static routes to the
same target, the system uses only the first one.

On the other hand, with iproute2, I could not find the corrrect arguments
to 'ip route add ' to set up the 2 routes. The command failed with a
error message.


--
__________________________________________________ _________________

Jean-Paul Le Fèvre * Mail : (E-Mail Removed)
 
Reply With Quote
 
Cameron Kerr
Guest
Posts: n/a

 
      02-29-2004, 05:24 AM
Jean-Paul Le Fevre <(E-Mail Removed)> wrote:
> Cameron Kerr wrote:


>> Well then, you would need to put static routes on the destination, so
>> that every IP has its own route, directing it to the correct address.
>>

> How ?
>
> With route(8) it seems that, if you define 2 static routes to the
> same target, the system uses only the first one.


Ah, a good point. You can use IP aliases on dst so it has multiple IPv4
addresses.

root@dst:~# ifconfig eth0:1 <IP1> netmask 255.255.255.255 up
root@dst:~# ifconfig eth0:2 <IP2> netmask 255.255.255.255 up

Each <IPx> would need to be different though, and the Java program would
need to know to send to the correct IP address.

--
Cameron Kerr
(E-Mail Removed) : http://nzgeeks.org/cameron/
Empowered by Perl!
 
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
Single xp computer can't connect to a single server groups@brainin.com Windows Networking 0 09-12-2007 10:38 PM
What is (in principle) the cheapest way to add a single wireless point to a wired network? [L.] Home Networking 7 01-11-2006 04:53 PM
Access Point - Dual or Single Antenna? MyName Wireless Internet 4 07-22-2005 05:45 AM
Single Access Point, Extending Range J. Ford Wireless Internet 2 05-28-2004 08:02 PM
Can a Single Building-to-Building Bridge be used as a Single Access Point? Alan Wireless Internet 0 10-28-2003 09:27 PM



1 2 3 4 5 6 7 8 9 10 11