Operating System - HP-UX
1833189 Members
3018 Online
110051 Solutions
New Discussion

Re: How to completely down and unplumb a Virtual IP address?

 
SOLVED
Go to solution
Alzhy
Honored Contributor

How to completely down and unplumb a Virtual IP address?


I configured virtual IP Address like this:

root# ifconfig lan0:1 134.234.133.89 netmask 255.255.255.0 up

After which that VIP is accessible on our network and netstat shows:

root# netstat -ian
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0:1 134. 134.234.133.0 134.234.133.89 58621 0 48260 0 0
lan0 134. 134.234.133.0 134.234.133.16 14698222 0 9475527 0 0
lo0 4136 127.0.0.0 127.0.0.1 9384 0 9384 0 0

I now want to "unplumb" this VIP so I can bring it up on a differenet server. I
do:

root# ifconfig lan0:1 down
root# ifconfig lan0:1 unplumb
Can't unplumb secondary interface

netstat -ian now shows:

root@fhp007a # netstat -ian
Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Coll
lan0:1* 134. 134.234.133.0 134.234.133.89 58621 0 48260 0 0
lan0 134. 134.234.133.0 134.234.133.16 14698222 0 9475527 0 0
lo0 4136 127.0.0.0 127.0.0.1 9384 0 9384 0 0

The IP Address isno longer pinable from the outside BUT is still pingable on
the server - and it still shows as bound.

How do I completely disable the VIP so it no longer appears as bound?

Can I just ignore this and simply bring up the VIP on another server? If the for
mer VIP host still has it plumbed and can ping internally, will it be able to ac
cess the VIP once it is brought up on a different server?


Hakuna Matata.
2 REPLIES 2
RAC_1
Honored Contributor
Solution

Re: How to completely down and unplumb a Virtual IP address?

man ifconfig

You will have to assign ip addr 0.0.0.0 to it

ifconfig lan0:1 0.0.0.0 up
ifconfig lan0:1 0.0.0.0 down

From man page

unplumb Tear down the Streams plumbing for
a primary interface name. (See
the Interface Naming subsection
given below.) Secondary interface
does not require "plumbing". A
secondary IPv4 interface can be
removed by assigning an IP address
of 0.0.0.0 to it. Remove a
secondary IPv6 interface by
assigning an IP address of :: to
it.


Anil
There is no substitute to HARDWORK
Alzhy
Honored Contributor

Re: How to completely down and unplumb a Virtual IP address?

Thanks.. it was in the man page after all!
Hakuna Matata.