How-To: Create Solaris Virtual/Alias Interface
by dervish on Sep.25, 2009, under Networking, Solaris
1. Copy existing interface to new interface.
cp /etc/hostname.ce0 /etc/hostname.ce0:1
2. Edit the new hosntaname file and change the old hostname to the new one.
Example: server-ce0 to server-ce0-v1
3. Use the ifconfig plumb option to create the new interface.
ifconfig ce0:1 plumb
4. Assign the IP Address to the new interface.
ifconfig ce0:1 10.35.129.134 netmask 255.255.255.128 up
5. Verify interface is up and functional.
ifconfig -a
ce0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.35.129.134 netmask ffffff80 broadcast 10.255.255.255
6. Add new IP Address to /etc/hosts
<10.35.129.134 server-ce0-v1
To delete the interface:
ifconfig ce0:1 unplumb
Leave a Reply
You must be logged in to post a comment.