Operating System - HP-UX
1837921 Members
7016 Online
110124 Solutions
New Discussion

Re: Using "ifalias" command

 
Kiat leong Len
Occasional Contributor

Using "ifalias" command

Is it true that "ifalias" command only add multiple ip addresses which must be
the same network address?

Currently, my lan0 ip is 10.134.15.216. I want to add another ip address to
lan0, i.e., 192.1.1.1. Using the command below, it failed:

# ifalias lan0 add 192.1.1.1

Why? Please help.

P.S.
I am using HP9000, B180L, HP-UX 10.20.
2 REPLIES 2
Dan Hull
Regular Advisor

Re: Using "ifalias" command

According to the man page for ifalias(1M):

The number of IP addresses that can be assigned to an interface depends on
the netmask. (See the Supernets section in ifconfig(1M).)

I would check into that.

I'm not sure I understand your question though. If you assign multiple IP
addresses to the same interface, then aren't they the same "network address"?
What exactly is the error it returns?

You may also consider asking in the networking forum.
Kiat leong Len
Occasional Contributor

Re: Using "ifalias" command

Hi,
After doing more experiment,i could not use 2 different network addresses on
the same network card, lan0 using ifalias command.
Actually, i was looking into the possibility of using lan0 as a gateway for
10.134.15.xxx and 192.1.1.xxx LAN. But the chances of doing that is very very
slim now. Guess i have to buy one more network card.
Thanks.