Reputation: 483
I have a CentOS 7 VPS which I had multiple sites on its Apache, and these days I faced a strange problem, CentOS lost its interface many times a day! and I should restart the interface to recover this situation! I've take a snapshot from Web console interface of my VPS, any idea? thanks in advance
grep dhclient /var/log/messages
ferquently give me this error (also I have BOOTPROTO="dhcp"
in my config file) :
Apr 30 15:12:56 vultr dhclient[8962]: dhclient.c:2676: Failed to send 300 byte long packet over fallback interface.
Apr 30 15:13:15 vultr dhclient[8962]: DHCPREQUEST on eth0 to 169.254.169.254 port 67 (xid=0x5f5ca74d)
Apr 30 15:13:15 vultr dhclient[8962]: send_packet: Network is unreachable
Apr 30 15:13:15 vultr dhclient[8962]: send_packet: please consult README file regarding broadcast address.
Upvotes: 1
Views: 3491
Reputation: 494
(I work for the host in this case)
There was an issue with the DHCP server that was causing some instances to lose their IP address on DHCP lease renewal. Specifically, the DHCP server would intermittently respond with a NAK, which would cause the server to lose it's IP address. Oddly, CentOS 7 doesn't seem to handle this nicely (nice behavior would be trying to obtain a new lease, rather then breaking connectivity until the interface was restarted).
You should no longer see issues with this.
Upvotes: 3