- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- two interfaces - one ip address
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
Discussions
Discussions
Discussions
Forums
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
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
тАО06-23-2005 07:50 AM
тАО06-23-2005 07:50 AM
Here's my question. I have a rx7620 server running hpux 11i v2 (11.23) and would like to setup 2 interfaces with the same IP address. Both of these would need to act as default routes. One would act as a backup to the first in case of a failure on the first one. These 2 cards are connected to separate switches (cisco 6509) and would thus need to have different gateway addresses. The interfaces on the 2 cisco switches connected to the rx7620 are in the same vlan so that the 2 interfaces on the rx7620 would be on the same network and with the same ip. What I'm trying to acieve is something like IPMP failover sort of like with Solaris (I'm an hp guy but the other folks are solaris people).
I know that the other way to do this is with 2 separate ip addresses (one for each interface). Then to associate these 2 addresses with one dns name and do dns round robin. Both of these interfaces would be the default routes. The setup is below.
IP_ADDRESS[0]=135.91.18.21
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=135.91.18.255
INTERFACE_STATE[0]=up
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="135.91.18.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
IP_ADDRESS[1]=135.91.18.22
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=135.91.18.255
INTERFACE_STATE[1]=up
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="135.91.18.2"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
So I guess I'm just curious if I can set this up with same IP for 2 interfaces (with 1 gateway per interface) such as the scenario below.
IP_ADDRESS[0]=135.91.18.21
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=135.91.18.255
INTERFACE_STATE[0]=up
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="135.91.18.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
IP_ADDRESS[1]=135.91.18.21
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=135.91.18.255
INTERFACE_STATE[1]=up
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="135.91.18.2"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
Also what would be the correct way to do this?
Appreciate the help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 08:02 AM
тАО06-23-2005 08:02 AM
Solutiondo the work manually. when on nic develops a problem, bring other up and ssign same ip.
the thirst as you know, would be ok, two ips and one dns name. Also in case you decdide to go this way, the ip adresses need to be on different subnet. hp-ux do not support two ips on same subnet.
Anil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 08:07 AM
тАО06-23-2005 08:07 AM
Re: two interfaces - one ip address
Hp has a product called HP APA (Auto Port Aggregation) to achive this. Here you can assign one IP to multiple ports, (Even more than two). I do not think it will be possible without that two achive this. It is a licensed product & does cost some. Have a look at this for the same.
http://docs.hp.com/en/J4240-90027/index.html
HTH,
Devender
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 09:24 AM
тАО06-23-2005 09:24 AM
Re: two interfaces - one ip address
Let me try to be a bit clearer - here goes:
1st QUESTION:
I'm trying to put 2 interfaces on the same network ie. 135.91.18.0 /24. So is there a way to do this with 1 IP per nic (2 nics & 2 different ips) both nics on same network, and both set as default route, and both active.
-------------------
2nd QUESTION:
Otherwise is it supported to put 1 nic on 1 network say 135.91.17.0 /24 and the other on 135.91.18.0 /24 and have them both be the default route and have the same dns alias for both of them. Doing round robin in this scenario with BOTH INTERFACES ACTIVE?
3rd QUESTION:
-------------------
This goes for in case I have application issues with 2 ip's/interfaces active at the same time. Is there a way to do active/passive for these two interfaces. Meaning that one is active and one is passive at a point in time - then if the active fails the passive takes over automatically. - this of course without purchasing the additional software.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 09:41 AM
тАО06-23-2005 09:41 AM
Re: two interfaces - one ip address
2) You can have 2 NICs on 2 different subnets, but you CAN'T have them both be a default route.
3) You could try to "engineer" some scripts that would do something like this, but this is really what Auto Port Aggregation is designed to do.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 09:55 AM
тАО06-23-2005 09:55 AM
Re: two interfaces - one ip address
Coming to the configutrations to the 3 questions in your later post
1) possible but having two default routes is not advisable in my opinion. Even though you will have two routes, there is no guarantee (that I know of) that they will be used in a balanced fashion.
2) is not very different that my answer to the first question
3) if you want a seamless (i.e. no down time) solution, it goes through APA, which costs money. If you can tolerate a down time between the failure and detecting it, you can very easily switch interfaces with two simple commands in a script and call this script from the function which tests and finds a network failure:
lets assume you have lan1 and lan2 to switch between
you will have a file, lets say, /var/adm/activelan, which will have the active instance number at any given time, either 1 or 2
failed=[ some test condition here that you will develop ]
# failed=0 means no failure
# failed=1 means network failed
if [ ${failed} -eq 1 ]
then
activelan=`cat /var/adm/activelan`
ifconfig ${activelan} down
let activelan=${activelan}+1
if [ $activelan -gt 2 ]
then
let activelan=${activelan}-2
fi
ifconfig ${activelan} inet a.b.c.d netmask 0xffffff00 up
echo ${activelan} > /var/adm/activelan
fi
it is upto you to determine that there is a network failure how ever you wish to handle it.
then you need to run the script at the intervals that you can tolerate a downtime of.
APA saves you a lot of headaches even though it is a bit on the expensive side.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 09:58 AM
тАО06-23-2005 09:58 AM
Re: two interfaces - one ip address
I have seen systems with two default routes, running without a complaint but I am not sure how they are utilizing these network paths. Especially OmniBack (ahem data protector) v5.x installations which use a separate media server/library controller, seem to add the second default route there. I know it is against the nature of routing but it seem to work fine. Again, one of the two default routes may be treated in a preferential way, I don't know the answer to that.
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-23-2005 11:40 AM
тАО06-23-2005 11:40 AM
Re: two interfaces - one ip address
I think that there may be some confusion. This is always a tricky issue. Bottom line is I'd like to set up 2 default routes on one system. I don't really care if all the traffic goes through 1 nic as the nics are 1Gb (not concerned about throughput). All I really care is that if one of the default gateways fails that the other will work without having any downtime - via "dead gateway detection." Otherwise whats the use of having dead gateway detection anyway.
So will it "work" if i put 2 interfaces from rx7620 on the same network (one on each 6509) with different IPs both being the default route such as below?
IP_ADDRESS[0]=135.91.18.21
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=135.91.18.255
INTERFACE_STATE[0]=up
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="135.91.18.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
IP_ADDRESS[1]=135.91.18.22
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=135.91.18.255
INTERFACE_STATE[1]=up
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="135.91.18.2"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
Otherwise will it work if I put the default routes through 2 different networks such as below:
IP_ADDRESS[0]=135.91.17.21
SUBNET_MASK[0]=255.255.255.0
INTERFACE_NAME[0]=lan0
BROADCAST_ADDRESS[0]=135.91.17.255
INTERFACE_STATE[0]=up
ROUTE_DESTINATION[0]="default"
ROUTE_MASK[0]=""
ROUTE_GATEWAY[0]="135.91.17.1"
ROUTE_COUNT[0]="1"
ROUTE_ARGS[0]=""
IP_ADDRESS[1]=135.91.18.21
SUBNET_MASK[1]=255.255.255.0
INTERFACE_NAME[1]=lan1
BROADCAST_ADDRESS[1]=135.91.18.255
INTERFACE_STATE[1]=up
ROUTE_DESTINATION[1]="default"
ROUTE_MASK[1]=""
ROUTE_GATEWAY[1]="135.91.18.2"
ROUTE_COUNT[1]="1"
ROUTE_ARGS[1]=""
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2005 05:06 AM
тАО06-24-2005 05:06 AM
Re: two interfaces - one ip address
There is nothing to preclude you configuring separage physical (as far as the transport is concerned) NICs in the same IP subnet. However, it may not behave as you expect. Without doing anything else, both will be used for inbound traffic, but only one will be used for outbound traffic.
you can get both used for outbound traffic (at least when the remote systems initiate the connections) if you use ndd to set ip_strong_es_model to a value > 0 (not sure if a value of 2 is out there yet or not). with a value of one though, ip_strong_es_model will preclude receipt of IP datagrams on anything other than the interface with the matching IP address. it will though give at least the illusion of separate default routes - at least if you use the local IP addresses as the default routes (aka rely on proxy arp).
so, in the end, the "correct" way to do this, short of lots of scripting and use of linkloop to check link-level connectivity and moving IP addresses around is to get APA installed.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-24-2005 05:42 PM
тАО06-24-2005 05:42 PM
Re: two interfaces - one ip address
You can not have same IP address assigned to two NICs.
One other product apart from APA that you might want to have a look at is MC serviceguard where you can configure the second nic as a standby and in case of a NIC failure or path failure ( switch port failure) , the second standby NIC assumes charge and comes up with the same settings as the primary NIC.
If this is not what you want, APA is the only way.