1838576 Members
4166 Online
110128 Solutions
New Discussion

Multiple ips for package

 
SOLVED
Go to solution
Fabiano Alf
New Member

Multiple ips for package

it is possible to make the SG control ip ips additional package, but in different subnets?

I got the package with ip 200.10.10.5 subnet 200.10.10.0

I would like to add the ip

10.100.0.5 subnet 10.100.0.0

You can do this by setting within the SG or only with ifconfig?

thanks for support
8 REPLIES 8
Steven E. Protter
Exalted Contributor

Re: Multiple ips for package

Shalom,

floating ip addresses are set by the package control script, not ifconfig.

You should get ip addresses to allocate in you package control script from your network administrator.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Ganesan R
Honored Contributor

Re: Multiple ips for package

Hi,

You can have different subnet ip's for different packages. But you cannot have different subnet ip's for single package.
Best wishes,

Ganesh.
Fabiano Alf
New Member

Re: Multiple ips for package

I could add more than one ip for the package using the command

cmmodnet

but did not use the same command for different subnets, but this has already been explained here before for you.

If I have need for additional 3 ips in additional subnets you have to create more packages for this?

At least this is the scenario that I see now that I have to mount.

Today I have additional ips ests but because the working set up with ifconfig and I have this control through the SG
Stephen Doud
Honored Contributor

Re: Multiple ips for package

The bottom of this document section shows how to add multiple IPs to a package control script:

http://docs.hp.com/en/B3936-90122/ch07s05.html

Although it demonstrates the method for cross-subnet clusters, it shows how two entries can be added:

IP[0] = 15.244.65.82
SUBNET[0] 15.244.65.0
IP[1] = 15.244.65.83
SUBNET[1] 15.244.65.0

Be aware that each IP must have a corresponding NIC that supports the subnet of that IP. Use 'netstat -in' to identify the "network" (subnet) of each NIC
Fabiano Alf
New Member

Re: Multiple ips for package

This configuration works correctly ips to the same subnet, I did here and work.

But my need is to have 3 more ips for different subnets, if this could be taken control by the SG would be ideal.

I have to do this control through ifconfig
Emil Velez
Honored Contributor

Re: Multiple ips for package


of course

Assumptions SG systems on same subnet

IP[0]=10.10.67.134
SUBNET[0]=10.10.0.0
IP[1]=192.168.1.234
SUBNET[1]=192.168.1.0

This is a example of how to do it.

THe subnet parameter specifies what lan card to put the IP on.
Fabiano Alf
New Member

Re: Multiple ips for package

Emil

Now I think I do not understand ...

this configuration is possible in the same package?

IP [0] = 10.10.67.134
SUBNET [0] = 10.10.0.0
IP [1] = 192.168.1.234
SUBNET [1] = 192.168.1.0

why I already tried here in my initial tests and had no success and I was informed that it is not possible to have different subnets on the same package.

tanks for you help
Stephen Doud
Honored Contributor
Solution

Re: Multiple ips for package

As we showed you, it is possible to have a package configure multiple IPs on different subnets. There are 2 requirements:
1- The IP addresses must match a subnet already supported by NICS
2- The NICs/subnets are configured in the cluster via the cluster configuration file and cmapplyconf.

If you are trying to configure an IP/SUBNET to a particular NIC that doesn't already support that IP, it cannot be done using the IP[x], SUBNET[x] parameters in the legacy style package control script or in the modular style package configuration file. That sort of thing would have to be done in the legacy package control script customer_defined_run_cmds section and also removed via the customer_defined_halt_cmds section, or, if using modular packages, via an external script.