- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- how to force the use of an IP address on a network...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 01:06 AM
09-20-2004 01:06 AM
how to force the use of an IP address on a network with virtual IP
Here's my conf :
lan0 : IP 192.X.X.10
lan0:1 : IP 192.X.X.100
lan0:2 : IP 192.X.X.101
lan0:3 : IP 192.X.X.102
lan0:1, lan0:2 lan0:3 are used for virtual webserver hosting ! which mean that the firewall is NATing 100, 101 and 102.
This config is good for replying on some http requests.
But my trouble is :
If i open a connection to internet (outgoing) with this server, the source address used is 10, which is not NATed (nor allowed) ! Then no answer of course. What I want is forcing the use of lan0:1 for outgoing traffic (But I want to keep Lan0 with this IP to facilitate recovery with another server), by default lan0 is used !
I tried static routes to local host . IE :
route add 192.X.X.100 0
which is working for contacting the gateway directly ? but for default ?
And
route add net 192.X.X.0 netmask 255.255.255.0 192.X.X.100 0
But it doesn't work !
What can I do to force the use of lan0:1 instead of lan0 for outgoing traffic to the default route ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 01:21 AM
09-20-2004 01:21 AM
Re: how to force the use of an IP address on a network with virtual IP
you have to set 192.X.X.100 to lan0 insted of lan0:1.
For outgoing packet kernel always gets first lan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 01:39 AM
09-20-2004 01:39 AM
Re: how to force the use of an IP address on a network with virtual IP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 02:14 AM
09-20-2004 02:14 AM
Re: how to force the use of an IP address on a network with virtual IP
-Tomek
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 03:09 AM
09-20-2004 03:09 AM
Re: how to force the use of an IP address on a network with virtual IP
Take a look at this doc, which suggest some solutions,
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000075211541
The itrc doc id is KBQA00000472.
Also the suggested link from the sg doc on hp doc site,
http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B3936-90079/B3936-90079_top.html&con=/hpux/onlinedocs/B3936-90079/00/00/68-con.html&toc=/hpux/onlinedocs/B3936-90079/00/00/68-toc.html&searchterms=Applications%7cDesigning&queryid=20040920-090850
Hope this helps.
Regds
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 12:06 PM
09-20-2004 12:06 PM
Re: how to force the use of an IP address on a network with virtual IP
There _may_ be some ways to setup routes that if you also set ip_strong_es_model you will get the source IP you want, but that is more of a sure thing when the remote contacts you (your system) rather than when you contact the remote.
The sure way when you contact the remote is to have the application call bind().
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-20-2004 12:16 PM
09-20-2004 12:16 PM
Re: how to force the use of an IP address on a network with virtual IP
Its still useful because it lets you set up lots of web servers with their own ip addresses for example.
I'd the lan0 addy if that does not disrupt other network traffic.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-21-2004 03:27 AM
09-21-2004 03:27 AM
Re: how to force the use of an IP address on a network with virtual IP
From what I can read the answer is not simple !
A simple route add doesn't work.
I don't manage all the software which may generate outbound traffic (like Bind, Squid, cvs, messaging), then using the bind() isn't allways possible !
I think I will then change my recovery script to change properly the lan0 config on each side which is more complicated but should work.
thank all !