August 5, 20223 yr 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 🙃🙃🙃
August 5, 20223 yr Community Expert Solution There's no eth0 on interface rules, delete/rename /config/network-rules.cfg and reboot.
August 5, 20223 yr 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.
August 5, 20223 yr 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?
August 5, 20223 yr 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.
January 30, 20233 yr 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.
January 30, 20233 yr 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!
January 30, 20233 yr 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
February 16, 20233 yr 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?
February 16, 20233 yr Author 1 minute ago, TRusselo said: Are you sure? How can i set Eth0 in this screenshot? @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.
February 16, 20233 yr 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.
August 30, 20232 yr 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?
August 30, 20232 yr 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.
August 30, 20232 yr 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
August 30, 20232 yr Community Expert You can post the diags to see if both NICs are being initialed correctly.
August 30, 20232 yr 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 August 30, 20232 yr by SHALcL
August 30, 20232 yr 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.
August 30, 20232 yr 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?
August 30, 20232 yr Community Expert Not sure that is simple or even possible, but attached an example.network-rules.cfg
August 30, 20232 yr 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.
August 30, 20232 yr 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.
August 30, 20232 yr 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.