From owner-freebsd-net@FreeBSD.ORG Thu Dec 4 03:51:44 2014 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id B0F477A8 for ; Thu, 4 Dec 2014 03:51:44 +0000 (UTC) Received: from forward4m.mail.yandex.net (forward4m.mail.yandex.net [IPv6:2a02:6b8:0:2519::3:13]) (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 631C7DE9 for ; Thu, 4 Dec 2014 03:51:44 +0000 (UTC) Received: from web17m.yandex.ru (web17m.yandex.ru [37.140.138.108]) by forward4m.mail.yandex.net (Yandex) with ESMTP id 2A7BC2321286; Thu, 4 Dec 2014 06:51:41 +0300 (MSK) Received: from 127.0.0.1 (localhost [127.0.0.1]) by web17m.yandex.ru (Yandex) with ESMTP id 7D6E937A175C; Thu, 4 Dec 2014 06:51:40 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.com; s=mail; t=1417665100; bh=x3y95iSwx5330TmkVJh5ILY+jRH738EINFRAK7qf57Y=; h=From:To:Cc:In-Reply-To:References:Subject:Date; b=ISgLYErrpG7RRA2ZOxATP3tx3TtjkeoTj+Q67p4T1EljMr+D6AqjaM/MLlaXjuygA uzuDbNk5KPZC/hkLyeeY8NP7StqgWugxSEwiLh25XuNJIl9knyggcXUQNe2/kIcCZl GztYHAU06zl5woH6P6soUB3SxpuEuaEK3GpbHYEw= Received: from 108.61.122.70.choopa.net (108.61.122.70.choopa.net [108.61.122.70]) by web17m.yandex.ru with HTTP; Thu, 04 Dec 2014 06:51:40 +0300 From: Martin Hanson To: Warren Block In-Reply-To: References: <1511041417624247@web23g.yandex.ru> <212351417642134@web20h.yandex.ru> Subject: Re: NICs devices switches "pshycial" place on each boot MIME-Version: 1.0 Message-Id: <2659291417665100@web17m.yandex.ru> X-Mailer: Yamail [ http://yandex.ru ] 5.0 Date: Thu, 04 Dec 2014 04:51:40 +0100 Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset=koi8-r Cc: "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 03:51:44 -0000 > It might need a delay before the device is ready. šRunning devd in the > foreground like that will show all the detected events. Indeed that helped. This is what I got with the output of messages. I don't know how to either give the device another unique name or somehow intercept what is happening so that I can set the device name. notify 1000 { match "system" "USB"; match "subsystem" "INTERFACE"; match "vendor" "0x0b95"; match "product" "0x1790"; match "sernum" "0000249B0DE00C"; match "type" "ATTACH"; action "logger I HAVE ATTACHED A DEVICE!"; }; Dec 4 04:47:00 gateway1 kernel: ugen3.2: at usbus3 Dec 4 04:47:00 gateway1 kernel: axge0: on usbus3 Dec 4 04:47:00 gateway1 devd: Executing 'logger FOO HAS ATTECHED A DEVICE!' Dec 4 04:47:00 gateway1 martin: I HAVE ATTACHED A DEVICE! Dec 4 04:47:00 gateway1 kernel: miibus1: on axge0 Dec 4 04:47:00 gateway1 kernel: rgephy0: PHY 3 on miibus1 Dec 4 04:47:00 gateway1 kernel: rgephy0: none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX, 100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow, 1000baseT-FDX-flow-master, auto, auto-flow Dec 4 04:47:00 gateway1 kernel: ue0: on axge0 Dec 4 04:47:00 gateway1 kernel: ue0: Ethernet address: 00:24:9b:0d:e0:0c Dec 4 04:47:00 gateway1 devd: Executing '/etc/pccard_ether ue0 start' Dec 4 04:47:00 gateway1 kernel: ue0: link state changed to DOWN