Operating System - HP-UX
1833819 Members
2804 Online
110063 Solutions
New Discussion

Re: 2nd ip to lan interface card

 
SOLVED
Go to solution
Scott Ransted
Occasional Contributor

2nd ip to lan interface card

I've got a primary ip address assigned to lan1
INTERFACE_NAME[0]=lan1
IP_ADDRESS[0]=xx.xxx.xxx.xxx

I want to add a 2nd ip. Can I add it as:
INTERFACE_NAME[0]=lan1:1
IP_ADDRESS[0]=xx.xxx.xxx.xxx

I think this will work, but I need to be sure. I was able to add on the fly with ifconfig, but I need to verify that this will work at bootup.

Thanks
4 REPLIES 4
Craig Rants
Honored Contributor

Re: 2nd ip to lan interface card

Scott, been a while since I've done that, but looks like your good.

GL,
C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Sachin Patel
Honored Contributor
Solution

Re: 2nd ip to lan interface card

you need to change 0 to 1

INTERFACE_NAME[1]=lan1:1
IP_ADDRESS[1]=xx.xxx.xxx.xxx

Sachin
Is photography a hobby or another way to spend $
Craig Rants
Honored Contributor

Re: 2nd ip to lan interface card

Also, you may need to change the [0] to [1] etc...

C
"In theory, there is no difference between theory and practice. But, in practice, there is. " Jan L.A. van de Snepscheut
Jeff Schussele
Honored Contributor

Re: 2nd ip to lan interface card

Hi Scott,

Yep - just increment the index & you're good to go @ boot. If you need it ASAP then bounce the net daemon or run
ifconfig lan1:1 xx.xxx.xxx.xxx
ifconfig lan1:1 up
& off you go.
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!