From owner-svn-src-all@freebsd.org Fri Apr 5 23:16:27 2019 Return-Path: Delivered-To: svn-src-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 9FED51563744; Fri, 5 Apr 2019 23:16:27 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (br1.CN84in.dnsmgr.net [69.59.192.140]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 13DD983A54; Fri, 5 Apr 2019 23:16:26 +0000 (UTC) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: from gndrsh.dnsmgr.net (localhost [127.0.0.1]) by gndrsh.dnsmgr.net (8.13.3/8.13.3) with ESMTP id x35NGON7041940; Fri, 5 Apr 2019 16:16:24 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.13.3/8.13.3/Submit) id x35NGOSc041939; Fri, 5 Apr 2019 16:16:24 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <201904052316.x35NGOSc041939@gndrsh.dnsmgr.net> Subject: Re: svn commit: r345970 - head/libexec/rc In-Reply-To: <201904052245.x35Mj9Rd097169@repo.freebsd.org> To: Eugene Grosbein Date: Fri, 5 Apr 2019 16:16:24 -0700 (PDT) CC: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Reply-To: rgrimes@freebsd.org X-Mailer: ELM [version 2.4ME+ PL121h (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII X-Rspamd-Queue-Id: 13DD983A54 X-Spamd-Bar: ------ Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-6.99 / 15.00]; REPLY(-4.00)[]; NEURAL_HAM_SHORT(-0.99)[-0.988,0]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0] X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Apr 2019 23:16:27 -0000 > 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". -- Rod Grimes rgrimes@freebsd.org