[CentOS] default gw route has gone?

Wed Jan 15 22:39:39 UTC 2014
Chris Stone <axisml at gmail.com>

Check your DHCP server's setup - you should be getting your IP, netmask,
gateway and DNS servers from the DHCP server.


Chris



On Wed, Jan 15, 2014 at 3:28 PM, Rob Kampen <rkampen at kampensonline.com>wrote:

> 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.
>
> [rkampen at timsws network-scripts]$ route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     *               255.255.255.0   U 0      0        0 eth0
> link-local      *               255.255.0.0     U 1002   0        0 eth0
>
> is what I get at startup.
> I need to add
>
> sudo route add default gw 192.168.1.1
>
> to get things working properly.
> [rkampen at timsws network-scripts]$ route
> Kernel IP routing table
> Destination     Gateway         Genmask         Flags Metric Ref    Use
> Iface
> 192.168.1.0     *               255.255.255.0   U 0      0        0 eth0
> link-local      *               255.255.0.0     U 1002   0        0 eth0
> default         192.168.1.1     0.0.0.0         UG 0      0        0 eth0
>
> 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
>
> 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
> 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
>
> _______________________________________________
> CentOS mailing list
> CentOS at centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
>


-- 
Chris Stone
AxisInternet, Inc.
www.axint.net