Why default route is not installed last?

Erwin Lansing erwin at FreeBSD.org
Mon Aug 26 11:51:13 UTC 2013


On Mon, Aug 26, 2013 at 08:37:44PM +0900, Hiroki Sato wrote:
> Xin Li <delphij at delphij.net> wrote
>   in <521670FF.6080407 at delphij.net>:
> 
> de> -----BEGIN PGP SIGNED MESSAGE-----
> de> Hash: SHA512
> de>
> de> Hi,
> de>
> de> I've noticed that we do not install default route last (after other
> de> static routes).  I think we should probably install it last, since the
> de> administrator may legitimately configure a static route (e.g. this
> de> IPv6 address goes to this interface) that is required by the default
> de> route.
> 
>  Do you have an example?  I could imagine some theoretically but
>  personally think that the default route which depends on a static
>  route is one which should be avoided.
> 
The german hosting company Hetzner previously used a non-standard setup
for IPv6 where the default gateway was not on the local subnet.  One
example to work around this linked here, more can be found by searching
the web:
http://blog.vx.sk/archives/33-FreeBSD-network-configuration-on-Hetzner-servers.html

Not sure all workaround in that article were needed, but the simplest
solution was to define two static routes, with the last one in the list
a default route.

Hetzner has fixed the setup now, so one can use a standard rc config
these days, but just to show that such weird setups do exist.  Given
that the default is also the last resort, it makes sense it's loaded
last as well.

Cheers,
Erwin


-- 
Erwin Lansing                       (o_ _o)        http://droso.dk
                                 \\\_\   /_///
erwin at lansing.dk                 <____) (____>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 188 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20130826/dcf7a693/attachment.sig>


More information about the freebsd-rc mailing list