Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Feb 2014 20:37:03 +0200
From:      Kimmo Paasiala <kpaasial@icloud.com>
To:        freebsd-net@freebsd.org
Subject:   Re: gifconfig_gifX not working with cloned_interfaces?
Message-ID:  <F73EF686-ECA1-4F70-9D15-7D8C336A4FB7@icloud.com>
In-Reply-To: <BDD51EA3-06FE-431C-84D9-8FE3671BD05A@icloud.com>
References:  <3688B949-7F3B-47FE-8C6A-193805AE2B27@icloud.com> <CA%2Bq%2BTcqccvZkts4TGB8QSn_YsNXoCCt%2BWkOZfNdJp2Z%2BYThEMA@mail.gmail.com> <BDD51EA3-06FE-431C-84D9-8FE3671BD05A@icloud.com>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]

On 22.12.2013, at 12.05, Kimmo Paasiala <kpaasial@icloud.com> wrote:

> 
> On 22.12.2013, at 12.01, Olivier Cochard-Labbé <olivier@cochard.me> wrote:
> 
>> On Sat, Dec 21, 2013 at 9:27 PM, Kimmo Paasiala <kpaasial@icloud.com> wrote:
>>> 
>>> FreeBSD 10.0-RC2 r259413 i386.
>>> 
>>> I have this set up in rc.conf:
>>> 
>>> cloned_interfaces="gif0"
>>> gifconfig_gif0="88.xxx.xxx.xxx 62.yyy.yyy.yyy"
>>> ifconfig_gif0_ipv6="inet6 2001:14b8:aaa:bbb::2 2001:14b8:aaa:bbb::1 prefixlen 128”
>>> 
>>> I’m not using gif_interfaces=“gif0” since it’s deprecated as per the warning messages spewed by the rc(8) scripts.
>>> 
>>> However this does not work properly The ‘ifconfig gif0 tunnel 88.xxx.xxx.xxx 62.yyy.yyy.yyy’ does not get executed. It looks to me that the tunnel set up is only performed when gif0 is listed in gif_interfaces.
>>> 
>>> I can work around this by doing this instead of the 'gifconfig_gif0' line:
>>> 
>>> ifconfig_gif0=“ tunnel 88.xxx.xxx.xxx 62.yyy.yyy.yyy”
>>> 
>> 
>> Hi,
>> 
>> You can configure gif interface like a standard interface (without using gifconfig_), here is an example:
>> 
>> cloned_interfaces="gif0 gif1"
>> ifconfig_gif0="inet 10.0.24.2/24 10.0.24.4 tunnel 10.0.23.2 10.0.34.4 up"
>> ifconfig_gif1_ipv6="inet6 2001:db8:24::2 prefixlen 64 tunnel 2001:db8:23::2 2001:db8:34::4 up"
>> 
>> Regards,
>> 
>> Olivier
> 
> Hi,
> 
> Yes I know. I did note that in my workaround for the problem. However, the rc.conf(5) manual page claims that gifconfig_gifX should still work and that’s why I’m reporting the issue.
> 
> -Kimmo
> 

Hello,

Has anyone had time to look at this issue? I could try to come up with a fix myself but I’d first like to know what is the proper way configure gif(4) interfaces with FreeBSD 10. If gif_interfaces is deprecated then is gifconfig_gifX also deprecated? If gifconfig_gifX is also deprecated then this is a documentation issue and also the rc(8) scripts should warn about using it like they do now warn about gif_interfaces. If gifconfig_gifX is still valid then something must be done about the handling of cloned_interfaces in rc.conf.
-Kimmo

[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Comment: GPGTools - https://gpgtools.org

iQEcBAEBCgAGBQJS+m3TAAoJEFvLZC0FWRVpVq8H/A+6C2uo0HjYHN+Fhmfyk9p/
wpfiSLQDzCEnAeXNJVg2OlcL0uXzhE7j+wAzu6zZTjRs7wCWehBRqzP64LoBiRuf
z6jDD5EOfM34DaIsI4JIto2YgG/RLEdq8Y0Q8rK98CW1D7kI4AZWW0jPf1Y2K5fr
OySEzLrzjDr3OJk2GXbuQq0lalhCvp0Lp3tvFkvYH9U+JPq0sqp1CEnpQwr861QK
VK+WGchGiJg3qpvSNmw5BPEYsQmMiJLBnyEE8pZDaket3nmGJwTyTinTsqDIQEXz
w4DR+yX9ZUGkbMoO5evYeurV7rYDIfiSOtXa1m/zYDmIgIRHwUVR0ApCG7bCU/I=
=PedT
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?F73EF686-ECA1-4F70-9D15-7D8C336A4FB7>