From owner-freebsd-current@FreeBSD.ORG Sat Apr 17 16:06:48 2004 Return-Path: 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 2F97D16A4CE for ; Sat, 17 Apr 2004 16:06:48 -0700 (PDT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 31CC343D1F for ; Sat, 17 Apr 2004 16:06:47 -0700 (PDT) (envelope-from ru@ip.net.ua) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id i3HNAmaR027684 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sun, 18 Apr 2004 02:10:50 +0300 (EEST) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.12.11/8.12.11) id i3HN6dcH086739; Sun, 18 Apr 2004 02:06:39 +0300 (EEST) (envelope-from ru) Date: Sun, 18 Apr 2004 02:06:39 +0300 From: Ruslan Ermilov To: "Adam C. Migus" Message-ID: <20040417230639.GA86698@ip.net.ua> References: <1082233506.408192a2c476a@webservices.migus.org> <20040417204536.GA85858@ip.net.ua> <1082235338.408199caed784@webservices.migus.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="ZGiS0Q5IWpPtfppv" Content-Disposition: inline In-Reply-To: <1082235338.408199caed784@webservices.migus.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: current@freebsd.org Subject: Re: VLAN support in rcNG [PATCH] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 17 Apr 2004 23:06:48 -0000 --ZGiS0Q5IWpPtfppv Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, Apr 17, 2004 at 04:55:38PM -0400, Adam C. Migus wrote: > Quoting Ruslan Ermilov : >=20 [...] > > So, how your patch is different from the existing functionality? > >=20 > Hmmm, well, it's not. In fact the code is almost a copy of the cloned > interfaces stuff. The thing is when you try to use the existing cloned > interfaces stuff to create a vlan interface, the lack of the _tag and > _dev stuff in combination with things like this: >=20 > /etc/network.subr:318: _tmplist=3D"${_tmplist} ${cloned_interfaces}" >=20 > creating vlans as cloned interfaces tends to be more of a crude hack > than an easy, one-step configuration. >=20 > If you can show me how I can create a vlan, using the existing stuff > with the functionality I want (DHCP or static IP, etc.) without writing > any code beyond declarations in rc.conf, show me, otherwise I'm > suggesting this patch as it makes it easy. >=20 Hmm, I have this in my /etc/rc.conf: cloned_interfaces=3D"vlan0" ifconfig_vlan0=3D"x.x.x.x/28 vlan 65 vlandev rl0 mtu 1500" and I'm pretty sure it works. ;) Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --ZGiS0Q5IWpPtfppv Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAgbh/Ukv4P6juNwoRAo4yAJ4mQOgVJiRFgrULm/zRteOgF8yEvgCeL06z i0MnvEXirKWF8EzHxtePH8s= =o+9D -----END PGP SIGNATURE----- --ZGiS0Q5IWpPtfppv--