Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Moving unraid Eth0 to a new nic confusion

Featured Replies

First and foremost, I am sorry even to be asking this. Coming from a networking background, I feel dumb after spending a few hours on this project.
 

Backstory:
I upgraded my internal network with new 10G SFP Ethernet modules and Cat7 networking. The new setup is simple:
Ubiquity Dream Machine Pro to un-managed switch via SFP, un-managed switch to HP DL360 Gen9 via SFP. I then swapped from 100Mb Ethernet to the SFP port by plugging in the new SFP, hooked up an Ethernet to my router, and then swapped the 192.168.1.3 IP reservation from the old Ethernet to SFP. Rebooted, logged right in, no issues.
 

Once I verified the SFP module and port were working and assigned the 192.168.1.3 in DHCP, I rebooted and disabled the original internal 4x Ethernet ports via the bios, again,  logged right back in with no issues. After all this, I had my system running with Eth0, Eth4, and Eth5 (SFP ports). I shut Eth5down, leaving me with Eth0 and Eth4.

Issue:

Now this is where it gets weird. "ifconfig" shows no Eth0, and "ifconfig eth0." shows "eth0: error fetching interface information: Device not found." I have to manually assign the 192.168.1.3 IP to Eth0 for it not to pull a 169.x.x.x address. I believe I have everything set up correct; attached are pictures of the Network Configuration page.

Any help would be appreciated regarding what I may be doing wrong or if I am way over thinking this lol 🙃🙃🙃

Eth0.png

Eth4.png

Eth5-InterfaceRules-RoutingTable.png

Solved by JorgeB

  • Community Expert
  • Solution

There's no eth0 on interface rules, delete/rename /config/network-rules.cfg and reboot.

  • Author

Hey JorgeB! Thanks for the tip, let me give that a shot and see what happens. Will rename for now, and if it works I will delete the old copy. :)

  • Author

@JorgeB You are a wizard; that seems to have done it! Everything appears to be working flawlessly now. I have to ask, what do you think went wrong here? Did I not prep this correctly, or did something strange happen on one of the reboots to cause it to wig out?

All.png

  • Community Expert
43 minutes ago, Raiever said:

what do you think went wrong here?

Possibly the NIC detection script got confused, probably nothing you did, glad it's working now.

  • 5 months later...

very similar thing happened to me.

added a 10gig card, it took over as ETH0, pushing my onboard to ETH1 
the server and I got confused.
I was unable to "port down" either card,  so i took out the 10gig card.
was left with no ETH0

this thread sounds like the fix. ill do it later tonight.

  • Author
4 minutes ago, TRusselo said:

very similar thing happened to me.

added a 10gig card, it took over as ETH0, pushing my onboard to ETH1 
the server and I got confused.
I was unable to "port down" either card,  so i took out the 10gig card.
was left with no ETH0

this thread sounds like the fix. ill do it later tonight.

Yep, doing what Jorge said had me back up and running in about 8 minutes. Backup your flashdrive JUST in case of issues.

Navigate to main tab -> Flash -> Export set to "Yes" | Security set to "Public"
Open Flash drive in file explorer like a Sharedrive
Navigate to /config/ folder, and delete network-rules.cfg
Shut down server, install new card, turn server back on
Navigate to main tab -> Flash -> Export set to "No" | Security set to "Private"
Configure your new network card as you did the first time!

1 hour ago, TRusselo said:

added a 10gig card, it took over as ETH0, pushing my onboard to ETH1 
the server and I got confused.
I was unable to "port down" either card,  so i took out the 10gig card.

 

BTW if the automatic detection picks the wrong card as eth0, you can navigate to Settings -> Network Settings -> Interface Rules and adjust things until the right nic is eth0

  • 3 weeks later...
On 1/30/2023 at 9:03 AM, ljm42 said:

 

BTW if the automatic detection picks the wrong card as eth0, you can navigate to Settings -> Network Settings -> Interface Rules and adjust things until the right nic is eth0

Are you sure?
How can i  set Eth0 in this screenshot?
image.thumb.png.7154fa834deebb829332bea61de28a93.png

  • Author
1 minute ago, TRusselo said:

Are you sure?
How can i  set Eth0 in this screenshot?
image.thumb.png.7154fa834deebb829332bea61de28a93.png


@ljm42 Isn't incorrect that this is the *typical* way that this functions. However for me, my OS refused to pick up the new NIC even after reboots, and you can see in my original post that there was no MAC address tied to eth0, after deleting the rule file, and rebooting, it was recreated, and the MAC address was available for signing.

4 hours ago, TRusselo said:

Are you sure?
How can i  set Eth0 in this screenshot?

 

Sorry, I was referring to the first part of your comment which was that eth0 and eth1 were swapped. That could have been fixed on Settings -> Network Settings -> Interface Rules rather than physically removing the nic.

 

Once the nic has been removed and eth0 has gone missing, then deleting the file and rebooting is the best way forward.

 

  • 6 months later...

Hello, i added a 10G nic on my server and it took over ETH0 and its giving me headaches becasue the 10G NIC is never going to have internet access.

The "Interface rules" thing would be basically the solution, but this section does not apeear in my Network Settings...

Is it hidden by default?

  • Community Expert
4 hours ago, SHALcL said:

Is it hidden by default?

No, try deleting /boot/config/network.cfg and network-rules.cfg (if it exists) and reboot.

2 hours ago, JorgeB said:

No, try deleting /boot/config/network.cfg and network-rules.cfg (if it exists) and reboot.

 

Thanks.

The file "network-rules.cfg" does not exist, i deleted "network.cfg" and all the network settings returned to default, but the "interface rules" still not there.

Is there anything else to try?

I'm on version 6.12.3

  • Community Expert

You can post the diags to see if both NICs are being initialed correctly.

Both NICs are working.

I currently have a 2.5G and a 10G NICs, the 2.5G is connected to a 1G switch that is connected to the router and has internet access. The 10G NIC is connected directly to a 10G NIC on another computer.

From that computer I can access the server without issues and at full 10G speeds, and from the home network I can also access the server at full 1G speeds.

The issue is that Unraid assighns ETH0 to the 10G nic and expects internet from there.

Diags attached.
 

server1a-diagnostics-20230830-1323.zip

Edited by SHALcL

  • Community Expert
14 minutes ago, SHALcL said:

Both NICs are working.

Yep, looks like one of those hardware combos where network-rules.cfg does not get created, unfortunately there's no easy solution I know of, and without that file you cannot choose with NIC is eth0.

Goddamit

Thanks or looking in to it.

As you can see, tried creating an empty "network-rules.cfg" to see if it would populate it after reboot, but no luck.

Is there somewhere I can get a "network-rules.cfg" sample to se if i can manually create it and see if it works?

Thanks, with my luck it is most probably not going to work, but why not try.

Just now, JorgeB said:

Not sure that is simple or even possible, but attached an example.network-rules.cfg

 

 

FYI the file has your MAC addresses, in case you want to remove them.

Adding the file makes the section appear in the UI but it has no real effect

  • Community Expert

Do you mean the network rules section?

Yes, if i create the file, the  network rules section appears upon page refresh, but it has no effect, as after changing which NIC is which it requires a reboot, and the "network-rules.cfg" file dissapears after rebooting.

  • Community Expert

I guess since the file is not automatically created it doesn't work even if created manually, it should be recreated after every boot.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.