Gabriel Bermudez ha scritto:
Hi,
I'm trying to configure a high availability router for my internal
network. I'm able to set both private and public ips on eth0:0 and
eth2:0 respectively with heartbeat. The gateway is configured using
the /etc/sysconfig/network file (using centos 5.2)
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=gw1.mynetwork.net
GATEWAY=xxx.xxx.xxx.xxx
but for some reason it doesn't persists when I reboot the server. I
have to manually use the route command to restore the default gateway
route add -net 0.0.0.0 gw xxx.xxx.xxx.xxx
I've also tried to set up the route in "/etc/rc.local" and in
"/etc/sysconfig/network-scripts/route-eth2" files with no success. I
know that this is not a heartbeat related problem but I've tried to
google this with no success, so any help on this issue would be
greatly appreciated.
Thanks in advanced,
Gabriel.
Have a look at the ip comand (ip route in specific), and add instead of
all those lines add:
default via xxx.xxx.xxx.xxx
in the route-eth2 file.
ip is much simpler, and if you ever decide to do policy based routing,
much more powerful.
Nick
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems