Hi Jack,

* Jack Schwartz ([email protected]) wrote:
>  Hi Dave and Ethan.
> 
> I wanted to run by you the algorithm for getting the proper IP
> addresses for the Derived Manifests project, to make sure I've got
> my bases covered.
> 
> For the benefit of others: the IP addresses will be part of the
> environment set up by the Derived Manifests Module (DMM).  The DMM
> will then run a script which can call a utility (aimanifest) to make
> system-specific customizations to a manifest before AI installs from
> it.
> 
> The design spec allows for only one IP address to be propagated in
> the environment: SI_HOSTADDR.  However, there could be a system with
> multiple host adapters connected, and so there can be multiple
> addresses.  My algorithm addresses this and introduces numbered host
> addresses and an environment variable that returns the number of
> host addresses.

It isn't clear to me, but does your algorithm take into account
interfaces like the one virtualbox sets up for instance?

glaga...@praetorian % ipadm show-if
~
IFNAME     STATE    CURRENT      PERSISTENT
lo0        ok       -m-v------46 ---
vboxnet0   ok       bm--------4- ---
yge0       ok       bm--------4- ---

vboxnet0 is certainly not an interface that you'd want to use even
though it's configured like any other interface.

glaga...@praetorian % ifconfig -a
~
lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu
8232 index 1
        inet 127.0.0.1 netmask ff000000 
vboxnet0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu
1500 index 2
        inet 192.168.56.1 netmask ffffff00 broadcast 192.168.56.255
yge0: flags=1000943<UP,BROADCAST,RUNNING,PROMISC,MULTICAST,IPv4> mtu
1500 index 3
        inet 10.137.224.25 netmask fffffc00 broadcast 10.137.227.255
lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu
8252 index 1
        inet6 ::1/128 

Cheers,

Glenn
_______________________________________________
caiman-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/caiman-discuss

Reply via email to