Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 05 Jul 2008 15:02:35 -0400
From:      Boris Kochergin <spawk@acm.poly.edu>
To:        freebsd-net@freebsd.org
Subject:   One-liner for setting IPv6 address and IPv4 endpoints on gif interface?
Message-ID:  <486FC54B.3060706@acm.poly.edu>

next in thread | raw e-mail | index | archive | help
Hi, list. I set up an IPv6-over-IPv4 tunnel from Hurricane Electric 
using a gif(4) interface using the commands:

ifconfig gif0 tunnel [source IPv4] [destination IPv4]
ifconfig gif0 inet6 [source IPv6] [destination IPv6] prefixlen 128
route -n add -inet6 default [destination IPv6]

I'm wondering whether there's a one-liner for executing the first two 
commands, or some non-one-liner way of making it happen through 
/etc/rc.conf. Thanks.

-Boris



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