From owner-freebsd-net@FreeBSD.ORG Thu Jan 12 09:58:16 2006 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 D380116A420 for ; Thu, 12 Jan 2006 09:58:16 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from mail.yazzy.org (mail.yazzy.org [217.8.140.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1AF343D75 for ; Thu, 12 Jan 2006 09:58:09 +0000 (GMT) (envelope-from lists@yazzy.org) Received: from [84.247.144.144] (helo=marcin) by mail.yazzy.org with esmtps (TLSv1:AES256-SHA:256) (YazzY.org) id 1EwzDB-00020w-8G; Thu, 12 Jan 2006 10:57:41 +0100 Date: Thu, 12 Jan 2006 10:58:08 +0100 From: Marcin Jessa To: Vitaliy Ovsyannikov Message-Id: <20060112105808.0ec94f40.lists@yazzy.org> In-Reply-To: <170970070.20060112144241@kr.ru> References: <170970070.20060112144241@kr.ru> Organization: YazzY.org X-Mailer: Sylpheed version 2.0.4 (GTK+ 2.8.9; i386-portbld-freebsd6.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Score: -2.0 (--) Cc: freebsd-net@freebsd.org Subject: Re: Automatic VLANS 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: Thu, 12 Jan 2006 09:58:16 -0000 On Thu, 12 Jan 2006 14:42:41 +0700 Vitaliy Ovsyannikov wrote: > Hello, freebsd-net. Hi Vitaly > Does Automatic VLANS works? > It is was described in > http://people.freebsd.org/~andre/FreeBSD-5.3-Networking.pdf > > # ifconfig em0.1 inet 10.90.90.200/24 > ifconfig: interface em0.1 does not exist > > # uname -r > 6.0-STABLE Run ifconfig vlan0 create ifconfig vlan0 destroy to create or remove vlan0 interface. To have vlan0 and i.e bridge0 created at boot edit /etc/rc.conf adding following: cloned_interfaces="bridge0 vlan0" Then add something like that to configure it at boot: ifconfig_em0="up" ifconfig_vlan0="inet 10.90.90.200 vlan 123 vlandev em0" /24 is the default netmask so you do not need to add netmask option to ifconfig. You can also rename your vlan0 interface so it will be more descriptive with ifconfig vlan0 name vlan_to_somewhere If you want it to be renamed at boot something like this should work: ifconfig_vlan0="name vlan_to_somewhere inet 10.90.90.200 vlan 123 vlandev em0" Cheers, Marcin Jessa.