SUMMARY: Unplumb on ix86 2.5.1

From: <Andy_Bach_at_wiwb.uscourts.gov>
Date: Thu Feb 28 2002 - 21:31:13 EST
The answer (thanks to Darren Dunham):

For Solaris 7 and below....

To instantiate a virtual interface:
ifconfig xxx:1 a.b.c.d up
To remove a virtual interface:
ifconfig xxx:1 0.0.0.0 down

For Solaris 8 and up....

To instantiate a virtual interface:
ifconfig xxx:1 plumb a.b.c.d up
To remove a virtual interface:
ifconfig xxx:1 unplumb

The plumb/unplumb behavior was changed to make "real" and "virtual"
interfaces more similar for scripts and the like.  You do not
plumb/unplumb virtual interfaces until Solaris 8.


That is -
ifconfig lo0:1 0.0.0.0 down

setting the IP to 0 makes it go away.

Thanks!

a


> Installing the latest bind, I found I had to set up the system tests by 
> hand. They add 5 interfaces to the lo/loopback interfaces w/ 10.53.0.x 
> addresses. The ifconfig.sh script didn't have entries for x86 solaris 
(we 
> use v2.5.1 - no snickering), but:
> for i in 1 2 3 4 5
> do
>    ifconfig lo0:$i 10.53.0.$i netmask +
> done
> worked to install them and let the test work, e.g.: 
> ifconfig -a
> lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
>         inet 127.0.0.1 netmask ff000000
> lo0:1: flags=8d0<POINTOPOINT,RUNNING,NOARP,MULTICAST> mtu 8232
>         inet 10.53.0.1 --> 0.0.0.0 netmask ffffffff
> 
>  However, trying to remove them by:
> for i in 1 2 3 4 5
> do
>    ifconfig lo0:$i 10.53.0.$i down
>    ifconfig lo0:$i 10.53.0.$i unplumb
> done
> 
> Brings them off line but:
> ifconfig: I_PUNLINK for ip: lo0:1: Invalid argument
> 
> for each unplumb. Also tried just:
> ifconfig lo0:1 unplumb
> ifconfig -ad unplumb
> 
> I believe:
> ifconfig unplumb
> work, but it removes all interfaces, which isn't really what I want in a 

> test script.  Anybody know how to unplumb (remove from ifconfig -a) an 
> interface on x86?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Feb 28 20:34:27 2002

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:42:35 EST