Jump to content

Unplugging and plugging NICs back in after router reboot


Recommended Posts

An odd problem has started on my Unraid server. Whenever I reboot my router, Unraid will not reconnect unless I unplug the network cable and plug it back in.

 

My server has 2 NICs, an onboard 1 Gbps NIC and a PCIe 2.5Gbps card I added. I use the 2.5 Gbps as primary for my Unraid operations and the onboard 1 Gbps is a passthrough to a gaming VM. I used to have it the other way but wanted the additional throughput for Unraid tasks. I believe the issue started when I made the 2.5G card eth0 and passed through the onboard NIC.

 

Is there some way I can resolve this so I don't have to unplug network cables every time the router is rebooted?

 

Onboard passed to VM: IOMMU group 13:[8086:15b8] 00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-V

Secondary NIC for Unraid: IOMMU group 22:[10ec:8125] 0a:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8125 2.5GbE Controller (rev 04)

 

Thank you!

nicknas2-diagnostics-20240625-1702.zip

Link to comment

Log into your router and see if the server's static IP address has a reservation set for it and its MAC address is correct.  (I would also suggest that you log onto your router after a reboot and see what is in the table of IP addresses and compare them to what you see after the unplug and replug cycle.)

 

Also, you really need IPv6 service?  If not, turn it off on the server.   (As I recall, this sometimes causes issues...)

 

Remember that this is probably a router issue.  (Otherwise, it would be a common issue on this forum.)  I can recall that I have had issues at times on short power cuts that took the router down that were bridged by UPS's for the computers where a reboot of the PC was required to restore the LAN connection.

Edited by Frank1940
Link to comment

After reboot the router doesn’t show Unraid at all, it’s like the cable is unplugged. The right static IP is reserved in the router with the right MAC.

 

ipv6 isn’t enabled in Unraid. I had tried it in the past but opted to disable it again because it was causing a hassle. Where are you seeing that it’s enabled?

 

thanks

Link to comment
1 hour ago, nickp85 said:

Where are you seeing that it’s enabled?

 

In your diagnostics file, in the /config folder, this is the contents of the network.cfg file:

# Generated settings:
IFNAME[0]="br0"
BRNAME[0]="br0"
BRSTP[0]="no"
BRFD[0]="0"
BRNICS[0]="eth0"
PROTOCOL[0]="ipv4"
USE_DHCP[0]="no"
IPADDR[0]="192.168.1.223"
NETMASK[0]="255.XXX.XXX.0"
GATEWAY[0]="192.168.1.1"
DNS_SERVER1="192.168.1.1"
USE_DHCP6[0]="yes"
DHCP6_KEEPRESOLV="yes"
MTU[0]="1500"
SYSNICS="1"

 

What happens if you    ping   192.168.1.223     from your PC?  (You would do this from a command prompt...) 

 

As I said in my previous post, things are sometimes wonky after a router reboot.   Back in the days when networking problems were a much bigger issue, the standard advice was to power down every networked device on the network, then power back up starting with the modem, then the router, then the switches, and finally the remaining devices.  You would wait five minutes between each layer and finally after the computers were powered up, wait thirty minutes minimum for everything to settled down. (This was back in the day when the SMB Local Master was involved.  Local master is seldom used today as it is only really required for SMBv1.) 

 

If the only thing you have to do is to unplug and replug your server, that is not such a bad solution.   Why do you have to reboot the  router?  That is the problem that I would be looking at. 

Link to comment

There is no ping reply for the Unraid IP. Also, both NICs have the issue. If I resolve the one with the main NIC Unraid uses I’m online but then if I go into my VM, the other one is offline too and I have to unplug and plug that one back in to get it reconnected. No other devices on my network, including those also wired, have problems reconnecting after a reboot.

 

I had rebooted the router because I changed a setting that required a reboot.

 

I’m not sure about that dhcpv6 setting since dhcp is off and ipv6 is off in the settings.

Link to comment
  • 2 weeks later...

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