Video Screencast Help

Any resource which can define static route

Created: 07 Sep 2012 | 4 comments
Zahid.Haseeb's picture

Environment

OS = Could be Windows/Unix/Linux

supposed environment = SFHA/DR (may be 5.x or 6.x)

I have a general question...

A supposed picture below...

 

                                            (Global Cluster)

Node1 Node2 =================================    Node-DR

LocalHA                                replication                              Single Node

 

eth0 public                                                              eth0 public

eth1 Heartbeat                                                        eth1 Heartbeat

eth2 Heartbeat                                                       eth2 Heartbeat    

eth3 for replication                                                eth3 for replication

eth4 Global heartbeat                                              eth4 Global heartbeat

(there may be more Ethernets)                                (there may be more Ethernets)

 

My question is specific with eth3

                          192.168.2.3 (Virtual IP)

                   192.168.2.1          192.168.2.2

Bbase IP on Node1 eth3           Base IP on Node2 eth3

When Node1 is Live the Virtual IP(192.168.2.3) will be on Node1 and when Node2 is Live the Virtual IP(192.168.2.3) will be on Node2. My question is I want to restrict eth3 traffic/replication traffic send via eth3 interface (not via eth0 which is configured as default gateway which already plenty of data comming on it). To get this I have to configure a static route with VIrtual IP when this Virtual IP is assigned on Node1 the static route assigned on the Node1 and when VIrtual IP is assigned on Node2 the static route assigned on the Node2 ...This static route make sure that the replication data will be send via eth3. What resource can do this. Any suggesstion on this please.   

Discussion Filed Under:

Comments 4 CommentsJump to latest comment

mikebounds's picture

You can just add routes to boths nodes - you can add routes for non-existing IPs on Linux, but I haven't tried on Windows.  No-one will be trying to contact DR replication IP from inactive node, so it won't matter that routes will not work, and if someone tries to access DR replication IP from inactive node at Prod it will fail, the same as it would fail if the route wasn't there.

If you want to add and remove routes you could use postonline and postoffline trigger scripts.

Ideally you should use a different subnet for replication, so you don't need this route.

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

What you have said correct but I think did not elaborated my query properly.

suppose replication is configured between 192.168.2.3(Virtual IP) and 192.168.2.4 and Virtual IP is right now at eth3 so the interface will be for Virtual IP is eth3:1

what will be the expected static route command

 route add -host DestinationIP netmask x.x.x.x gw x.x.x.x dev eth3:1

Can we run the above command with a virtual interface(eth3:1) ? I dont think ... this is my real query

If we use eth3 instead of eth3:1 in the above command the eth3 will try to make the connection between 192.168.2.1(Primary Site Node1) and the 192.168.2.4(DR Site) . This connection can be made but replication will not be take place/successful as replication is configured between 192.168.2.3(Virtual IP) and 192.168.2.4  (via vradmin command)

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com

mikebounds's picture

If you use eth3 in route command, then replication should still work as eth3:1 is virtual , so replication traffic goes out of physical eth3 interface.

Mike

UK Symantec Consultant in VCS, GCO, SF, VVR, VxAT on Solaris, AIX, HP-ux, Linux & Windows

If this post has answered your question then please click on "Mark as solution" link below

Zahid.Haseeb's picture

Thanks mike for your kind words. See the below link in which I have mentioned configuration and the problem i am facing

https://www-secure.symantec.com/connect/forums/err...

Any comment will be appreciated. Mark as Solution if your query is resolved
__________________
Thanks in Advance
Zahid Haseeb

zahidhaseeb.wordpress.com