unix

How do I create a virtual interface on my Solaris server?

To create a virtual interface on a Solaris server, you can use the command below:

ifconfig hme0:1 plumb

ifconfig ce0:1 10.10.10.10 netmask 255.255.255.0 broadcast + up

ifconfig -a

To make the virtual interface persist across reboots, you need to create /etc/hostname.hme0:1.

echo “myserver” > /etc/hostname.hme0:1

echo “10.10.10.10 myserver myserver.mydomain.com” >> /etc/inet/hosts

Click to comment

Leave a Reply

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

To Top