Project Home
Project Home
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - Multiple default gateway: (7 Items)
   
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


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


Attachment: Text winmail.dat 2.67 KB
Re: RE: Multiple default gateway  
Thanks for all of your answers.

Ok I think I have to write a little process in charge of the gateways redundancy.

Philippe
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
Re: Multiple default gateway  
he is asking multiple nexthop I believe. And most of stack of routers will implement. Linux supports this some years ago
 and I believe some BSDs stack support it too but obviously netbsd didn't:(
Re: Multiple default gateway  
If you have control of the whole network, there are also protocols like VRRP (Virtual Router Redundancy Protocol) to 
protect against default router death. I don't believe that it's been ported to Neutrino, but it probably wouldn't be too
 hard to do.

   Robert
Re: Multiple default gateway  
> If you have control of the whole network, there are also protocols like VRRP (
> Virtual Router Redundancy Protocol) to protect against default router death. I
>  don't believe that it's been ported to Neutrino, but it probably wouldn't be 
> too hard to do.
> 
>    Robert


sometimes multiple nexthop can be used as traffic balancing too although most stack won't support but some routers will 
do.