From owner-freebsd-net@FreeBSD.ORG Wed Dec 3 23:03:15 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 8697549B for ; Wed, 3 Dec 2014 23:03:15 +0000 (UTC) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E310B7D for ; Wed, 3 Dec 2014 23:03:14 +0000 (UTC) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.14.9/8.14.9) with ESMTP id sB3N3CEx017743 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 3 Dec 2014 16:03:12 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.14.9/8.14.9/Submit) with ESMTP id sB3N3CGP017667; Wed, 3 Dec 2014 16:03:12 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Wed, 3 Dec 2014 16:03:12 -0700 (MST) From: Warren Block To: Martin Hanson Subject: Re: NICs devices switches "pshycial" place on each boot In-Reply-To: <212351417642134@web20h.yandex.ru> Message-ID: References: <1511041417624247@web23g.yandex.ru> <212351417642134@web20h.yandex.ru> User-Agent: Alpine 2.11 (BSF 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (wonkity.com [127.0.0.1]); Wed, 03 Dec 2014 16:03:12 -0700 (MST) 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: Wed, 03 Dec 2014 23:03:15 -0000 On Wed, 3 Dec 2014, Martin Hanson wrote: > I have tried setting this up in /usr/local/etc/devd/devd.conf and used "devd -d" to re-read rules. > > attach 100 { > device-name "ue0"; > match "vendor" "0x0b95"; > match "product" "0x1790"; > match "sernum" "0000249b0de00c"; > action "ifconfig $device-name inet 192.168.1.1 netmask 255.255.255.0"; > } > > I have also tried with a notify and changing the value to 0, but the device doesn't get the IP set when plugged in. It might need a delay before the device is ready. Running devd in the foreground like that will show all the detected events.