From owner-freebsd-net@FreeBSD.ORG Thu Jan 12 10:31:17 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 7585116A41F for ; Thu, 12 Jan 2006 10:31:17 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from dbmail-mx3.orcon.co.nz (loadbalancer1.orcon.net.nz [219.88.242.3]) by mx1.FreeBSD.org (Postfix) with ESMTP id DCEDF43D68 for ; Thu, 12 Jan 2006 10:31:16 +0000 (GMT) (envelope-from thompsa@freebsd.org) Received: from heff.fud.org.nz (60-234-149-201.bitstream.orcon.net.nz [60.234.149.201]) by dbmail-mx3.orcon.co.nz (8.13.2/8.13.2/Debian-1) with ESMTP id k0CAVFiM027327; Thu, 12 Jan 2006 23:31:15 +1300 Received: by heff.fud.org.nz (Postfix, from userid 1001) id 9FFDB2843B; Thu, 12 Jan 2006 23:31:26 +1300 (NZDT) Date: Thu, 12 Jan 2006 23:31:26 +1300 From: Andrew Thompson To: Marcin Jessa Message-ID: <20060112103126.GH2332@heff.fud.org.nz> References: <170970070.20060112144241@kr.ru> <20060112105808.0ec94f40.lists@yazzy.org> <20060112101616.GG2332@heff.fud.org.nz> <20060112102309.25f2e33a.lists@yazzy.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060112102309.25f2e33a.lists@yazzy.org> User-Agent: Mutt/1.5.11 X-Virus-Scanned: ClamAV version 0.87.1, clamav-milter version 0.87 on dbmail-mx3.orcon.co.nz X-Virus-Status: Clean 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 10:31:17 -0000 On Thu, Jan 12, 2006 at 10:23:09AM +0000, Marcin Jessa wrote: > On Thu, 12 Jan 2006 23:16:16 +1300 > > > > Run > > > ifconfig vlan0 create > > > ifconfig vlan0 destroy > > > to create or remove vlan0 interface. > > > > > > 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" > > > > While what you have posted is correct, > > Not quite, seem like the name part is not working as expected. > I just tested it on 6.0 and the part coming after name vlan_to_somewhere is not being executed > although the same thing works with ath: > ifconfig_ath0="name wlan0 inet 192.168.13.1 netmask 255.255.255.0 ssid YazzY mode 11g channel 10 mediaopt hostap up" This will be because pseudo interfaces are not reported to devd on cloning so rc.d/netif wont be run. physical interfaces work fine as you found with ath :) Andrew