From owner-freebsd-current@FreeBSD.ORG Wed Sep 28 10:39:44 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA96616A41F; Wed, 28 Sep 2005 10:39:44 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (comp.chem.msu.su [158.250.32.97]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6499543D49; Wed, 28 Sep 2005 10:39:41 +0000 (GMT) (envelope-from yar@comp.chem.msu.su) Received: from comp.chem.msu.su (localhost [127.0.0.1]) by comp.chem.msu.su (8.13.3/8.13.3) with ESMTP id j8SAdciq091482; Wed, 28 Sep 2005 14:39:38 +0400 (MSD) (envelope-from yar@comp.chem.msu.su) Received: (from yar@localhost) by comp.chem.msu.su (8.13.3/8.13.3/Submit) id j8SAdcFR091481; Wed, 28 Sep 2005 14:39:38 +0400 (MSD) (envelope-from yar) Date: Wed, 28 Sep 2005 14:39:37 +0400 From: Yar Tikhiy To: Gavin Atkinson Message-ID: <20050928103937.GD86457@comp.chem.msu.su> References: <20050922104104.GA13539@comp.chem.msu.su> <20050925213741.GG15981@odin.ac.hmc.edu> <1127686105.23447.35.camel@buffy.york.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1127686105.23447.35.camel@buffy.york.ac.uk> User-Agent: Mutt/1.5.9i Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org Subject: Re: "ifconfig -vlandev" syntax X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 10:39:44 -0000 On Sun, Sep 25, 2005 at 11:08:25PM +0100, Gavin Atkinson wrote: > > There's also the issue that the "vlan" and "vlandev" options have to be > specified in that order, which is counter-intuitive and undocumented. > > leeloo# ifconfig vlan14 vlandev fxp0 vlan 14 > ifconfig: must specify both vlan tag and device > leeloo# ifconfig vlan14 vlan 14 vlandev fxp0 > leeloo# Agreed. I noticed this issue, too, but forgot about it later. Would you mind filing a PR with me in Cc so that I won't forget about it again? Can't promise making the order arbitrary, but documenting this subtlety is a must. > Also, you can't set both the vlan and IP address information: > leeloo# ifconfig vlan14 vlan 14 vlandev fxp0 inet W.X.Y.Z netmask 255.255.255.0 > ifconfig: inet: bad value > > As a result of this, the only way to create vlans from rc.conf seems to > be in two stages, by renaming the interface: > > cloned_interfaces="vlan14" > ifconfig_vlan14="vlan 14 vlandev fxp0 name somename" > ifconfig_somename="inet W.X.Y.Z netmask 255.255.255.0" Just use: ifconfig_vlan14="inet W.X.Y.Z netmask 255.255.255.0 vlan 14 vlandev fxp0" This is what ifconfig(8) manpage tells in the syntax section: the address should precede other parameters. -- Yar