ciphermethod.com

How-To: Create Solaris Virtual/Alias Interface

by 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

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

ping 10.35.129.134
10.35.129.134 is alive

6. Add new IP Address to /etc/hosts

<10.35.129.134        server-ce0-v1

To delete the interface:

ifconfig ce0:1 unplumb

No comments for this entry yet...

Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

But Wait, There's More!

A few highly recommended friends...