[zones-discuss] Use Hostname in add net, set address

2011-07-20 Thread GGallagher
Is it supported to use a hostname rather than an IP address when creating a new 
interface for a zone?  This will not be the primary interface for the zone. 

I have a need to do this because the IP address needs to change when we bring 
this zone up at our DR site.  The primary interface is managed by a Sun Cluster 
Logical Hostname resource.  Different cluster at DR, so we are able to define a 
different IP for the logical hostname. I'd rather define any additional 
virtual interfaces at the zone layer, hence my need to put a hostname, rather 
than an IP address in the zone config.
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Use Hostname in add net, set address

2011-07-20 Thread Frank Batschulat
On Wed, 20 Jul 2011 18:08:28 +0200, GGallagher  
gerald_gallag...@vanguard.com wrote:


Is it supported to use a hostname rather than an IP address when  
creating a new interface for a zone?  This will not be the primary  
interface for the zone.


I have a need to do this because the IP address needs to change when we  
bring this zone up at our DR site.  The primary interface is managed by  
a Sun Cluster Logical Hostname resource.  Different cluster at DR, so we  
are able to define a different IP for the logical hostname. I'd rather  
define any additional virtual interfaces at the zone layer, hence my  
need to put a hostname, rather than an IP address in the zone config.


Yes, see zonecfg(1m)

 net: address, allowed-address, configure-allowed-address,
 physical, defrouter

 The net resource represents the assignment of a physical
 network  resource to a zone. The resource must exists in
 the global zone prior to the assignment.

 The network address and physical interface name  of  the
 network interface. The network address is one of:

 oa valid IPv4 address,  optionally  followed  by
  / and a prefix length;

 oa valid IPv6 address, which must be followed by
  / and a prefix length;

 oa host name which resolves to an IPv4 address.
^^
 Note that host names that resolve to IPv6 addresses  are
 not supported.


--
frankB

Solaris Core OS Development, Zones Team
___
zones-discuss mailing list
zones-discuss@opensolaris.org


Re: [zones-discuss] Use Hostname in add net, set address

2011-07-20 Thread GGallagher
Ah, thank you. For some reason it never occurred to me to RTFM for 'zonecfg'.
-- 
This message posted from opensolaris.org
___
zones-discuss mailing list
zones-discuss@opensolaris.org