Solaris: Virtual Interface Creation / Deletion

To add virtual interface

1. Add entry in /etc/hosts

# ifconfig eri0 addif broadcast up

3. Create /etc/hostname.eri0:xx with domain name as its content (where xx is next available no for virtual NIC, verify that using ifconfig -a command)


1. Add statement to /etc/hostname.ce5 file

2. # ifconfig hme0 addif ip_address netmask + broadcast + up

To remove virtual interface

1. # ifconfig hme0 removeif ip_address_of_virtual_interface

2. # edit /etc/hostname.<driver> file to remove the entry

To remove virtual interface which is not up or have been used with same IP address


ge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet netmask ffffff00 broadcast

ge0:77: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4< mtu 1500 index 2
inet netmask ffffff00 broadcast

To remove interface ge0:77 which is not up

ifconfig ge0:77 unplumb

Leave a Reply

Your email address will not be published. Required fields are marked *

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.