Operating System - HP-UX
1833780 Members
2083 Online
110063 Solutions
New Discussion

HP-UX 9.01: 2 addresses for one server?

 
Michael Bluemm
Frequent Advisor

HP-UX 9.01: 2 addresses for one server?

Hi,
we want to change network-addresses.
is it possible, that one server gets two different addresses at the same time?
If yes, in which files do I fill in the address -
with and without sam.
Thanks,
Michael
... still trying ...
5 REPLIES 5
Alexander M. Ermes
Honored Contributor

Re: HP-UX 9.01: 2 addresses for one server?

Hi there.
Yes it is possible, if you have two lan cards.
You can configure these cards with sam ( easiest way ). Other way is ifconfig.
rgds
Alexander M. Ermes
.. and all these memories are going to vanish like tears in the rain! final words from Rutger Hauer in "Blade Runner"
Stefan Farrelly
Honored Contributor

Re: HP-UX 9.01: 2 addresses for one server?


For HP-UX 10.20. you need to install a patch giving you the ifalias command which allows 2 IP's on the one NIC, for 11.0 you can do it with the ifconfig command but for 9.01 there is no official HP supported way, but you can download some shareware code to do it. Here is the link for what you need;

http://www.limitless.co.uk/hp-ifalias.lml
Im from Palmerston North, New Zealand, but somehow ended up in London...
Vincenzo Restuccia
Honored Contributor

Re: HP-UX 9.01: 2 addresses for one server?

Sorry Alexander it is possible also you have one lan.
# sam
->Networking and communication
->Network Interface Cards
[Select your NIC card]
Actions -> Modify



Michael Bluemm
Frequent Advisor

Re: HP-UX 9.01: 2 addresses for one server?

Alex,
thanks,
I've got just 1 lan-card, but i hope there is a solution

----------------------------------------------------------------------

Hi Stefan,
thank you for your help.
I tried your link, but the server with the 9.0-Patch was unreachable for hours. In the instruction was a restriction, thah the patch would only work, if the alias was "in the same subnet as the real IP-address". In my case the Address is 131.0.X.X, the new, additional should be 10.30.X.X. So it could be a problem. I have to look for another solution perhaps.

-------------------------------------------------------------------------

Hi Vincenzo,

I tried your solution and I got some problems.
In detail:
Starting sam --> Networking --> Network Card Configuration (! not 'Network Interface Cards') -->
"Enter name"
I gave him the same name, I read:
There is already an entry in the host table and it's IP-address is 131.0.X.X. you may cause unpredictible system behavior
- so I didnt.
I entered a new name, the process exited.

Perhaps there is a solution, perhaps the system has an age, as everybody was lucky to have one net, nobody thought, you could afford two nets.


... still trying ...
Peggy Fong
Respected Contributor

Re: HP-UX 9.01: 2 addresses for one server?

Michael,

Wow - 9.01 that's a little behind... at 9.04 I had servers with 2 lan cards on 2 different subnets on one host. First I configured each lan card in /etc/netlinkrc (I believe that was the file name). They each had the same subnet mask (at the time we used 255.255.255.0 but it depends on your class). I had a default route that corresponded to one ip address at a time. I could change the default route if there was a failure on the lan. I used DNS and had one hostname with 2 ip address associated with it. The ip address would round-robin whenever access to the host from outside used DNS. Some admins will set up the primary lan card to match the hostname and ip address and the 2d lan card to have a different hostname that doesn't match the system/node/host name.

Using /etc/nsswitch.conf is nice at 10.X and above. I believe there was a patch at some 9.X release to provide that functionality as well.

Good Luck!
Peggy