Lu, Baolu wrote:
> Hi,
> 
> A simple question about the local zone.
> 
> How to make the local zone network interface get a dynamic ipv4 address?
> 
> For example, the global zone has one phisical network interface,
> e1000g0. 
> It gets the dynamic ipv4 address from the DHCP server located on another
> 
> server.
> 
> Does the following make sense?
> 
> ... ...
> zonecfg:my-zone> add net
> zonecfg:my-zone> set address=dhcp
> zonecfg:my-zone> set physical=e1000g0
> zonecfg:my-zone> end
> ... ...

I see the problem now.  When using this feature, you must not set the 
'address' parameter.  Instead, only set the 'physical' parameter.

You should specify the use of DHCP either in the zone's file /etc/sysidcfg 
before you boot the zone for the first time, or by using the zone's file 
/etc/dhcp.e1000g0.  See the man page for dhcp(5) for more information.

Also, note that a zone which uses this feature will have *exclusive* access to 
this NIC.  No other zone, even the global zone, will be able to use this NIC.



> This doesn't work for me on my system. 
> The local zone get a address of 192.168.74.200,
> while the global address is in the segment of 10.239.*.*
> 
> How to get this work?

-- 
--------------------------------------------------------------------------
Jeff VICTOR              Sun Microsystems            jeff.victor @ sun.com
OS Ambassador            Sr. Technical Specialist
Solaris 10 Zones FAQ:    http://www.opensolaris.org/os/community/zones/faq
--------------------------------------------------------------------------
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to