Operating System - Linux
1752571 Members
5254 Online
108788 Solutions
New Discussion юеВ

Adding global route to VCS (cluster) configuration

 
linux_4
New Member

Adding global route to VCS (cluster) configuration

Hi Guys,

I'm trying to add a global route to VCS cluster configuration. I added the following RouteOptions to my Linux VCS main.cf:

MultiNICA EdnMNIC (
Device @ronbgmc1a = { eth2 = "10.107.68.24", eth3 = "10.107.68.25" }
Device @ronbgmc1b = { eth2 = "10.107.68.26", eth3 = "10.107.68.27" }
NetMask = "255.255.255.0"
RouteOptions = "-host 10.107.3.223 eth2"
PingOptimize = 0
NetworkHosts = { "10.107.68.1" }
)

Using the following commands:

[root@ronbgmc1b root]# hastop -all -force
[root@ronbgmc1b root]# pushd /etc/VRTSvcs/conf/config/
/etc/VRTSvcs/conf/config ~
[root@ronbgmc1b config]# vi main.cf
[root@ronbgmc1b config]# hacf -generate .
[root@ronbgmc1b config]# grep Route ./main.cf
RouteOptions = "-host 10.107.3.223 eth2"
[root@ronbgmc1b config]# hastart

However, the new route is not added to the routing table:

[root@ronbgmc1b config]# netstat -nr
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
10.107.68.0 0.0.0.0 255.255.255.0 U 0 0 0 eth2
10.107.68.0 0.0.0.0 255.255.255.0 U 0 0 0 eth3
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth3
0.0.0.0 10.107.68.1 0.0.0.0 UG 0 0 0 eth2
[root@ronbgmc1b config]#

Can anyone suggest the correct procedure of adding a route to VCS ?

Thanks,
Ron.
--
Ron Barak
Unix System Developer, MIS, Comverse
2 REPLIES 2
Steven E. Protter
Exalted Contributor

Re: Adding global route to VCS (cluster) configuration

Shalom,

A system can only have one DEFAULT route.

Therefore other routes need to be dynamically added with the route add command.

This might not help the networking situation however, it could cause problems.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Stuart Browne
Honored Contributor

Re: Adding global route to VCS (cluster) configuration

No, it's not a default route issue.

It's a lack-of-network issue.

You're trying to add a route to '10.107.3.xxx' via an interface which isn't on that subnet, so it's getting confused. You could tell it to use a next hop using 'gw 10.107.68.1' instead of 'eth2', but..

The default route is covering that route, so unless you're getting ip-redirect ICMP's, theres no reason to have it.
One long-haired git at your service...