gif problems in -STABLE

Henrik Brix Andersen henrik at brixandersen.dk
Sat Dec 30 03:36:48 PST 2006


On Sat, Dec 30, 2006 at 02:56:35AM +0100, Dimitry Andric wrote:
> For some reason, the ifconfig command now fails to create the proper
> routing table entries.  With the 2006-11-03 kernel, if I configure my
> gif0 tunnel as follows:
> 
> ifconfig gif0 create
> ifconfig gif0 213.154.244.69 193.109.122.244
> ifconfig gif0 inet6 2001:7b8:2ff:146::2 2001:7b8:2ff:146::1 prefixlen 128
> route add -inet6 default 2001:7b8:2ff:146::1

Apart from the two IPv4 endpoint addresses you also assign two IPv6
addresses with prefixlen 128 to the gif0 interface? Looks weird to
me...

Try this configuration in /etc/rc.conf instead:

ipv6_defaultrouter="2001:7b8:2ff:146::1"
gif_interfaces="gif0"
gifconfig_gif0="213.154.244.69 193.109.122.244"
ipv6_ifconfig_gif0="2001:7b8:2ff:146::2 prefixlen 127"

This syntax works for my setup (and matches reality - gif0 is a tunnel
with two IPv4 endpoints). I have just tested it with RELENG_6 as of
today.

Regards,
Brix
-- 
Henrik Brix Andersen <henrik at brixandersen.dk>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 209 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20061230/047a5ef2/attachment.pgp


More information about the freebsd-stable mailing list