Jump to content

Disable USB network adapter on boot?


jzhvymetal

Recommended Posts

Posted

I use USB network adapters for Docker and VMs. I found out today that if I leave one connected without an Ethernet cable, Unraid will switch and make it the main network adapter. It took a good day to figure out why Unraid would have status lights on the main adapter but would not connect to the main IP address. Is there any way to block all USB adapters from being used for Unraid at boot?

Posted (edited)

I do not see in the setting a way to set the rules that will force a Adapter/Mac to use eth0.  Below is my network settings with one USB adapter connected after boot.  If I boot with USB network adapter connected but no cable it will not ping 192.168.10.175 which is the MB ethernet adapter always connected.

 

image.thumb.png.388f9f4ff76f0f9634837e0b0aaaaeb9.png

Edited by jzhvymetal
Posted

It is listing the MAC's....I just block out the MAC addresses. The problem is that if I boot with the USB Ethernet adapter with cable connected to main LAN, it will ping 192.168.10.175, but the web interface will no longer work, and SSH will be unavailable. Additionally, the main Ethernet adapter will not receive an IP address from my DHCP server. This locks me out because the graphic adapter is dedicated to a Windows VM, so once fully booted, it will not be used for the console. The only solution is to remove all USB Ethernet adapters and reboot. The USB adapters are connected via a USB hub that is normally passed to the Windows VM when fully booted. The USB adapters are not always connected. They are used for IT work on other devices using a different LAN's.

Posted

Could it be that it does not show when not booted with 2 nics?   I can not get access when usb nic are connect as described above.  I can only add the usb nic after it boots.   Is not the interface rules only created when it detect more than one nic at boot?  It there way to force the interface rules always when there is even one nic?

Posted
1 hour ago, jzhvymetal said:

Could it be that it does not show when not booted with 2 nics?

It's possible, but I don't know how to fix the issue without being able to select which NIC is eth0 on the Interface Rules section.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...