I have been using a Debian box as my gateway at my house. It has always worked great, but I decided to switch to CentOS because I am more familiar with it. However, I have been running into a very weird issue. Every once in awhile I will lose connection to the internet on eth0 (my WAN interface). The weird part is 'ifconfig' shows that I still have my public IP, 'route -n' shows all the correct routes, and 'ps ax | grep dhcpclient' shows:
/sbin/dhclient -1 -q -cf /etc/dhcp/dhclient-eth0.conf -lf /var/lib/dhclient/dhclient-eth0.leases -pf /var/run/dhclient-eth0.pid eth0
I have tried restarting networking, but I am still unable to route traffic across the internet. The only thing that seems to fix it is if I reboot the machine. It's almost as if when the modem goes offline, the box just never reconnects (even though it still shows that I have my public IP). Also, here is my /etc/sysconfig/network-scripts/ifcfg-eth0 file:
ETHTOOL_OPTS="autoneg off speed 100 duplex full"
Hope someone can help me find the root cause of this strange issue.
Thanks for your time.