Date: Sun, 23 Mar 2008 17:42:23 +0000 From: Malcolm Clarke <malcolm.clarke@brunel.ac.uk> To: Kevin Downey <redchin@gmail.com> Cc: freebsd-questions@freebsd.org Subject: Re: ifconfig gif0 and rc.conf [was: Re: IP packet with options] Message-ID: <47E6967F.6020609@brunel.ac.uk> In-Reply-To: <1d3ed48c0803231019k17c63e69t5852b32b4a2ef264@mail.gmail.com> References: <4731E220.3050006@brunel.ac.uk> <200711081214.16533.nvass@teledomenet.gr> <47E51E19.5020502@brunel.ac.uk> <47E5392D.3010104@cran.org.uk> <47E53F41.90504@brunel.ac.uk> <47E64E9F.4060509@brunel.ac.uk> <1d3ed48c0803231019k17c63e69t5852b32b4a2ef264@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Dear Kevin
Many thanks.
Maybe this can make it to the next release to fill a gap.
Regards
Malcolm
Kevin Downey wrote:
>On Sun, Mar 23, 2008 at 5:35 AM, Malcolm Clarke
><malcolm.clarke@brunel.ac.uk> wrote:
>
>
>>Hi
>>
>> Does anyone know the IPv6 vesion of the command that would be of the form
>>
>> gifconfig_gif0="fec0::1 fec0::2"
>>
>> that would set up the two physical ends of a tunnel?
>>
>> Sadly the above does not works as it does not recognise the IPv6 address
>> as there is no
>>
>> ipv6_gifconfig_gif0="fec0::1 fec0::2"
>>
>> to correspond to the command
>>
>> ifconfig gif0 inet6 tunnel src-addr dst_addr
>>
>> Regards
>>
>> Malcolm
>>
>>
>>
>
>sorry for the duplicate mail Malcolm, forgot to reply to the list as well.
>
>the attached patch should let use the inet6 keyword.
>example:
>
>gifconfig_gif0="inet6 fec0::1 fec0::2"
>
>
>
>
>
>
>--- /etc/network.subr 2008-03-23 09:50:35.000000000 -0700
>+++ /tmp/network.subr 2008-03-23 10:06:51.000000000 -0700
>@@ -470,7 +470,6 @@
> fi
> done
> }
>-
> gif_up() {
> # The following must be removed once RELENG_7 is branched.
> case ${gif_interfaces} in
>@@ -486,6 +485,11 @@
> '')
> continue
> ;;
>+ *inet6*)
>+ ifconfig $i create >/dev/null 2>&1
>+ ifconfig $i inet6 tunnel `echo ${peers} | cut -d \ -f 2-`
>+ ifconfig $i up
>+ ;;
> *)
> ifconfig $i create >/dev/null 2>&1
> ifconfig $i tunnel ${peers}
>
>
>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?47E6967F.6020609>
