Hi all. 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? -- alexs
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 |
On 21 February 2011 09:40, <alexs@ulgsm.ru> wrote:> > Hi all. > > 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"^^ Why not? we used this trick at work for years. -- wbr, pluknet
* Sergey Kandaurov <pluknet@gmail.com> [2011-02-21 11:16:47 +0300]:> On 21 February 2011 09:40, <alexs@ulgsm.ru> wrote: > > > > Hi all. > > > > 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" > ^^ > > Why not? we used this trick at work for years. drivedI was driving 4 hours to take console and make this trick. It is work, but i think it is trap and unnessesary admins hand work.> > -- > wbr, > pluknet > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"-- alexs