problem with host route


 
Thread Tools Search this Thread
Operating Systems AIX problem with host route
# 8  
Old 08-27-2010
Hi guys,

thanks for your help

I need to have IPs in the same subnet, because this is an hacmp (tsm) cluster, with 7 resource groups / 7 service ips, + persistent IPs


I have one IP-range that is routed (lets say the 192.168.100.x)

and I can use as many unrouted IPs as I like

that is 1.1.1.x in this case

AIX can handle more IPs in the same subnet, incoming virtual IP interface = outgoing virtual IP interface


the only problem I have is outgoing traffic behind a firewall, since hacmp load balances the service IPs over adapters
so I can never say which virtual IP resides on which adapter

as a workaround, there is a firewall rule for every service and persistent ip, but that's not what I want


@gurumeditation
I will try this, but are you sure, that the virtual ip is stored in the route, and not the interface the ip is applied on, the time you run the command?


Quote:
Originally Posted by bakunin
I am not sure if i understand you correctly, but wouldn't a simple static route solve your problem? Use "route add -host ..." to add a static route to the destination with a network mask of 255.255.255.255 and your desired local IP address as gateway. You can indeed use an IP address as gateway, can't you?

I hope this helps.

bakunin
sounds good to me, I let you know if it is possible

Edit: tried this, doesn't work, I think because the packages are not being routed to the default gateway in this case

cheers


Edit2:

I'm not the only one facing this problem, look at these articles:

http://fixunix.com/aix/487408-hacmp-...h-routing.html

http://www.aixmind.com/?p=780


seems that there is no solution to this expect of:
1. open the firewall to all addresses
2. do this on application level, and bind the outgoing traffic to an IP-address, which is not available for many apps

Last edited by funksen; 08-27-2010 at 05:04 AM..
# 9  
Old 08-27-2010
Quote:
Originally Posted by funksen
I have one IP-range that is routed (lets say the 192.168.100.x)

and I can use as many unrouted IPs as I like
I start to understand. The following is untested and just an idea, try it at your own risk:

The kernel has one - and only one - routing table. This data structure is consulted sequentially and later entries are overruled by earlier ones. Therefore the host.route you want to establish should be declared as early as possible. It might help to replace all the routes you have now (which are probably defined via "chdev -l inet0 ...") by lists of route definitions using "route add ..." which are placed in /etc/rc.net. This way you could exert control over the sequence in which the routing table is built.

Another idea is to create a (non-routed) IP alias which acts as a gateway for that host route and only for this IP alias establish routing information to the network gateway. You could bind the IP alias onto any interface and this way force traffic to be dispatched via this interface.

Another thing is:

Quote:
Originally Posted by funksen
I need to have IPs in the same subnet, because this is an hacmp (tsm) cluster, with 7 resource groups / 7 service ips, + persistent IPs
You might want to put these commands into a resource group and use start-/stop-scripts to create/remove these routing table entries.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 10  
Old 08-27-2010
the non-routed IP gateway wont work

but I like the idea with the own routing table
maybe there is a way to manipulate ODM-entries, to change the routing boot-sequence
but for sure I have to test this exactly Smilie



I think the safest and best way, don't know why I didn't think about that jet:
I add an virtual adapter from vio, and thats my "firewall interface" (2 vios, sea)

away from hacmp, on both nodes, always configured
what do you think about that?

the only thing that's not so great about it: for now, this machine has nothing to do with the virtual io servers on the system, with that I will generate a dependency
# 11  
Old 08-28-2010
If your system is AIX5.3 or 6.1 you can use
check parameter mpr_policy
Code:
no -o mpr_policy

I think for you is better 5, do
Code:
no -o mpr_policy=5

sorry if can be a problem with HACMP, I don't know your configuration.
return to default (1)
Code:
no -o mpr_policy=1

of course you right. "no" no "on"

Last edited by john1212; 08-31-2010 at 04:09 PM..
# 12  
Old 08-31-2010
btw. you mean no and not on Smilie
but thank you for this, so I've discovered the on command, which sounds interesting to me ^^

with mode 5, the man page of route says I can generate some kind of hash table, but how should it look like, and where should it be, a flat file?
# 13  
Old 09-01-2010
It always can do, it's ony show:
Code:
no -o mpr_policy

maybe, your system set mpr_policy 5?
If you have free lpars you can test it.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

"Network error: No route to host" While connecting guest RHEL4 using putty

Hi, I have installed RHEL4 using vmware workstation.. Host OS: Windows XP Guest OS: RHEL4 Pls refer step 17 & 18 in below link... ORACLE-BASE - Red Hat Enterprise Linux 4 and Centos 4 Installation 1) If i choose to assign IP automatically (using DHCP) means, i am able to connect RHEL4... (3 Replies)
Discussion started by: thomasraj87
3 Replies

2. UNIX for Dummies Questions & Answers

No route to host - mail error

A linux box is supposed to emailing the results of backups to the windows exchange server, but nothing arrives. it never has, as the muppet who set up the Windows domain knew nothing about linux. I know only slightly more than that... pretty sure sendmail is the daemon running to handle mail. it... (0 Replies)
Discussion started by: Noewon
0 Replies

3. AIX

problem with command 'route -q' in AIX 5.3

Hi all! I have a problem.I access to AIX server via SSH,then i use command 'route -q', after that i can't connect to AIX server.Please help me to fix this problem. Thanks & Best Regards (1 Reply)
Discussion started by: bachtq
1 Replies

4. IP Networking

IP forwarding Route/Host ?

I have a unix machine that operates some CNC machines, I need to hook up my windows machine through core ftp to load programs onto the box. The card i need to route to for the FTP on unix is tu1 I need to check the routing tables on the unix box to see which IP address will automatically... (2 Replies)
Discussion started by: moticulus
2 Replies

5. Programming

socket() No Route to host ??

Hello, My program should connect to a server. here's the code : int main(int argc, char *argv){ int sock = socket(AF_INET, SOCK_STREAM, 0); if(sock == -1){ perror("socket()"); exit(errno); } printf("retour socket = %d",sock); struct sockaddr... (1 Reply)
Discussion started by: nowayy
1 Replies

6. Red Hat

No route to host

I get below error when using telnet and ssh ?? Why ? the ip address of linux server is 10.155.25.22 =tstgcota ?? # netstat -rn Kernel IP routing table Destination Gateway Genmask Flags MSS Window irtt Iface 192.168.75.0 0.0.0.0 255.255.255.0 U 0 0... (6 Replies)
Discussion started by: chuikingman
6 Replies

7. Programming

Error: No Route to host...urgent {socket() connection}

hello, I am doing Socket programming.. when I am establishing a socket connection using TCP protocol ...I am getting Error :: No route to host. at the client side during connect() call...........that it is returning -1. So I thing problem lies here......but what to do now... So for just... (6 Replies)
Discussion started by: arunchaudhary19
6 Replies

8. IP Networking

Connect to RAS callback server: route problem

I'm trying to use my Gentoo Linux home workstation for connecting to a Windows RAS callback server through analogic telephone line (PSTN). I'm using pppd and successfully configured pppd's options and chat files, both for the outgoing call and for receiving the incoming callback. All seems going... (20 Replies)
Discussion started by: robotronic
20 Replies

9. UNIX for Dummies Questions & Answers

no route to host

I not able to ping outside the internet. i am able to ping my 192. ip address. when i try to ping a 68. ip address i get no route to host. what should i do to correct this issue. I have sco openserver 5.05 (6 Replies)
Discussion started by: scoman2
6 Replies

10. UNIX for Dummies Questions & Answers

add route gives target: Host name lookup failure

We need to add our remote office to our linux routing table. Our internal office ip addresses are all in the range of 198.9.200.x with an subnet mask of 255.255.255.0 the remote office has ip addresses in the range of 192.168.0.0 and also a subnet mask of 255.255.255.0 when i use the... (3 Replies)
Discussion started by: progressdll
3 Replies
Login or Register to Ask a Question