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
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@kampensonline.comwrote:
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@centos.org http://lists.centos.org/mailman/listinfo/centos
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
You should remove line 'GATEWAY..' as DHCP usually gives it. Try also upgrading dsl router to latest firmware.
-- Eero
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@timsws network-scripts]$ cat /etc/sysconfig/network NETWORKING=yes HOSTNAME=timsws GATEWAY=192.168.1.1
That's correct.
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
^ 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
On 01/16/2014 11:28 AM, Rob Kampen 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@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?
Thanks to those that responded. Turns out that having defroute=no is the problem - really helps to actually read what is in the ifcfg-eth0 file.
On a side note - the various ADSL broadband routers supplied by the NZ telcos all seem to have missing or broken bits - the vodafone one doesn't open the firewall properly for incoming http - the telecom device allows one to specify a different IP address for the router but not the gw address - thus it only works if you use their default IP/gw address. So many hours wasted.
BTW - all other devices are working just fine - just my main CentOS 6.5 WS fails. TIA
CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
It will probably be the same elsewhere, because they are CHEAP. I've used a few NZ Telco supplied routers over the years and a couple of cheap bought ones. All had some issue or the other. Nowadays I put up with or workaround any issues.
Cheers,
Cliff
On Thu, Jan 16, 2014 at 9:00 PM, Rob Kampen rkampen@kampensonline.comwrote:
On a side note - the various ADSL broadband routers supplied by the NZ telcos all seem to have missing or broken bits - the vodafone one doesn't open the firewall properly for incoming http - the telecom device allows one to specify a different IP address for the router but not the gw address
- thus it only works if you use their default IP/gw address. So many hours
wasted.