IP Address Alias

From: Bill R. Williams (brwms@etsu.edu)
Date: Thu Jan 29 2004 - 17:29:23 EST


I am experienced in the generic U*IX systems (Linux, AIX, etc.);
however, I am really a novice in the specifics of Sun/Solaris 9
systems.
IOW: I have done no real configurational things to speak of on Solaris
-- our Suns were installed/configured by a vendor.

Now I need to add an IP Address alias to one of the Ethernet devices,
and do so without messing things up. (Critical demand server.)

I think I see how the 'ifconfig' (probably) works.
Here's how I think it should work:

Presuming that I have these fakey IP addresses:
-----------------------------------
# ifconfig OUTPUT
qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 111.222.33.101 netmask ffffff00 broadcast 111.222.33.255
qfe0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
        inet 111.222.33.102 netmask ffffff00 broadcast 111.222.33.255
-----------------------------------
There's already an alias as 111.222.33.102,
I want to add another alias as 111.222.33.103

I *think* I can define and bring online this alias with:
* ifconfig qfe0:2 111.222.33.103 netmask 255.255.255.0 up
(the 'ifconfig plumb' has already been done on base qfe0)

More importantly, this interface needs to come up at BOOT TIME
>From what I can gather this is what I need to see to:

* The /etc/network, /etc/netmask, and /etc/defaultrouter files
  already contain the proper settings for my fake '111.222.0.0'
  network.

* Add new, unique "IPAddress hostname" to /etc/hosts:
   111.222.33.103 bitbucket.localdomain bitbucket

* Create: /etc/hostname.qfe0:2 which contains:
   bitbucket
   
... Is that it? Just creating the hostname.DEV containing a name
matching an entry in /etc/hosts will bring the device online at boot
time? It can't be that simple.

-- 
 ---------------------------------------------
 Bill R. Williams               <brw@etsu.edu>
 ------------------------ ETSU Library Systems
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers


This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:27:55 EDT