Ok, this is helpful and I'm able to make progress. I've installed the zone, configured the properties mentioned below and now booting it. What "Name service" should I be using ?
I come from Windows/Mac world where all these are defaulted and typically not required to be configured explicitly :) -Arun Bill Walker wrote: > Something like this should do the trick: > > host# zonecfg -z my-zone > zonecfg:my-zone> remove net physical=e1000g0 > zonecfg:my-zone> add net > zonecfg:my-zone:net> set address=192.168.0.99/24 > zonecfg:my-zone:net> set physical=e1000g0 > zonecfg:my-zone:net> end > zonecfg:my-zone> commit > zonecfg:my-zone> exit > host# > > > Arun Gupta wrote: >> Thanks! >> >> I prefer DHCP since I don't care about the IP address that is assigned >> to each zone. But willing to live with static IP as well. >> >> Any guidelines on how to set the IP for each zone ? >> >> -Arun >> >> Bill Walker wrote: >>> >>> So my question is this, why DHCP? If you are trying to assign an IP >>> at boot time of a zone, you could zonecfg the IP before you boot the >>> zone. I take it that you have a couple zones that might change IP >>> occasionally (or frequently). If the zone changes IP as part of a >>> zone reboot, then zonecfg is the easy solution. Zone down, zonecfg >>> remove net, zonecfg add net (set address and physical), zone boot. >>> >>> If you are really needing DHCP for some reason, I'll defer to others >>> with more experience in those realms. >>> >>> bill. >>> >>> >>> >>> Arun Gupta wrote: >>>> Hi Bill, >>>> >>>> That might be it and I'm new to all this :) >>>> >>>> End goal: Configure 2 non-global zones in a Open Solaris Virtual Box >>>> image and assign them addresses using DHCP server running in Global >>>> zone. >>>> >>>> What exact command would serve that purpose ? >>>> >>>> -Arun >>>> >>>> Bill Walker wrote: >>>>> Maybe I am missing something here, but wouldn't it be easier to do >>>>> that kind of thing with zonecfg? Unless you are changing some >>>>> other settings other than the IP... Just trying to understand the >>>>> end result you are looking for. >>>>> >>>>> bill. >>>>> >>>>> >>>>> Arun Gupta wrote: >>>>>> I'm looking for simple instructions to install zones, configure them >>>>>> as DHCP clients to the DHCP server in global zone (all in an >>>>>> OpenSolaris VM using Virtual Bx). The documentation at >>>>>> http://docs.sun.com/app/docs/doc/817-1592/ seems to quite involving >>>>>> and keeps referring to multiple pointers instead of providing >>>>>> consolidated docs. >>>>>> >>>>>> Are these instructions available any where ? >>>> >>> >> > -- Application Platform, Sun Microsystems, Inc. Blog: http://blogs.sun.com/arungupta _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org