default gw route has gone?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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@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@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@timsws network-scripts]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=timsws
GATEWAY=192.168.1.1

and
[rkampen@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@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux