Date: Sun, 20 Feb 2011 23:32:35 -0800 From: Jeremy Chadwick <freebsd@jdc.parodius.com> To: alexs@ulgsm.ru Cc: freebsd-stable@freebsd.org Subject: Re: vlandev interface up on start up Message-ID: <20110221073235.GA35508@icarus.home.lan> In-Reply-To: <20110221064013.GA97226@mail.ulgsm.ru> References: <20110221064013.GA97226@mail.ulgsm.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 21, 2011 at 09:40:13AM +0300, alexs@ulgsm.ru wrote: > if in rc.conf > cloned_interfaces="vlan66" > ifconfig_vlan66="inet 192.168.66.1 netmask 255.255.255.0 vlan 66 vlandev em0" > > When statun em0 is active, status vlan66 is active, > but packets are silently drop. > > > it is need to add in rc.conf > ifconfig_em0="up" > > Or make ifconfig em0 up by hand. > > It it rigth to patch rc scrits somewhere in vlan creating? Have you looked at /etc/defaults/rc.conf, specifically the variables "vlans_XXX" and "create_args_vlanX" (where XXX is a NIC interface name), to see if there is already existing support for what you need? Just 'grep vlan /etc/defaults/rc.conf' to see what I'm taking about. Also, comment in passing: with regards to the ifconfig_XXX="up", this is pretty common when it comes to things like bridging and so on. I ran into this situation myself a few weeks ago when playing with bridging. -- | Jeremy Chadwick jdc@parodius.com | | Parodius Networking http://www.parodius.com/ | | UNIX Systems Administrator Mountain View, CA, USA | | Making life hard for others since 1977. PGP 4BD6C0CB |
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110221073235.GA35508>