I'm running Ubuntu 18.10 on a VPS.
Ever since upgrading (I'm pretty sure) from 16.04, my secondary IP address just stops receiving traffic after it's been up for a few hours.
I'll have two pings running, to my primary IP and my secondary IP, and the secondary one will just spontaneously go down after about 3 to 4 hours.
When this happens, its interface, eth0
, will still show as <UP>
in ifconfig -a
. An mtr
will make it all the way to its gateway.
A reboot brings the IP back up and reachable. Nothing else. Not ifdown eth0 --force && ifup eth0
, not service networking restart
.
Relevant interfaces:
$ ifconfig -a
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 149.210.175.202 netmask 255.255.255.0 broadcast 149.210.175.255
ether 52:54:00:35:97:95 txqueuelen 1000 (Ethernet)
RX packets 703 bytes 65063 (65.0 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 146 bytes 19511 (19.5 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Not sure why the second IP doesn't show in ifconfig -a
, as it does come up in ip a
:
$ ip a
...
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 52:54:00:35:97:95 brd ff:ff:ff:ff:ff:ff
inet 149.210.175.202/24 brd 149.210.175.255 scope global eth0
valid_lft forever preferred_lft forever
inet 149.210.176.154/24 brd 149.210.176.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 2a01:7c8:aab3:44f:5054:ff:fe35:9795/64 scope global dynamic mngtmpaddr
valid_lft 2591978sec preferred_lft 604778sec
inet6 fe80::5054:ff:fe35:9795/64 scope link
valid_lft forever preferred_lft forever
I'm not using netplan.io because some blog posted about it being buggy, which made me take it for the cause. However, with netplan.io, the exact same problem exists. I've had ufw
disabled for a while, didn't matter.
The hosting company has been kind enough to help me troubleshoot but to no avail. They have even migrated the VPS to another hypervisor, which made no difference. As a last resort, I have upgraded the kernel all the way to 5.1.8-050108-generic
.
What can I do to find out more about what might be causing the intermittent outages?