From owner-freebsd-stable@FreeBSD.ORG Tue Jan 12 15:30:38 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC1C1106566B for ; Tue, 12 Jan 2010 15:30:38 +0000 (UTC) (envelope-from dam@ks306450.kimsufi.com) Received: from ks306450.kimsufi.com (unknown [IPv6:2001:41d0:2:613b::dead:beef]) by mx1.freebsd.org (Postfix) with ESMTP id 5C3F38FC13 for ; Tue, 12 Jan 2010 15:30:37 +0000 (UTC) Received: from ks306450.kimsufi.com (localhost [127.0.0.1]) by ks306450.kimsufi.com (8.14.3/8.14.3) with ESMTP id o0CFWddO071507 for ; Tue, 12 Jan 2010 16:32:39 +0100 (CET) (envelope-from dam@ks306450.kimsufi.com) Received: (from dam@localhost) by ks306450.kimsufi.com (8.14.3/8.14.3/Submit) id o0CFWYHf071506 for freebsd-stable@freebsd.org; Tue, 12 Jan 2010 16:32:34 +0100 (CET) (envelope-from dam) Date: Tue, 12 Jan 2010 16:32:34 +0100 From: FLEURIOT Damien To: freebsd-stable@freebsd.org Message-ID: <20100112153232.GA65181@ks306450.kimsufi.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Subject: Reordering network cards X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2010 15:30:38 -0000 Hello list, I've got an annoying issue with Proxmox 1.4 randomizing network card order, like this for example: model bridge MAC e1000 vmbr1 EA:5F:04:94:A4:21 e1000 vmbr9 9E:56:7A:17:A5:34 e1000 vmbr8 D2:4F:A2:C6:96:F4 Now this means I'll have the following mappings in FreeBSD 7.2: vmbr1 -> em0 vmbr9 -> em1 vmbr8 -> em2 When I'd like to have the following order: vmbr1 -> em0 vmbr9 -> em2 vmbr8 -> em1 I'm afraid there's no option for reordering the cards from proxmox so I'd like to be able to force the order myself, by identifying cards with their MAC address for example. I've found the following sysctl vars but they're read-only: # sysctl -a|egrep "dev\.em\.[0-9]\.%location" dev.em.0.%location: slot=3 function=0 handle=\_SB_.PCI0.S3__ dev.em.1.%location: slot=4 function=0 handle=\_SB_.PCI0.S4__ dev.em.2.%location: slot=5 function=0 handle=\_SB_.PCI0.S5__ Do you have any suggestion guys ? Please mind the -SPAM tag in my address when replying ;) Regards, -- Dam