Operating System - HP-UX
1833832 Members
2442 Online
110063 Solutions
New Discussion

Re: Could two IP addresses assigned to same APA interface?

 
Joe Shen
Occasional Contributor

Could two IP addresses assigned to same APA interface?

Is it possible to assign two IP addresses of same subnet to the same APA interface?

I means, if two NIC is grouped into one virtual interface using APA. Could two IP addresses, such as 192.168.1.25 and 192.168.1.26, assigned to that virtual interface?

Joe
5 REPLIES 5
Torsten.
Acclaimed Contributor

Re: Could two IP addresses assigned to same APA interface?

I seriously doubt that you can assign 2 addresses out of the same subnet to 1 NIC (exept some special procedures).

Why do you want to do this?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Patrick Wallek
Honored Contributor

Re: Could two IP addresses assigned to same APA interface?

Yes, that should work fine.

You can have 2 addresses from the same subnet on a single NIC, but NOT on different NICs.
melvyn burnard
Honored Contributor

Re: Could two IP addresses assigned to same APA interface?

yes, use the ifconfig lanxxx:y ip_# where xxx is your APA lan, and y is the next available nukber after 0 to add on to the exisitnig interface
e.g. you have 192.168.1.25 already assigned to lan900, and wish to add 192.168.1.26:
ifconfig lan900:1 192.168.1.26

Essentially this is what Serviceguard does, but using systemcalls and other commands
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Tim Nelson
Honored Contributor

Re: Could two IP addresses assigned to same APA interface?

Your /etc/rc.config.d/netconf entries would look something like this.

#Virtual IP configuration
INTERFACE_NAME[1]=lan900:1
IP_ADDRESS[1]=192.168.1.125
SUBNET_MASK[1]=255.255.255.0
BROADCAST_ADDRESS[1]="192.168.1.255"
INTERFACE_STATE[1]="up"
DHCP_ENABLE[1]=0

INTERFACE_NAME[2]=lan900:2
IP_ADDRESS[2]=192.168.1.126
SUBNET_MASK[2]=255.255.255.0
BROADCAST_ADDRESS[2]="192.168.1.255"
INTERFACE_STATE[2]="up"
DHCP_ENABLE[2]=0
rick jones
Honored Contributor

Re: Could two IP addresses assigned to same APA interface?

You can add IP's to an aggregate just like you can add IP's to a "regular" interface. The transport doesn't know the difference between an aggregate and a single-port interface. They can be the same or different subnets.

And, you _can_ assign IP's from the same subnet to two different interfaces, it just may not behave as one might initially expect
there is no rest for the wicked yet the virtuous have no pillows