Sean Boudreau(deleted)
|
RE: Multiple default gateway
|
Sean Boudreau(deleted)
12/01/2009 9:46 AM
post42950
|
RE: Multiple default gateway
This currently isn't possible.
-seanb
-----Original Message-----
From: Philippe ELSKENS [mailto:community-noreply@qnx.com]
Sent: Tue 12/1/2009 9:29 AM
To: general-networking
Subject: Multiple default gateway
Hi,
Does it possible to setup multiple default gateway with io-net ?
I would like to use a separate default gateway on separate interface, for instance :
ifconfig en0 192.168.1.1 netmask 255.255.255.0
ifconfig en1 192.168.2.1 netmask 255.255.255.0
and I would like commands like :
route add default 192.168.1.254
route add default 192.168.2.254
but unfortunalty it doesn't work.
The goal here is to have always a way to connect the system, even in case of one gateway failure
Philippe
_______________________________________________
General
http://community.qnx.com/sf/go/post42949
|
|
|
Patrik Lahti
|
Re: Multiple default gateway
|
Patrik Lahti
12/01/2009 10:39 AM
post42961
|
Re: Multiple default gateway
As Sean pointed out, I don't think this is supported at the moment.
> The goal here is to have always a way to connect the system, even in case of one gateway failure
>
I'm assuming you're using io-net as a host. The behavior of a host would
mean that connections using one interface (en0 for example) would use
its IP address as source address (e.g. 192.168.1.1). Is that what you
want? Multihoming hosts are always a little tricky. Is there an
automated mechanism which tries to connect to the host or is a human
trying each connection?
In any case, you can try for example:
a) use a simple script which pings default gateway, and switches over
the route when it fails.
b) use a single interface connected to link with two routers which
implement a router redundancy protocol
c) write custom software which plugs into stack and does some trickery...
Hope this helps!
/P
|
|
|