SUMMARY: dhcpd in exclusive-IP zone

From: Gerard Henry <ghenry_at_cmi.univ-mrs.fr>
Date: Fri Nov 16 2007 - 12:39:35 EST
thanks to crist Clark for giving me the solution:
first using truss to see exactly what's happen, and discover that ISC 
dhcpd tries to open /dev/e1000g that doesn't exist into the zone, and 
add it with:
zonecfg:dhcp> add device
zonecfg:dhcp:device> set match=/dev/e1000g
zonecfg:dhcp:device> end

For Sun dhcpd, i have to add this param:
zonecfg:dhcp> set limitpriv="default,net_rawaccess"

if you don't want to be annoyed by this problem:
[ Nov 14 11:19:35 Executing start method ("/usr/lib/inet/in.dhcpd") ]
svc.startd could not set context for method: setppriv: Not owner

hth,

here is my original post:
> i have a t2000 with S10 08/07 and want to dedicate a zone to dhcpd service.
> This zone was configured according to:
> http://docs.sun.com/app/docs/doc/819-2450/z.config.ov-1?a=view
> 
> t2000-root% zonecfg -z dhcp export
> ...
> set ip-type=exclusive
> ...
> add net
> set physical=e1000g2
> end
> ...
> 
> t2000-root% dladm show-link
> e1000g2         type: non-vlan  mtu: 1500       device: e1000g2
> 
> t2000-root% dladm show-linkprop
> LINK         PROPERTY        VALUE          DEFAULT        POSSIBLE 
> 
> e1000g2      zone            dhcp           --             -- 
> 
> 
> but when i launch the service:
> /opt/csw/sbin/dhcpd -cf /etc/dhcpd.conf -lf /etc/dhcpd.leases -q e1000g2
> 
> i got this error:
> Nov 13 17:59:53 mary dhcpd: Can't open DLPI device for e1000g2: No such 
> file or directory
> 
> 
> Any chance to have this working?
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Fri Nov 16 12:39:56 2007

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:07 EST