I am not sure if this is a user error or a problem in CENTOS 6. Here is the issue: When I have the default gateway specified in the /etc/sysconfig/network file and not in the /etc/sysconfig/network-scripts/ifcfg-eth0 there is not default gateway generated when I examine the routing table; I have to manually add the default route. From what I read the default gateway should be created and I do not need a /etc/sysconfig/network-scripts/route-eth0 file. If I have the GATEWAY tag in the /etc/sysconfig/network-scripts/ifcfg-eth0 then one gets generated. I do not understand what is going on.
Any insight would be helpful
Here are what the files look like.
/etc/sysconfig/network
Code: Select all
NETWORKING=yes
HOSTNAME=<hiding my domain>
GATEWAY=192.168.1.254
GATEWAYDEV=eth0
Code: Select all
DEVICE=eth0
HWADDR=<hiding mac address>
NM_CONTROLLED=yes
ONBOOT=yes
IPADDR=192.168.1.1
BOOTPROTO=none
NETMASK=255.255.0.0
TYPE=Ethernet
#GATEWAY=192.168.1.254
DNS1=192.168.1.1
IPV6INIT=no
USERCTL=no