From owner-freebsd-current@FreeBSD.ORG Sun Sep 25 22:08:43 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 2136A16A41F; Sun, 25 Sep 2005 22:08:43 +0000 (GMT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from mail-gw0.york.ac.uk (mail-gw0.york.ac.uk [144.32.128.245]) by mx1.FreeBSD.org (Postfix) with ESMTP id DAD7C43D49; Sun, 25 Sep 2005 22:08:41 +0000 (GMT) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: from buffy.york.ac.uk (buffy-128.york.ac.uk [144.32.128.160]) by mail-gw0.york.ac.uk (8.12.10/8.12.10) with ESMTP id j8PM8QcN001579; Sun, 25 Sep 2005 23:08:26 +0100 (BST) Received: from buffy.york.ac.uk (localhost [127.0.0.1]) by buffy.york.ac.uk (8.13.4/8.13.4) with ESMTP id j8PM8P9u025343; Sun, 25 Sep 2005 23:08:25 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) Received: (from ga9@localhost) by buffy.york.ac.uk (8.13.4/8.13.4/Submit) id j8PM8PbN025342; Sun, 25 Sep 2005 23:08:25 +0100 (BST) (envelope-from gavin.atkinson@ury.york.ac.uk) X-Authentication-Warning: buffy.york.ac.uk: ga9 set sender to gavin.atkinson@ury.york.ac.uk using -f From: Gavin Atkinson To: Brooks Davis In-Reply-To: <20050925213741.GG15981@odin.ac.hmc.edu> References: <20050922104104.GA13539@comp.chem.msu.su> <20050925213741.GG15981@odin.ac.hmc.edu> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Sun, 25 Sep 2005 23:08:25 +0100 Message-Id: <1127686105.23447.35.camel@buffy.york.ac.uk> Mime-Version: 1.0 X-Mailer: Evolution 2.2.3 FreeBSD GNOME Team Port X-York-MailScanner: Found to be clean X-York-MailScanner-From: gavin.atkinson@ury.york.ac.uk Cc: Yar Tikhiy , freebsd-current@freebsd.org, freebsd-net@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: Sun, 25 Sep 2005 22:08:43 -0000 On Sun, 2005-09-25 at 14:37 -0700, Brooks Davis wrote: > On Thu, Sep 22, 2005 at 02:41:05PM +0400, Yar Tikhiy wrote: > > Hi folks, > > > > As our ifconfig(8) is growing more options for special interface > > types, inconsistencies sneak into their syntax. In particular, > > -vlandev takes a useless argument (vlan(4) cannot attach to more > > than one parent anyway) while, e.g., -carpdev doesn't need one. > > Personally, I like the latter since having to type unneeded words > > on the command line annoys me. Do you think that making -vlandev > > need no arguments in CURRENT would break many existing things? > > I agree the argument is useless. Unfortunatly, it's going to be hard to > deprecate the old syntax so we may need to keep it around. 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# 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" Which is less than ideal. However, fixing these issues looks to be non-trivial. Gavin