1
Hardware and Performance / Static USB ethernet adapter assignment
« on: May 24, 2020, 05:21:57 pm »
Hello Opnsense Community,
I am new to opensense and started by building a firewall solution for my home based on a shuttle PC.
With my little linux experience (but unfortunately no knowledge about bsd) I got the opnsense running very well.
But you might know, there is always some optimization possible and therefore I decided to separate my guest wifi from the rest of my lan. And also I added aother dmz-like network for my wireless router as secondary gateway.
But to make it short, I have the setup running with two additional usb 3.0 ethernet adapters from same manufacturer. I know, a static buildin ethernet port would be the best solution but its just for private and I found two adapters working well and with great speed, so that part is working as expected.
Now to my problem:
The two usb ethernet adapters are mixed on bootup randomly, so I got ue0 and ue1 on the other adapter with nearly every boot.
I already tried to add the delayed boot plugin, but thats not making a difference to the behavior beside it delays boottime
So maybe (and I'd be really happy if at least anyone would try) you can help me to get a static assignment of my two usb ethernet adapters.
I don't really need a script making this dynamically, just the two devices.
Is there any way to add the MAC address of the adapters to a file or maybe read a kind of hardware id to assign it static to ue0 and ue1?
I'm not afraid of hacking something inside files or shell, if neccessary
Due to the fact that I am using exactly the same adapters, would it make any difference to use another manufacturer for one of the adapters? As far as I've read, in the end it's the chipset (in my case a realtek) that makes the game and not the manufacturer. But if it makes any differences, I am of course willing to buy one.
If you need any further information or command output, don't hesitate to ask.
I am running the latest opnsense version (OPNsense 20.1.7-amd64)
Thanks very very much for your assistance.
I am new to opensense and started by building a firewall solution for my home based on a shuttle PC.
With my little linux experience (but unfortunately no knowledge about bsd) I got the opnsense running very well.
But you might know, there is always some optimization possible and therefore I decided to separate my guest wifi from the rest of my lan. And also I added aother dmz-like network for my wireless router as secondary gateway.
But to make it short, I have the setup running with two additional usb 3.0 ethernet adapters from same manufacturer. I know, a static buildin ethernet port would be the best solution but its just for private and I found two adapters working well and with great speed, so that part is working as expected.
Now to my problem:
The two usb ethernet adapters are mixed on bootup randomly, so I got ue0 and ue1 on the other adapter with nearly every boot.
I already tried to add the delayed boot plugin, but thats not making a difference to the behavior beside it delays boottime
So maybe (and I'd be really happy if at least anyone would try) you can help me to get a static assignment of my two usb ethernet adapters.
I don't really need a script making this dynamically, just the two devices.
Is there any way to add the MAC address of the adapters to a file or maybe read a kind of hardware id to assign it static to ue0 and ue1?
I'm not afraid of hacking something inside files or shell, if neccessary
Due to the fact that I am using exactly the same adapters, would it make any difference to use another manufacturer for one of the adapters? As far as I've read, in the end it's the chipset (in my case a realtek) that makes the game and not the manufacturer. But if it makes any differences, I am of course willing to buy one.
If you need any further information or command output, don't hesitate to ask.
I am running the latest opnsense version (OPNsense 20.1.7-amd64)
Thanks very very much for your assistance.