Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Apr 2006 10:03:42 -0400
From:      Bill Moran <wmoran@collaborativefusion.com>
To:        "Perttu Laine" <plaine@gmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: adding ip:s with different gateway
Message-ID:  <20060406100342.3173e4cc.wmoran@collaborativefusion.com>
In-Reply-To: <c6ef380c0604060204v56d6f9bcv4320ac629573cc5b@mail.gmail.com>
References:  <c6ef380c0604060204v56d6f9bcv4320ac629573cc5b@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
"Perttu Laine" <plaine@gmail.com> wrote:

> I have currently ip:s from block ...125.192/26 on my freebsd server.
> with gateway ...125.193.
> added via rc.conf:
> 
> defaultrouter="...125.193"
> ifconfig_rl0="inet ...125.194  netmask 255.255.255.192"
> ifconfig_rl0_alias0="inet ...125.195  netmask 255.255.255.255"
> ifconfig_rl0_alias1="inet ...125.196  netmask 255.255.255.255"
> ifconfig_rl0_alias2="inet ...125.197  netmask 255.255.255.255"
> 
> and so on.
> 
> Now I got new block from isp: ...122.192/26 with gw ...122.193.
> So question is how to add ip's from this block to same server? With ipconfig
> etc. tools and with rc.conf?

It's not possible to have 2 default gateways.  That's not a FreeBSD thing,
it's a violation of the routing system.

If you want failover between two different gateways, you'll need to set
up BGP of some other routing control system to automatically adjust routes
as needed.  An explanation of BGP or any similar routing protocol is
beyond the scope of an email explanation - if that's what you need, I
suggest you look to amazon.com or similar for research materials.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060406100342.3173e4cc.wmoran>