Operating System - HP-UX
1834346 Members
1782 Online
110066 Solutions
New Discussion

Re: ip aliases on LAN interface

 
Igor Shulz
Occasional Contributor

ip aliases on LAN interface

Is it possible to define IP aliases on LAN interface, so that LAN card of HPUX
box had two different IP addresses in two different networks.
2 REPLIES 2
Neil Curtis_1
Occasional Advisor

Re: ip aliases on LAN interface

Hi Igor,
Assiging two different ip addresses on different subnets to one lan interface
is supported. On 10.20 you will require PHNE_12492 (Ifalias)and it's
dependency PHNE_19936 (ARPA Cumulative). This will give you the "ifalias"
command. On UX 11.0 this functionality is built into the ifconfig command.
You assign it using the lan interface name and an index number. For example
"ifconfig lan0" represents the default ip address and "ifconfig lan0:1" will
reference the alias. Check out the man page on 11 for more info.

Hope this helps,

Regards,

Neil.
Anthony Goonetilleke_1
Regular Advisor

Re: ip aliases on LAN interface

Say for example you have two Physical interfaces and three logical interfaces
in HP-UX 11 you can do something like

ifconfig lan0:0 inet 20.3.3.3
ifconfig lan0:1 inet 20.4.4.4
ifconfig lan1:0 inet 24.4.4.4

Don't forget to make the changes in /etc/rc.config.d/netconf

regards,
AG