I am testing a server configuration using CentOS 6.4. I do a minimal install and in the process of installing choose eth0 to be enabled at boot and enter a static IP address and gateway.
When I boot the system up I can ping the router at 192.168.1.1. I can not ping google.com nor yahoo.com. I can not ping any external IP addresses outside of my local network. I can SSH from to this system from a system on the same local network (subnet)
If I run:
route add -net 0.0.0.0/0 gw 192.168.1.1
everything works great. Until I restart that is. Then the same thing happens. I must run that command first.
I have tried various forms of editing
/etc/sysconfig/network-scripts/ifcfg-eth0 as well as
I have tried adding a GATEWAY=192.168.1.1 line to /etc/sysconfig/network
I've tried playing with NetworkManger and installing through yum, and that seemed to make things worse. All without luck.
So at this point I have just done a complete reinstall from the DVD ISO to confirm I didn't imagine it all with all of the configuration changes I've made, and I still have the same issue.
Can someone please tell me what the best way of handling this is?
My info is:
IP address of machine: 192.168.1.110 Subnet: 255.255.255.0 Gateway IP: 192.168.1.1 # route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 169.254.0.0 0.0.0.0 255.255.0.0 U 1002 0 0 eth0
DEVICE="eth0" BOOTPROTO=none NM_CONTROLLED="yes" ONBOOT=yes TYPE="Ethernet" UUID="0e8f1aa3-a071-4de1-90d8-561204faf2f3" DEFROUTE=yes IPV4_FAILURE_FATAL=yes IPV6INIT=no NAME="System eth0" HWADDR=00:22:4D:A0:0A:CF IPADDR=192.168.1.110 PREFIX=24 DNS1=18.104.22.168
Before the install process I ran the media check on the DVD I burned it onto. Before that I verified the MD5sum of the ISO file as well.