Red Hat Bugzilla – Bug 8368
Unable to configure a gateway outside from local ip subnet.
Last modified: 2014-03-16 22:12:00 EDT
here's the network config:
IP adress: 192.168.1.11 (netmask/24)
default GW : 192.168.2.1
so i configured another local IP subnet in linuxconf but this fail to set
up the default route when booting. It seems that the initscripts try to set
up the GW before adding the subnet 192.168.2.0/24 as local, so it fails.
A solution would be to move the defaultGW section from
/etc/sysconfig/network-scripts/ifup to ifup-routes after the local routes
had been added... this seems more coherent.
PS: doing it by hand using route add works well.
Do you have two subnets on the same interface, or
a static route to the gateway?
I have two subnet on the same ethernet network (on the test config not for real
;) ). In fact the scripts should automagically add the route to the other local
subnet when it finds out that the gateway IP is not on the local subnet. (this
works well if you have only one eth interface, it can be more tricky with 2+
Could you post the /etc/sysconfig/network-scripts/ifcfg-*,
/etc/sysconfig/network, and the routing table you're trying
closed, lack of input.