Date: Sat, 5 Jul 2008 23:18:11 +0400 From: Yuri Pankov <yuri.pankov@gmail.com> To: Boris Kochergin <spawk@acm.poly.edu> Cc: freebsd-net@freebsd.org Subject: Re: One-liner for setting IPv6 address and IPv4 endpoints on gif interface? Message-ID: <20080705191811.GA58433@darklight.homeunix.org> In-Reply-To: <486FC54B.3060706@acm.poly.edu> References: <486FC54B.3060706@acm.poly.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Jul 05, 2008 at 03:02:35PM -0400, Boris Kochergin wrote: > 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 Not sure about one-liner, but that's what I'm using in rc.conf (Hurricane Electric's tunnelbroker.net tunnel): gif_interfaces="gif0" gifconfig_gif0="src_ipv4 dst_ipv4" ipv6_enable="YES" ipv6_ifconfig_gif0="src_ipv6 dst_ipv6 prefixlen 128" ipv6_defaultrouter="dst_ipv6" HTH, Yuri
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080705191811.GA58433>