Hey all,
I'm seeing a very intermittent issue (as on once every ~40 days or so) where my 10.3 router loses it's internet connectivity. It looks like something is causing the interface to go down and when it comes back up, I get an address in the 192.168.X.Y range, rather than my usual public IP.
I'm not sure why that's the case, but even more annoying than that is the only way I've found to fix it is to reboot. Here's what I've tried:
Why would rebooting get me a public IP, when none of the other commands got me back into a good state? What could rebooting do that
Why would
Any thoughts? I'm really hoping for two things: hints on how to diagnose why I'm losing my public IP, but also answers on what the best way to recover without rebooting the box.
I'm seeing a very intermittent issue (as on once every ~40 days or so) where my 10.3 router loses it's internet connectivity. It looks like something is causing the interface to go down and when it comes back up, I get an address in the 192.168.X.Y range, rather than my usual public IP.
Code:
Jul 12 00:16:10 imp kernel: igb0: link state changed to DOWN
Jul 12 00:16:24 imp kernel: igb0: link state changed to UP
Jul 12 00:16:24 imp devd: Executing '/etc/rc.d/dhclient quietstart igb0'
Jul 12 00:16:34 imp kernel: igb0: link state changed to DOWN
Jul 12 00:16:37 imp kernel: igb0: link state changed to UP
Jul 12 00:16:37 imp devd: Executing '/etc/rc.d/dhclient quietstart igb0'
Jul 12 00:16:52 imp dhclient: New IP Address (igb0): 192.168.100.20
Jul 12 00:16:52 imp dhclient: New Subnet Mask (igb0): 255.255.255.0
Jul 12 00:16:52 imp dhclient: New Broadcast Address (igb0): 192.168.100.255
Jul 12 00:16:52 imp dhclient: New Routers (igb0):
# ifconfig down igb0; ifconfig up igb0
- From memory, this resulted in the interface not even getting an address
# dhclient igb0
- It's been a few months since I tried this one, but I believe it failed to get an address
# service netif restart
- The nuclear option, but this completely locked me out of the machine. I expected sshd to drop my connection, but even after 30 minutes nothing came back up. I had to walk downstairs and physically log in to the machine.
# reboot
- Of course, this worked. As soon as the box came back up it got a public IP and I was back in business.
Why would rebooting get me a public IP, when none of the other commands got me back into a good state? What could rebooting do that
service netif restart
wouldn't?Why would
# service netif restart
permanently kill my network services? Here's the output of /var/log/messages at the time I issued the command:
Code:
Jul 12 07:33:34 imp kernel: ifa_del_loopback_route: deletion failed: 48
Jul 12 07:33:34 imp dhclient[722]: connection closed
Jul 12 07:33:34 imp dhclient[722]: exiting.