12/01/2009 9:46 AM
RE: Multiple default gateway
This currently isn't possible.
From: Philippe ELSKENS [mailto:firstname.lastname@example.org]
Sent: Tue 12/1/2009 9:29 AM
Subject: Multiple default gateway
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
12/01/2009 10:39 AM
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!