Getting machine's IP address from process in non-global zone

Hi,

I was just wondering if it was possible for a process or application running in a non-global zone to ascertain the IP address of the underlying host?

For example, if the Solaris machine is located at 192.168.10.86, and I set up three zones that have addresses 192.168.10.248, 249, and 250, but all use the same solitary physical NIC, is there any way for these processes to know that they are on the same machine (by way of getting the IP of the underlying physical host, i.e. 192.168.10.86)? If not the IP address, is there another identifier specific to the machine as a whole that is accessible from non-global zones?

Many thanks in advance.

[673 byte] By [jimboda] at [2007-11-27 4:06:06]
# 1
No. This is the point of the "containers / zones". You can not gather any information about any other zone from a none-global zone.
jemurraya at 2007-7-12 9:11:08 > top of Java-index,Solaris Operating System,Solaris 10 Features...
# 2

Actually the "arp" interface provides some details about the underlying IP addresses of the machine. If you run "arp -a | grep SP" from the zone, you'll get all the IP addresses on the machine (if you're using IPMP it will be the two private ones, the public one and all the other zones). Unless there is a naming standard that makes it obvious, you still can't tell which one if the global and which ones local, but it's a start.

I don't think it was a design criteria of zones to absolutely conceal these sorts of bits of information -- just to provide security isolation so that the localzone cannot do bad things to either the global zone or other local zones.

MichaelMyersa at 2007-7-12 9:11:08 > top of Java-index,Solaris Operating System,Solaris 10 Features...