Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 04 Dec 2014 06:56:21 +0100
From:      Martin Hanson <greencoppermine@yandex.com>
To:        Warren Block <wblock@wonkity.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: NICs devices switches "pshycial" place on each boot
Message-ID:  <1915491417672581@web4m.yandex.ru>
In-Reply-To: <alpine.BSF.2.11.1412032119080.86447@wonkity.com>
References:  <1511041417624247@web23g.yandex.ru> <alpine.BSF.2.11.1412031024340.32996@wonkity.com> <212351417642134@web20h.yandex.ru> <alpine.BSF.2.11.1412031601220.13301@wonkity.com> <2659291417665100@web17m.yandex.ru> <alpine.BSF.2.11.1412032119080.86447@wonkity.com>

next in thread | previous in thread | raw e-mail | index | archive | help
I am actually one step closer.

With the following I can get the device-name "axge0", but I don't know how to create
a usable NIC interface name for that.

attach 1000 {
    device-name "axge[0-9]+";
    match "vendor" "0x0b95";
    match "product" "0x1790";
    match "sernum" "0000249B0DE00C";
    action "logger DEVICE NAME IS: $device-name";
};

Dec  4 06:41:39 gateway1 devd: Executing 'logger DEVICE NAME IS: axge0'
Dec  4 06:41:39 gateway1 martin: DEVICE NAME IS: axge0

What action would I then take to create a usable device for ifconfig?

Doing this doesn't work:

  # ifconfig axge0 name lan1 inet 192.168.1.1 netmask 255.255.255.0
  ifconfig: interface axge0 does not exist

What can I do from here?

Kind regards.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1915491417672581>