From owner-freebsd-net@FreeBSD.ORG Thu Dec 4 22:21:21 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 36719B1B for ; Thu, 4 Dec 2014 22:21:21 +0000 (UTC) Received: from forward3h.mail.yandex.net (forward3h.mail.yandex.net [IPv6:2a02:6b8:0:f05::3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "forwards.mail.yandex.net", Issuer "Certum Level IV CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D6A90E90 for ; Thu, 4 Dec 2014 22:21:20 +0000 (UTC) Received: from web18h.yandex.ru (web18h.yandex.ru [84.201.186.47]) by forward3h.mail.yandex.net (Yandex) with ESMTP id 77DB11361EF7; Fri, 5 Dec 2014 01:21:16 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web18h.yandex.ru (Yandex) with ESMTP id BD8624F603C7; Fri, 5 Dec 2014 01:21:15 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1417731676; bh=fffh3c5x5a+l9mAFEF5LypgunV00TOnVIzLnvOex8+4=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=VEBgU+VgexatYZW9H9jsmMOD8nmQQQPwf4RVjo1rVP9Fgj5ItGA0x5DC8H+CVDXRx ZYiLvuxbjCKt/ISfxKyaD2VOcNqe/VgkMehRWzFJuM2iF/Fv/FK6eaw/EQdSgTihis HeuEZIwkAmQkcXkMeIbXYtp52mw3CKnHVIlm5F3k= Received: from 108.61.122.225.choopa.net (108.61.122.225.choopa.net [108.61.122.225]) by web18h.yandex.ru with HTTP; Fri, 05 Dec 2014 01:21:15 +0300 From: Martin Hanson To: Ian Smith In-Reply-To: <20141204180007.Q85722@sola.nimnet.asn.au> References: <1511041417624247@web23g.yandex.ru> <212351417642134@web20h.yandex.ru> <2659291417665100@web17m.yandex.ru> <2704971417669266@web25m.yandex.ru> <20141204180007.Q85722@sola.nimnet.asn.au> Subject: Re: NICs devices switches "pshycial" place on each boot (SOLVED) MIME-Version: 1.0 Message-Id: <151421417731675@web18h.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 04 Dec 2014 23:21:15 +0100 Content-Transfer-Encoding: 7bit Content-Type: text/plain Cc: Warren Block , "freebsd-net@freebsd.org" X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.18-1 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, 04 Dec 2014 22:21:21 -0000 I managed to get this working. It is a dirty hack and I REALLY wish FreeBSD would make documentation as high a priority as the guys at OpenBSD. It is difficult to locate correct and updated documentation, especially about devd. Yes, the man page has information about devd, and devd.conf even come with examples, but those examples are too sparsome to be of any real use when things get just a little bit complicated. It is extremely frustration to spend hour of hours of wasted time getting something to work, not because it doesn't work, but simply because you're "throwing stones in the dark" in the hopes of hitting the right target - because the correct and comprehensive documentation is lacking. A quality product HAS to have correct, updated and comprehensive documentation. This is one point that really makes the OpenBSD guys stand out deserving laud applause. Now, the driver on OpenBSD didn't work, so I had to use FreeBSD because that driver works, otherwise I would never had ventured into this incredible time consuming task. Warren Block, thank you a billion times for helping me with correct and relevant information! This is what I did to make it work. Like I said, it is a hack, but hey it works. attach 100 { device-name "axge[0-9]+"; match "vendor" "0x0b95"; match "product" "0x1790"; match "sernum" "0000249B0DE00C"; # We need to wait a little for the interface to get up. action "sleep 3"; # We don't know what number the interface has been assigned, but we know it is from axgeX, # so we get the X, use it in "ueX" and then rename the interface which is then bound to the # serialnumber, so the correct card will always get the right interface, ie. our own, not ueX. action "ifconfig ue`echo $device-name | tr -dc '[0-9]'` name olan"; action "ifconfig olan inet 192.168.1.1 netmask 255.255.255.0"; }; I hope someone else might find this useful or perhaps even provide a cleaner approach. Kind regards.