Operating System - HP-UX
1837835 Members
2445 Online
110121 Solutions
New Discussion

Multiple IP's on NIC (diff locations)

 
Russ McGinley
Advisor

Multiple IP's on NIC (diff locations)

I've got a few workstations that reside in a different location than where I'm at. Occasionally they have to ship the workstations back for an upgrade or for me to fix something that I can't normally fix via the network.

Is there any way to have 2 IP's configured to the same network card, even though they're on different subnet's?

3 REPLIES 3
harry d brown jr
Honored Contributor

Re: Multiple IP's on NIC (diff locations)

You could use dhcp or bootp - which I wouldn't do!

Or you could get a "router" that will allow you to repair your workstations without having to mess with the ip's.


live free or die
harry
Live Free or Die
Sanjay_6
Honored Contributor

Re: Multiple IP's on NIC (diff locations)

Hi Russ,

Use the ifalias command to assign multiple ip's to the same network command.

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000049809673

If you are using 11.0, you should use ifconfig since ifalias has been discontinued from 10.30 onwars.

http://support1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000047257345

Hope this helps.

Regds
Sajid_1
Honored Contributor

Re: Multiple IP's on NIC (diff locations)

hi,

1) Yes you can configure 2 IP's in the same NIC using the Ip instances. Edit the /etc/rc.config.d/netconf file and add entries like this:
INTERFACE_NAME[0]=lan0:0 (which is same as lan0)
IP_ADDRESS[0]=X.X.X.X
....other options...

INTERFACE_NAME[1]=lan0:1
IP_ADDRESS[1]=X.X.X.X
..options ..

Then restart the system or the net daemons.

2) For your issue, you really don't need this if you have a router between the different subnets or if you can add the route commands.
learn unix ..