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