On Jan 28, 2008 2:21 PM, Sunil Sohani <[EMAIL PROTECTED]> wrote:
> Hi,
>
> With S10U4, can a zone be DHCP server?
> Thanks.

Contrary to what some others have said, S10U3 and later work with the
Sun DHCP server.  The tricks to make this happen include:

$ zonecfg -z dhcpzone info
. . .
limitpriv: default,net_rawaccess
. . .
device:
        match: /dev/ip

Within the zone:

# cat /etc/inet/dhcpsvc.conf
DAEMON_ENABLED=TRUE
RESOURCE=SUNWfiles
RUN_MODE=server
PATH=/var/dhcp
CONVER=1
LOGGING_FACILITY=3


A customized site/dhcp-server:default service was created that causes
in.dhcpd to start with an argument.  For example, in a primary ldom it
is currently running as:

/usr/lib/inet/in.dhcpd -i vsw0:1

This could likely be managed as an INTERFACES=... line in dhcpsvc.conf.

Note that the device access set in the zone configuration may open up
security holes between the global zone and non-global zones.  In the
event that root in the global zone and root in the non-global zone are
the same person, this is unlikely to be a concern.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to