Operating System - HP-UX
1753479 Members
4825 Online
108794 Solutions
New Discussion

Re: configuring second ip address in lan900 APA

 
Muhammad Farhan Nasir
Regular Advisor

configuring second ip address in lan900 APA

we have run below to configure second ip in APA.

"#ifconfig lan900:1 10.x.x.xx netmask 255.0.0.0"

but when server restart it is not accessible.

how to permanently configure this.
Muhammad Farhan Nasir
11 REPLIES 11
Ismail Azad
Esteemed Contributor

Re: configuring second ip address in lan900 APA

Hi,

How about checking for the following files or something similar... Permanent configuaration is always done in /etc/rc.config.d/...

/etc/rc.config.d/hp_apaconf
/etc/rc.config.d/hp_apaportconf

Regards
Ismail Azad
Read, read and read... Then read again until you read "between the lines".....
satheeshnp
Advisor

Re: configuring second ip address in lan900 APA

Here is brief description how to assign virtual ip addresses - http://docs.hp.com/en/B2355-90796/ch06s11.html

And from ifconfig manual - A secondary IPv4 interface can be removed by assigning an IP address of 0.0.0.0 to it.

Muhammad Farhan Nasir
Regular Advisor

Re: configuring second ip address in lan900 APA

one lan900 is working fine,
what perametres i add in

/etc/rc.config.d/hp_apaconf
/etc/rc.config.d/hp_apaportconf

for second ip.

HP_APA_INTERFACE_NAME[0]=lan900:1 or different.

please share perametres.
Muhammad Farhan Nasir
Muhammad Farhan Nasir
Regular Advisor

Re: configuring second ip address in lan900 APA

above link is not working
Muhammad Farhan Nasir
Dennis Handly
Acclaimed Contributor

Re: configuring second ip address in lan900 APA

>above link is not working

Without the name of the document, you'll have to search for it. Try:
http://bizsupport2.austin.hp.com/bc/docs/support/SupportManual/c02037128/c02037128.pdf
Virtual IP (VIP) Addresses 135
Viktor Balogh
Honored Contributor

Re: configuring second ip address in lan900 APA

Hi,

In short: Just copy the existing configuration, fill in the second config and change the indexes everywhere from 0 to 1, like this:

HP_APA_INTERFACE_NAME[0] --> HP_APA_INTERFACE_NAME[1]

The config is stored in arrays, by incrementing the index the actual config will apply to the next instance. Currently I don't have an HP-UX session in front of me, so I can't give you exact parameters. But as I remember, these config files are full of commented explantations, so it should be easy.

Regards,
****
Unix operates with beer.
GPissutto
Frequent Advisor

Re: configuring second ip address in lan900 APA

INTERFACE_NAME[1]=â lan900:1â
IP_ADDRESS[1]=â 192.168.1.125â
SUBNET_MASK[1]=â 255.255.225.0â
BROADCAST_ADDRESS[1]=â â
INTERFACE_STATE[1]=â â
DHCP_ENABLE[1]=â 0â
Viktor Balogh
Honored Contributor

Re: configuring second ip address in lan900 APA

GPisutto's solution is almost perfect, but note that you are using different subnet mask according to the very first posting here above:

>ifconfig lan900:1 10.x.x.xx netmask 255.0.0.0"

so change it to

SUBNET_MASK[1]="Â Â 255.0.0.0"

and naturally review the other settings too, maybe you should use different values.
****
Unix operates with beer.
Viktor Balogh
Honored Contributor

Re: configuring second ip address in lan900 APA

IP_ADDRESS[1]="10.x.x.x"
****
Unix operates with beer.