Operating System - HP-UX
1838652 Members
4105 Online
110128 Solutions
New Discussion

SG package and multiple lan IPs

 
Richard Pereira_1
Regular Advisor

SG package and multiple lan IPs

Hi,

I'm sure this can be done, i just need to confirm the steps.
I have 1 cluster with 2 packages, for a short time, my customer needs the packages to have 2 IPs each.
I know in the configuration of package this can be done, but my SG is rusty and need to confirm a few things.

1- to make this work, for the second set of IPs do i absolutely need a seporate lan card or can i use aliased lan cards, say lan1:1 ?

2- does the cluster or package have to be completely down for me to push these changes out? (im assuming yes)

Thanks in advance,
Richard
3 REPLIES 3
Sridhar Bhaskarla
Honored Contributor

Re: SG package and multiple lan IPs

Hi Richard,

1. If you are using an IP in a different subnet, then you will need to have another lan card. But if it is in the same lan as of the previous one, then another logical interface will be created for it. For ex., lan0:2

2. No. You don't need the cluster to be down. Add the IP to your package control file. Then use 'cmmodnet' to add it manually

cmmodnet -a -i

However, when you get a chance, make sure you do a failover testing to ensure the integrity of your control file. Before bringing up the package make sure you don't have the second IP still sticking in there using 'netstat -in' command.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Sanjay_6
Honored Contributor

Re: SG package and multiple lan IPs

Hi Richard,

you can use the ifconfig command to assign an additional ip address to the lan card.

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B9106-90008/B9106-90008_top.html&con=/hpux/onlinedocs/B9106-90008/00/01/165-con.html&toc=/hpux/onlinedocs/B9106-90008/00/01/165-toc.html&searchterms=ifconfig&queryid=20041025-114712

To do this in a SG env, it would be good if you have a new lan card, but if you don't, you can still assign this to the lan card. to do this use the cust_defined_run_cmds sections to add a ifconfig command and assign an additional ip address to the lan card.

You don't need to shutdown the cluster for this. Do the change manually for the timebeing and then edit the cluster startup script to add this ip address manually when the cluster / package is restarted.

Hope this helps.

Regds
Sundar_7
Honored Contributor

Re: SG package and multiple lan IPs

Richard,

Sri has it.

You can edit the package control script and add the entries for the second package IP address

IP[0]=
SUBNET[0]=

IP[1]=
SUBNET[1]=

These IP addresses are added as virtual IP addresses to the lan cards by the cmmodnet command.

cmmodnet determines the lan card to which these virtual addresses should be assigned based on the stationary IP address that is currently assigned to the lan card

For ex, with IP[0], cmmodnet searches for the lan card with the matching subnet mask, and add IP[0] as the virtual IP address.

With IP[1], cmmodnet does exactly the same. So , if you need to have the second package IP address in a different subnet, you need to have a lan card with the stationary addresses assigned to it from the same subnet.

Though these changes could be done online when the package is up, I would rather suggest making the changes and starting the package again, if you can.

- Sundar
Learn What to do ,How to do and more importantly When to do ?