From owner-freebsd-net@FreeBSD.ORG Sun Apr 23 02:20:23 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 4365B16A404; Sun, 23 Apr 2006 02:20:23 +0000 (UTC) (envelope-from richardtector@thekeelecentre.com) Received: from mx0.thekeelecentre.com (mx0.thekeelecentre.com [217.206.238.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id AFDF443D45; Sun, 23 Apr 2006 02:20:22 +0000 (GMT) (envelope-from richardtector@thekeelecentre.com) Received: from localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) by mx0.thekeelecentre.com (Postfix) with ESMTP id BC14E4090; Sun, 23 Apr 2006 03:20:16 +0100 (BST) X-Virus-Scanned: by amavisd-new at mx0.thekeelecentre.com Received: from mx0.thekeelecentre.com ([217.206.238.167]) by localhost (mailfil.mx0.thekeelecentre.com [217.206.238.165]) (amavisd-new, port 10024) with ESMTP id c4FrtGuefK0v; Sun, 23 Apr 2006 03:20:05 +0100 (BST) Received: from webmail.thekeelecentre.com (webmail.thekeelecentre.com [217.206.238.169]) by mx0.thekeelecentre.com (Postfix) with ESMTP id BC97840C8; Sun, 23 Apr 2006 03:20:02 +0100 (BST) Received: from 217.206.238.131 ([217.206.238.131]) by webmail.thekeelecentre.com (Horde MIME library) with HTTP for ; Sun, 23 Apr 2006 03:20:02 +0100 Message-ID: <20060423032002.7yty36ga8so0w8o0@webmail.thekeelecentre.com> Date: Sun, 23 Apr 2006 03:20:02 +0100 From: Richard Tector To: Brooks Davis References: <170970070.20060112144241@kr.ru> <20060112105808.0ec94f40.lists@yazzy.org> <20060112101616.GG2332@heff.fud.org.nz> <20060112102309.25f2e33a.lists@yazzy.org> <20060112103126.GH2332@heff.fud.org.nz> <20060112192122.GA6660@odin.ac.hmc.edu> In-Reply-To: <20060112192122.GA6660@odin.ac.hmc.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.0.3) / FreeBSD-5.4 Cc: Marcin, freebsd-net@freebsd.org, Jessa , Andrew Thompson 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: Sun, 23 Apr 2006 02:20:23 -0000 Quoting Andrew Thompson : > On Thu, Jan 12, 2006 at 10:58:08AM +0100, Marcin Jessa wrote: >> On Thu, 12 Jan 2006 14:42:41 +0700 >> Vitaliy Ovsyannikov wrote: >> > 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 > While what you have posted is correct, the automatic vlans the original > poster referred to do exist. 'ifconfig em0.1 create' will create a vlan > and also set the parent to em0 and tag as 1. > > Andrew Is it possible to use this method through rc or must I stick with creating vlan1, vlan2, vlan3, etc and setting the vlanid and vlandev since my attmpts have yielded no success. Eg. rc.conf: ifconfig_em0="up vlanhwtag vlanmtu" ifconfig_em0.100="inet 10.1.2.3/24" goliath# /etc/rc.d/netif start /etc/rc.conf: ifconfig_em0.100=inet 10.1.2.3/24: not found lo0: flags=8049 mtu 16384 .... and the interface is never created, with or without: cloned_interfaces="em0.100" Any suggestions? Regards, Richard Tector