View Single Post

  #3 (permalink)  
Old 03-19-2008
David Schwartz
 
Posts: n/a
Default Re: Redundancy using double interface & gateway

On Mar 18, 2:03 pm, cwpbl <cw...@rf.oohay> wrote:
> Hi,
> I have the following configuration with 2 PC :
>
> +------+ eth0 eth0 +------+
> | PC1 +---------/--------+ PC2 | eth2
> | | | +---------------(Device, IP3)
> | +---------/--------+ |
> +------+ eth1 eth1 +------+
>
> I want to send IP packets to the device (with IP3 address) from PC1 and
> using PC2 as a gateway. I have configured PC2 as a gateway for eth0 ->
> eth2 and eth1 -> eth2.
>
> But how can I set routes on PC1 ?


Simply set two routes on PC1. They should both be to the address
assigned to the device. The first one should have a gateway of PC2/
eth0 address and the other should have a gateway of PC2/eth1 address.

This is the quick/kludgy way. There are more complex but more elegant
ways to do it. For example, you could assign both PC1 and PC2
'internal' addresses not assigned with any interface, add two routes
to PC2's 'internal' address to PC1, and then route IP3 to PC2's
internal address.

You can also use a routing protocol (such as OSPF) and have PC2
advertise its route to IP3 through both interfaces.

DS
Reply With Quote