Remove a virtual interface in Solaris

Posted October 3, 2003 by Quinn McHenry in Solaris networking

Solaris allows multiple virtual or logical interfaces to exist with different IP addresses on the same physical interface. Virtual interfaces are created or plumbed up using the plumb directive in ifconfig. They are unplumbed using the unplumb directive.


To remove the virtual interface eri1:7, run the following command as root:

ifconfig eri1:7 unplumb

See also: Create a virtual interface in Solaris

 

About Quinn McHenry

Quinn was one of the original co-founders of Tech-Recipes. He is currently crafting iOS applications as a senior developer at Small Planet Digital in Brooklyn, New York.
View more articles by Quinn McHenry

The Conversation

Follow the reactions below and share your own thoughts.

  • Garry Garrett

    Uh, nice try, but if you run:

    # ifconfig eri1:7 unplumb

    It takes out ALL the eri1 interfaces (eri1, eri1:1, eri1:2, etc.). You would not think that it would, but it does. Perhaps more recent patches have fixed this behavior, but I’ve tried this sort of thing in the past with the unintended consequences of removing interfaces I did not intend to.