Operating System - HP-UX
1832869 Members
6885 Online
110048 Solutions
New Discussion

Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

 
Lora Ganeva
Regular Advisor

Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

I have a HP-UX 10.20 running Gated.I need to assign an additional IP address to the Loopback interface, for example 192.168.1.100. Is is possible and how?
10 REPLIES 10
Rainer von Bongartz
Honored Contributor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?


You cannot assign additional ip-address to your loop-back; only to your lan card.

In 10.20 you user ifalias; in 11.0 use ifconfig

ifalias is not standard in 10.20, you must first install
patch PHNE_12492 (or later) to have ifalias available
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Herve BRANGIER
Respected Contributor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?


Hi

It's impossible, 127.0.0.1 is THE loopback
address. You can configure all others interface
but not lo0.
Why do you want to configure alias on lo0 and
not lan0 for example ?

Regards

Herv?


John Bolene
Honored Contributor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

Nope, as others said, can't do that.

192.168.1.100 also is normally used as a router address, but you can do with it as you choose.

Can you explain what you want to do and we can suggest more answers?
It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Rob Smith
Respected Contributor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

Hi, as everyone else said, you cannot do that. I am really interested as to why you would want to. You can alias any of your other interfaces though:

ifconfig lan0:1 "ipaddress" netmask "netmask"

Hope this helps.

Rob

Learn the rules so you can break them properly.
Lora Ganeva
Regular Advisor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

Hi,everybody!!!
Have You heard about gateD.Well, I would like to advertise a host route to a package running on a cluster. To do this, I need to assign the IP address of the package to the loopback interface - It could be a second IP address, assigned to the loopback interface, or I could change the IP address from 127.0.0.1 to 10.16.8.3 for example
Rainer von Bongartz
Honored Contributor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?


As already stated !!!!

you cannot chnge your loopback address
and you don't need to.

For your task you assign the ip address to your lan card lan

By the way: If this is a package ip-address this has already been set by MC Service Guard if your package configuration
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Lora Ganeva
Regular Advisor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

Thank You "expert",
but for my purpose it is not enough to assign the ip address to an interface-the IP address of the package must be advertised in a proper manner as well - and this is managaed by gateD. And the only way , in which it is possible to advertise a single IP address (not a "network address") is to assign it to the loopback interface.
Rainer von Bongartz
Honored Contributor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?


Why not use arp in this case ???
He's a real UNIX Man, sitting in his UNIX LAN making all his UNIX plans for nobody ...
Lora Ganeva
Regular Advisor

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

Thank You,but what do You mean by "arp"-I'm talking about a layer3 routing protocol-how can I use arp?
Raman Yousefi
New Member

Re: Can I assign additional IP address to the loopback interface in HP-UX 10.20 ?

This functionality is available in HP-UX 11.11 (see release notes) and HP-UX 11.04 via a patch (PHNE21767 I think). The concept of using gated to dynamically route through two physical interfaces (lan0, lan1, etc.) and present one interface to your package (or system for that matter) via lo0:1 is sound, but I think you still need OS support to do it which is officially not available on 10.20. Given enough time, I'm sure it can be hacked in though :)