Operating System - HP-UX
1827769 Members
2657 Online
109969 Solutions
New Discussion

Multiple IP for single lan card

 

Multiple IP for single lan card

Hi all,

I have a D-210 with 10.10 version loaded.
I want to configure my lan card for another IP
So that two different networks can access my system. There is no option for giving it a logical ip from SAM, nor I am able to do it from ifconfig. Please let me know If any patch is required to get the option.
The swlist of my server is

B2435AA_APS B.10.01 HP COBOL/UX Run-Time Bundle for HPUX 10.0 (S800)

B3919BA_AGN B.10.10 HP-UX 32-User
License

B3920BA B.10.10 HP-UX Media Kit

DCEProg B.10.10 DCE Programming and Archive Libraries

HPUXEngRT800 B.10.10 English non-Graphics Runtime HP-U
X Environment

Y2K-1010S800 B.10.10.B0412 HP-UX Core OS Year 2000 Patch Bun
dle
#
# Product(s) not contained in a Bundle:
#

PHCO_18131 B.10.00.00.AA Year 2000 HP-UX Operating System Patch Tool


Thanks
Prosanjit
10 REPLIES 10
Tommy Palo
Trusted Contributor

Re: Multiple IP for single lan card

Have you tried "route add" for this purpose ?
see "man route"
Keep it simple
Paula J Frazer-Campbell
Honored Contributor

Re: Multiple IP for single lan card

Hi

See the file /etc/rc.config.d/netconf which is used for routing.

Paula
If you can spell SysAdmin then you is one - anon
Sandor Horvath_2
Valued Contributor

Re: Multiple IP for single lan card

Hi !

If You like use one LAN card with 2 IP address try it:
1, add new hostname and IP to /etc/hosts
2, use ifconfig lanx:y interface
x is lan driver number may be lan0
y is logical id may be 1

regards, saa
If no problem, don't fixed it.

Re: Multiple IP for single lan card

Thanks Sandor,
I have tried ifconfig but it gives error
no such interface
bye
Andreas Voss
Honored Contributor

Re: Multiple IP for single lan card

Hi,

to use multiple ip addresses you have to use the ifalias command.

For this feature you have to install the patch:

Patch Name: PHNE_7108
Patch Description: s700_800 10.10 'ifalias' command for IP address aliasing

Regards

Re: Multiple IP for single lan card

Thanks Andreas,
I have already loaded the patch and able to use
the ifalias command. But It is not working for different network. For ex. I have 192 network
and I want to give second ip of 10 network.
It gives ioctl error saying cannot assign requested address.

Thanks
Prosanjit
Sandor Horvath_2
Valued Contributor

Re: Multiple IP for single lan card

Sorry !

Which I wrote it work only HP-UX 11 .

Saa
If no problem, don't fixed it.
melvyn burnard
Honored Contributor

Re: Multiple IP for single lan card

Unfortunately, the 10.01 and 10.10 versions of the ifalias patch only allow Ip addresses on the SAME subnet.
To have the abaility to allow DIFFERENT subnets on the same card, you need HP-UX 10.20 with PHNE_12492 and dependencies, or go to HP-UX 11.x where this is built in to the ifconfig command.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Andreas Voss
Honored Contributor

Re: Multiple IP for single lan card

Hi,

found this from a document:

Problem Description

Can a single hp 10/100 or 10 Base T IEEE 802.3 lan card be configured
with two unique ip addresses? (I have two lan cards in a k460, one as a
class C and the other a class A address, but can I use the same card?)
If yes, please advise me on process.

Configuration Info

Operating System - HPUX
Version - 10.20
Hardware System - HP 9000
Series - K220

Solution

It is possible on a 10.20 system to assign multiple IP addresses
belonging to different subnets to the same lanic using a utility called
ifalias.
This will not work on 10.01 or 10.10 systems !!

Regards
Mike McJunkin
New Member

Re: Multiple IP for single lan card

I was able to use the ifalias command under 10.20 for different networks (migrating from a licensed B class address space to the "10 space" addresses. We even had different subnet masks on the two networks. The trick is setting up static routes on the host box. I.e., you have to explicitely identify routes from local host to "each of the interfaces", then to each of the networks, and each gateway. Plus you still need to pick one or the other as the true default gateway.