[CentOS] default gw route has gone?

Thu Jan 16 07:58:13 UTC 2014
Alexander Dalloz <ad+lists at uni-x.org>

Am 15.01.2014 23:28, schrieb Rob Kampen:
> Weird behaviour.
> A couple of days ago I installed another DSL router.
> During the process I have somehow caused the default gw route to
> disappear - on system start up the interface comes up fine, I can see
> and connect to the local subnet but not to the internet.

[ ... ]

> Google shows me a number of responses that all tell me to add a line to
> /etc/sysconfig/network
> which I already had.
> 
> [rkampen at timsws network-scripts]$ cat /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=timsws
> GATEWAY=192.168.1.1

That's correct.

> and
> [rkampen at timsws network-scripts]$ cat
> /etc/sysconfig/network-scripts/ifcfg-eth0
> DEVICE="eth0"
> NM_CONTROLLED="yes"
> ONBOOT=yes
> TYPE=Ethernet
> BOOTPROTO=dhcp
> DEFROUTE=no

  ^ why?

See /usr/share/doc/initscripts-9.03.40/sysconfig.txt

> IPV4_FAILURE_FATAL=yes
> IPV6INIT=no
> NAME="System eth0"
> UUID=5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03
> HWADDR=00:24:8C:80:0B:15
> PEERDNS=yes
> PEERROUTES=yes
> LAST_CONNECT=1389583930
> 
> So what am I missing?
> BTW - all other devices are working just fine - just my main CentOS 6.5
> WS fails.
> TIA

Alexander