Operating System - HP-UX
1834178 Members
2513 Online
110064 Solutions
New Discussion

Adding secondary IP to LAN

 
SOLVED
Go to solution
MikeL_4
Super Advisor

Adding secondary IP to LAN

I have been asked to add a second IP onto one of our lan interfaces, which I believe the correct format would be:

ifconfig lan4:1 172.17.101.187 netmask 255.255.255.192

or I guess I could use sam's: Add IP Logical Interface...

Is this correct for adding ?? and if I had to remove the secondary IP how would I do that ?
4 REPLIES 4
James George_1
Trusted Contributor
Solution

Re: Adding secondary IP to LAN

Hi

ifconfig lan4:1 172.17.101.187 netmask x.x.x.x broadcast x.x.x.x up

rgds/ James
forum is for techies .....heaven is for those who are born again !!
MikeL_4
Super Advisor

Re: Adding secondary IP to LAN

Thanks James..

How would I know what the broadcast address is ?
Ivan Krastev
Honored Contributor

Re: Adding secondary IP to LAN

Here is brief description how to assign virtual ip addresses - http://docs.hp.com/en/B2355-90796/ch06s11.html

And from ifconfig manual - A secondary IPv4 interface can be removed by assigning an IP address of 0.0.0.0 to it.


regards,
ivan
MikeL_4
Super Advisor

Re: Adding secondary IP to LAN

Thanks