Operating System - HP-UX
1836436 Members
2601 Online
110100 Solutions
New Discussion

Re: Multiple IP address under HP-UX

 
SOLVED
Go to solution
sardin
New Member

Multiple IP address under HP-UX

Hello,
I need to add a new IP address on my workstation ...
Another point is that I am running HP-UX 10

I hope that someone can give me a solution !

Thanks
10 REPLIES 10
Torsten.
Acclaimed Contributor

Re: Multiple IP address under HP-UX

HP-UX 10.20?

I'm not sure if this is working with this OS (maybe another command, but I don't remember), but you can use lan0:0 (this is lan0) and in addition lan0:1, lan0:2 and so on with ifconfig command or even in the netconf file.

"man ifconfig" may give you more information.

It works for sure with 11.00 and newer.

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!   
Zinky
Honored Contributor

Re: Multiple IP address under HP-UX

not sure either if this is supported on 10.x but what you need is Viurtual IP (VIP):

Noe that it needs to have same network address.

i.e.

For example:

Say you want your server saturn (saturn.xyz.com) to have another ip address/DNS and known as venus.xyz.com as a VIP.

And say the IP addresses are, and saturn's IP address is bound/plumbed on lan2:

saturn: 150.234.98.5
venus: 150.234.98.20


saturn# ipconfig lan2:1 150.234.98.20
netmask 255.255.255.1 up

Your saturn server will now also have a VIP address of venus...


Hakuna Matata

Favourite Toy:
AMD Athlon II X6 1090T 6-core, 16GB RAM, 12TB ZFS RAIDZ-2 Storage. Linux Centos 5.6 running KVM Hypervisor. Virtual Machines: Ubuntu, Mint, Solaris 10, Windows 7 Professional, Windows XP Pro, Windows Server 2008R2, DOS 6.22, OpenFiler
Jeff_Traigle
Honored Contributor

Re: Multiple IP address under HP-UX

There was a patch for 10.20 that included the ifalias command to do this.
--
Jeff Traigle
melvyn burnard
Honored Contributor
Solution

Re: Multiple IP address under HP-UX

On HP-UX 10.20 there was no built in ability to add IP addresses to an existing network.
You need to add a patch to allow this, and the command it adds is called ifalias
Check for PHNE_12492, and remember this on 10/20 only, and this OS version is no longer supported
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Torsten.
Acclaimed Contributor

Re: Multiple IP address under HP-UX

the man pages says it is working with ifconfig even in 10.20:

http://docs.hp.com/en/B2355-90129/ifconfig.1M.html

Important: use different subnets!

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!   
Michael Steele_2
Honored Contributor

Re: Multiple IP address under HP-UX

I've also got 'ifalias' / 10.20 and 'ifconfig' / 11.00.

Presuming lan1 is already assigned an ip.

netstat -in -I lan0
ifalias lan0 add 192.168.0.3

ifconfig lan0:1 inet 192.168.0.2
ifconfig lan0:2 inet 192.168.0.3

To verify:
# netstat -in -I lan1

If you typo:
# ifalias lan1 del 192.168.0.2
Support Fatherhood - Stop Family Law
melvyn burnard
Honored Contributor

Re: Multiple IP address under HP-UX

ifconfig will not allow you to add IP address onto an exisitng configured network on HP-UX 10.20, this was only available as of H-UX 11.00, you need the ifalias patch for 10.20
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
sardin
New Member

Re: Multiple IP address under HP-UX

Thanks to all for 'ifalias'.

I think that it will do.
I hope that I will get it right on subnet definition.

The 2 addresses are not in the same segment !

I am surprised not to have a specific mask with each address (for what understand of Supernet matter in man pages)

If one of you can make it clear for me , I will appreciate.

Gilles Allard
Advisor

Re: Multiple IP address under HP-UX

Sardin
Do not fear about address masks and subnetting. Since 1999, I'm running 15 class C segments on a single lan card and they all have a /24 mask.
I'm using ifalias on HPUX10.20. According to my notes, PHNE-17097 provided ifalias.
sardin
New Member

Re: Multiple IP address under HP-UX

I am going to use ifalias (as soon as I find some time ....)

Thanks for help

;o)