From owner-freebsd-net@FreeBSD.ORG Wed Sep 26 14:57:49 2007 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26AA316A419 for ; Wed, 26 Sep 2007 14:57:49 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from mail1.cil.se (mail1.cil.se [217.197.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id C150F13C45D for ; Wed, 26 Sep 2007 14:57:48 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from [192.168.2.10] ([192.168.2.10]) by mail1.cil.se with Microsoft SMTPSVC(6.0.3790.1830); Wed, 26 Sep 2007 16:57:46 +0200 Message-ID: <46FA736A.7000206@ide.resurscentrum.se> Date: Wed, 26 Sep 2007 16:57:46 +0200 From: Jon Otterholm User-Agent: Thunderbird 2.0.0.5 (X11/20070723) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Sep 2007 14:57:46.0547 (UTC) FILETIME=[995BC830:01C8004D] Subject: if_em and if_vlan 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: Wed, 26 Sep 2007 14:57:49 -0000 Hi. I get "Device busy" when trying to change VLAN-id on a sub-if to em0: [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em0 ifconfig: SIOCSETVLAN: Device busy [root@host /home/user]# dmesg | grep em0 em0: port 0x4000-0x401f mem 0xee200000-0xee21ffff irq 16 at device 0.0 on pci9 [root@host /home/user]# pciconf -vl em0@pci9:0:0: class=0x020000 card=0x108c15d9 chip=0x108c8086 rev=0x03 hdr=0x00 vendor = 'Intel Corporation' device = 'PRO/1000 PM' class = network subclass = ethernet [root@host /home/user]# uname -a FreeBSD host 6.2-STABLE FreeBSD 6.2-STABLE #1: Tue Sep 25 22:29:05 CEST 2007 user@host:/usr/obj/usr/src/sys/host i386 It works if I create a new interface like: [root@host /home/user]# ifconfig vlan100 create and setting the vid and vlandev: [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em0 But when I try to change the setting: [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em1 ifconfig: SIOCSETVLAN: Device busy Even if I destroy the interface and create it again I get "Device busy": [root@host /home/user]# ifconfig vlan100 destroy [root@host /home/user]# ifconfig vlan100 create [root@host /home/user]# ifconfig vlan100 vlan 100 vlandev em1 ifconfig: SIOCSETVLAN: Device busy Motherboard is Supermicro PDSMi-LN4+ with four em-interfaces. How do I solve this? //Jon