From owner-freebsd-net@FreeBSD.ORG Wed Sep 28 11:05:34 2005 Return-Path: X-Original-To: freebsd-net@freebsd.org Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E65A516A420; Wed, 28 Sep 2005 11:05:34 +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 8B7FF43D5E; Wed, 28 Sep 2005 11:05:31 +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 j8SB5Qi9092592; Wed, 28 Sep 2005 15:05:26 +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 j8SB5PZ2092591; Wed, 28 Sep 2005 15:05:25 +0400 (MSD) (envelope-from yar) Date: Wed, 28 Sep 2005 15:05:25 +0400 From: Yar Tikhiy To: Bernd Walter Message-ID: <20050928110525.GF86457@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> <20050925225432.GH552@cicely12.cicely.de> <20050928103241.GC86457@comp.chem.msu.su> <20050928105742.GJ54923@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050928105742.GJ54923@cicely12.cicely.de> User-Agent: Mutt/1.5.9i Cc: freebsd-net@freebsd.org, freebsd-current@freebsd.org, Gavin Atkinson Subject: Re: "ifconfig -vlandev" syntax X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Sep 2005 11:05:35 -0000 On Wed, Sep 28, 2005 at 12:57:42PM +0200, Bernd Walter wrote: > On Wed, Sep 28, 2005 at 02:32:41PM +0400, Yar Tikhiy wrote: > > On Mon, Sep 26, 2005 at 12:54:33AM +0200, Bernd Walter wrote: > > > On Sun, Sep 25, 2005 at 11:08:25PM +0100, Gavin Atkinson wrote: > > > > > > > > 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" > > > > > > The follwing always worked for me, no need to rename: > > > cloned_interfaces="vlan1" > > > ifconfig_vlan1="inet 1.2.3.4/29 vlan 1 vlandev fxp0" > > > > Indeed, the address assignment arguments should precede other > > parameters to ifconfig(8). I think this is evident from the syntax > > shown on the manpage. > > > > > What doesn't work is this: > > > ifconfig_vlan1_alias0="1.2.3.4/32" > > > I had to configure them by a selfdone script. > > > > Adding aliases on vlanX this way has been working for me. Could > > you check if prepending the "inet" keyword before the address changes > > anything? I prefer to specify address family explicitly in my > > rc.conf files. E.g.: > > > > ifconfig_vlan1_alias0="inet 1.2.3.4/32" > > Sorry, but the configuration is used on a production machine that > I can't do tests on. Just tested without "inet", and it still worked for me. -- Yar