Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 8 Apr 2019 14:55:49 -0700
From:      John Baldwin <jhb@FreeBSD.org>
To:        rgrimes@freebsd.org, Eugene Grosbein <eugen@freebsd.org>
Cc:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   Re: svn commit: r345970 - head/libexec/rc
Message-ID:  <37993f01-f14f-9d31-2c3e-f7b96473c39e@FreeBSD.org>
In-Reply-To: <201904052316.x35NGOSc041939@gndrsh.dnsmgr.net>
References:  <201904052316.x35NGOSc041939@gndrsh.dnsmgr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/5/19 4:16 PM, Rodney W. Grimes wrote:
>> Author: eugen
>> Date: Fri Apr  5 22:45:08 2019
>> New Revision: 345970
>> URL: https://svnweb.freebsd.org/changeset/base/345970
>>
>> Log:
>>   network.subr:	improve configuration of cloned gif(4) interfaces
>>   
>>   ifconfig(8) syntax allows to specify only single address_family,
>>   so we need additional invocation of ifconfig to support configuration
>>   of cloned gif interface that may use different address families
>>   for its internal and external addresses.
>>   
>>   Also, ifconfig(8) does not allow to omit "inet6" keyword for address family
>>   specifying IPv6 addresses as outer addresses of the interface.
>>   
>>   Also, address_family is not "parameter" and it has to go before parameters
>>   including "tunnel" keyword, so "ifconfig gif0 tunnel inet6 $oip1 $oip2" would be
>>   wrong syntax and only "ifconfig gif0 inet6 tunnel $oip1 $oip2" is right.
>>   
>>   With this change, the following works:
>>   
>>   gifconfig_gif0="inet6 2a00::1 2a01::1"
>>   ifconfig_gif0="inet 10.0.0.1 10.0.0.2 netmask 255.255.255.252"
> 
> If you want another fun one to wrestle with see if you can
> make this work:
> 
> cloned_interfaces="vlan32"
> ifconfig_em0="up"
> ifconfig_vlan32="vlan 32 vlandev em0 SYNCDHCP"
> 
> I have worked around it, but it would be nice if this "just worked".

Why not use the vlans thing btw?

ifconfig_em0="up"
vlans_em0="32"
ifconfig_em0_32="SYNCDHCP"

I think you probably still need the ifconfig_em0 as I don't think
up'ing a vlan implicitly up's the trunk.  You need similar "up"
entries when using lagg.

-- 
John Baldwin



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37993f01-f14f-9d31-2c3e-f7b96473c39e>