Operating System - HP-UX
1834516 Members
2007 Online
110068 Solutions
New Discussion

Re: Multiple IP addresses for a LAN card

 
SOLVED
Go to solution
Sundar_7
Honored Contributor

Multiple IP addresses for a LAN card

Hi all,

I came to know we can assign Multiple

IP addresses for a Single LAN card.

But I am not able to get the basic purpose

of doing it.

Can any of the expert please explain me

what is the exact practical usage of assigining

more than one IP address to a LAN card and

Is it possible to assign "N" number of

Ip addresses to a LAN card or N is restricted

to some value??

Please help Me

Thanx in anticipation

Sundar
Learn What to do ,How to do and more importantly When to do ?
5 REPLIES 5
Sandor Horvath_2
Valued Contributor

Re: Multiple IP addresses for a LAN card

Hi !

On HP-UX 11 You can do it.

ifocnfig ip_address landevice:indexnumber
example:
ifconfig 195.1196.197.198 lan0:1

try it.

regards, Saa
If no problem, don't fixed it.
Andrey Ivanov
New Member
Solution

Re: Multiple IP addresses for a LAN card

Hi!

This ability is known as IP Multiplexing.
For HP-UX 10.x use ifalias command;
for HP-UX 11 use ifconfig.

Why useful?
It allows a single system to be seen as multiple systems with multiple IP addresses and host names, even if a system has only _1_ interface card. It also allows multiple instances of applications to appear as if they reside on separate machines.
Sundar_7
Honored Contributor

Re: Multiple IP addresses for a LAN card

Hi,

Thanks for both.

But saa did nt understand my question.

I was already knowing how to do it.

I just wanted to know how to do it.

Andrey Did well.

Thanks to both

and if any of U find time,just leave me a

line or two at

sundar_hp@indiatimes.com

Bye

Sundar
Learn What to do ,How to do and more importantly When to do ?
Jorge C. Alexandres
New Member

Re: Multiple IP addresses for a LAN card

Hi;

This practice is very common in a web server scenario, where the server is running several websites.

I hope this makes sense to you.

Regards,

Jorge C. Alexandres
Better to have a bird in hand, than seeing a 100 flying.
Anthony Cheng
Occasional Contributor

Re: Multiple IP addresses for a LAN card

Hi,

Please This Sound :

ifconfig lan0:1 netmask

Examples:
if config lano:1 172.16.12.61 netmaks 255.255.255.0

For long Time Use,
Please write the script file to rc0.d, rc1.d & rc3.d

Thanks !!
My E-mail As new_antz@hotmail.com