Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Apr 2012 19:17:41 +0300
From:      Seth Mos <seth.mos@dds.nl>
To:        lev@FreeBSD.org, freebsd-net@freebsd.org
Subject:   Re: Hetzner.de IPv6 and FreeBSD -- default gateway is on other prefix,	need to add static route before default -- how?
Message-ID:  <ei60074xub3jgk11u934obg8.1335716261913@email.android.com>

next in thread | raw e-mail | index | archive | help

Use the link local addrees of the gateway. That should just work.

Cheers,
Seth

typed on a tiny touchscreen, why exactly?

Lev Serebryakov <lev@FreeBSD.org>schreef:

>Hello, Freebsd-net.
>
> "Famous" dedicated server provider Hetzner provides native IPv6 for
>servers, but with rather strange routing configuration: you need to
>configure static interface route and make this route default.
>
> If I add such lines in /etc/rc.conf:
>
>ifconfig_re0_ipv6="inet6 2a01:4f8:131:60a2::2 prefixlen 64 auto_linklocal accept_rtadv"
>ipv6_static_routes="ipv6defgw"
>ipv6_route_ipv6defgw="2a01:4f8:131:60a0:: -prefixlen 59 -iface re0"
>ipv6_defaultrouter="2a01:4f8:131:60a0::1"
>ipv6_default_interface="re0"
>
>  It doesn't work, because default route added first and it fails to
>be added, as route to 2a01:4f8:131:60a0::1 is not known yet.
>
>  If I replace this line in /etc/rc.d/routing:
>
>ipv6_static_routes="default ${ipv6_static_routes}"
>
>  with
>
>ipv6_static_routes="${ipv6_static_routes} default"
>
>  Everything works, but it is ugly hack -- to change system startup
>script, and I don't like it (for FreeBSD 8 I needed to change
>/etc/network.subr in similar way).
>
>  Is here any good way to configure such routing without changes in
>scripts, only with /etc/rc.conf?
>
>-- 
>// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>
>
>_______________________________________________
>freebsd-net@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-net
>To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


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