NICs devices switches "pshycial" place on each boot
Warren Block
wblock at wonkity.com
Thu Dec 4 04:27:29 UTC 2014
On Thu, 4 Dec 2014, Martin Hanson wrote:
>> 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!";
> };
I would use three of these sections, one with the serial number of each
interface. So:
action "ifconfig $device-name name wan inet ..."
action "ifconfig $device-name name dmz inet ..."
action "ifconfig $device-name name lan inet ..."
Then the interface names can be easily used in firewall settings.
More information about the freebsd-net
mailing list