On Sun, May 15, 2011 at 6:18 PM, Mark Felder <[email protected]> wrote:
>
> On Sun, 15 May 2011 16:10:21 -0500, Andreas Bartelt <[email protected]>
wrote:
>>
>> Is there a way to do this correctly via /etc/hostname.gif0 ?
>>
>> Best regards
>> Andreas
>>
>
> Not sure if this helps, but as far as I know this is the way you're supposed
to do it for a 6to4 tunnel:
>
> Sanitized, but you'll get the point:
>
> $ cat /etc/hostname.gif0
> tunnel LOCAL_IP DEST_IP
> inet6 alias IPV6_NETWORK PREFIXLEN
>
>
> My issue is that it still doesn't work 100% correctly on boot. If I "sh
/etc/netstart" again, it begins working. Strange.
>
>
> Regards,
>
>
> Mark
>

For a 6to4 tunnel, you can use something like this in your
hostname.gif so that it works on boot:

$ cat /etc/hostname.gif0
tunnel LOCAL_IP4 DEST_IP4
inet6 LOCAL_IP6
dest DEST_IP6
!/sbin/route -n add -inet6 default LOCAL_IP6
!/sbin/route change -inet6 default -ifp gif0

Axton Grams

Reply via email to