Date: Sat, 17 Apr 2004 19:50:38 -0400 From: "Adam C. Migus" <adam@migus.org> To: Ruslan Ermilov <ru@freebsd.org> Cc: current@freebsd.org Subject: Re: VLAN support in rcNG [PATCH] Message-ID: <1082245838.4081c2ce9117a@webservices.migus.org> In-Reply-To: <20040417230639.GA86698@ip.net.ua> References: <1082233506.408192a2c476a@webservices.migus.org> <20040417204536.GA85858@ip.net.ua> <1082235338.408199caed784@webservices.migus.org> <20040417230639.GA86698@ip.net.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
Quoting Ruslan Ermilov <ru@freebsd.org>: > On Sat, Apr 17, 2004 at 04:55:38PM -0400, Adam C. Migus wrote: > > Quoting Ruslan Ermilov <ru@freebsd.org>: > > > [...] > > > So, how your patch is different from the existing functionality? > > > > > 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: > > > > /etc/network.subr:318: _tmplist="${_tmplist} > ${cloned_interfaces}" > > > > creating vlans as cloned interfaces tends to be more of a crude > hack > > than an easy, one-step configuration. > > > > 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. > > > Hmm, I have this in my /etc/rc.conf: > > cloned_interfaces="vlan0" > ifconfig_vlan0="x.x.x.x/28 vlan 65 vlandev rl0 mtu 1500" > > and I'm pretty sure it works. ;) > > > Cheers, > -- > Ruslan Ermilov > ru@FreeBSD.org > FreeBSD committer > Yes, it does. Now try DHCP... -- Adam C. Migus -- http://people.migus.org/~adam/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1082245838.4081c2ce9117a>