On Feb 8, 2012, at 5:13 PM, Will Fiveash wrote:

> I used to be able to configure zones a while back but now I'm stumped
> (using released S11).  What I want is a set of zones, each with a unique
> IP address such that they can ping each other and the global zone.  I used to 
> use a zonecfg
> of:
> 
> create
> set zonepath=/zone/newzone
> set limitpriv="default,dtrace_proc,dtrace_user"
> add net
> set physical=nge0
> set address=10.0.0.2/8
> end
> commit
> exit

If you want to do it this way you need to add

        set ip-type=shared

since the default for the solaris brand is now exclusive. With exclusive you 
can't set the IP address this way. You need to use the anet resource instead.

--Glenn

> 
> and that did want I want.  Now I see:
> 
> n line 19 of /tmp/createzone.qEaOyF:
> net: address cannot be specified if ip-type = exclusive
> ip-type is set to 'exclusive' by default.
> Zone master failed to verify
> master: Invalid argument
> 
> Note that in the global zone:
> $ ifconfig -a
> lo0: flags=2001000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4,VIRTUAL> mtu 8232 
> index 1
>       inet 127.0.0.1 netmask ff000000 
> nge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>       inet 10.135.188.58 netmask fffffc00 broadcast 10.135.191.255
> nge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
>       inet 10.0.0.1 netmask fffffc00 broadcast 10.0.3.255
> vboxnet0: flags=201000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4,CoS> mtu 1500 
> index 3
>       inet 192.168.56.1 netmask ffffff00 broadcast 192.168.56.255
> lo0: flags=2002000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL> mtu 8252 
> index 1
>       inet6 ::1/128 
> 
> nge0:1 is the interface I use to get to the other zones.
> 
> Any help is appreciated.
> 
> -- 
> Will Fiveash
> Oracle Solaris Software Engineer
> http://opensolaris.org/os/project/kerberos/
> Sent using mutt, a sweet, text based e-mail app <http://www.mutt.org/>
> _______________________________________________
> zones-discuss mailing list
> zones-discuss@opensolaris.org

Glenn Faden | Senior Principal Software Engineer
Phone: +1 408 276-6884 | Mobile: +1 415 637 8181 
Oracle Solaris Security, Solaris Core OS Technology Engineering

_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to