HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- set up virtual IP in Linux
Operating System - Linux
1829556
Members
1762
Online
109992
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Topic Options
- 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
06-06-2006 05:51 PM
06-06-2006 05:51 PM
set up virtual IP in Linux
Hi,
I have 2 Linux as4 severs running J2ee application.
Requirement -> set up virtual IP address so that of one j2ee instance fail then direct request to second j2ee server.
Please let me know how to accomplish above requirement.
Regards
Walter Crasto
I have 2 Linux as4 severs running J2ee application.
Requirement -> set up virtual IP address so that of one j2ee instance fail then direct request to second j2ee server.
Please let me know how to accomplish above requirement.
Regards
Walter Crasto
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-06-2006 08:12 PM
06-06-2006 08:12 PM
Re: set up virtual IP in Linux
for clustering (failover/failback) of a service you need a clustering software. you can use, HP serviceguard, RedHat cluster suite or one of the opensource solutions (like openHA, Oscar,...)
Also, you can use LVS for loadbalancing between the servers. with LVS at the time of outage all the requests direct to the reamin server.
Also, you can use LVS for loadbalancing between the servers. with LVS at the time of outage all the requests direct to the reamin server.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-07-2006 06:46 PM
06-07-2006 06:46 PM
Re: set up virtual IP in Linux
Hi Walter,
If you want to do it in a shell script or into a shell, and admitting that your lan interface is eth0, then just type:
ifconfig eth0:1 NewIP NETMASK 255.255.255.0 up
With this your server will answer to both IPs your original eth0 IP and the second one. If you want to disable it just do:
ifconfig eth0:1 down
If you register your "NewIP" into DNS you will have a virtual system that could be handle by any of your computer with a connection into the same part of your "NewIP" lan.
But be VERY carefully into having one and only one server activating that "NewIP".
This is the biggest part of the game and that is what clustering software are doing for you with proprietary rules that you can adapt to your needs!
Cheers,
Enzo Genuardi.
If you want to do it in a shell script or into a shell, and admitting that your lan interface is eth0, then just type:
ifconfig eth0:1 NewIP NETMASK 255.255.255.0 up
With this your server will answer to both IPs your original eth0 IP and the second one. If you want to disable it just do:
ifconfig eth0:1 down
If you register your "NewIP" into DNS you will have a virtual system that could be handle by any of your computer with a connection into the same part of your "NewIP" lan.
But be VERY carefully into having one and only one server activating that "NewIP".
This is the biggest part of the game and that is what clustering software are doing for you with proprietary rules that you can adapt to your needs!
Cheers,
Enzo Genuardi.
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP