The Sun GUI DHCP server on Solaris 9 is hopelessly broken. I have wasted a day of time trying to create a scope for the network 10.1.0.0/24, only to be told every time that it is missing a table for 10.0.0.0.Using the dhcp manager:I am not trying to create a table for 10.0.0.0, I want one for 10.1.0.0/24. I've set /etc/netmasks, and nothing. This piece of junk obviously has some hard-coded assumptions about netmasks that are making it impossible to work with. Get the ISC dhcpd; in the long run, you'll be glad you did.root@sun5:/tmp$ pntadm -A 10.1.0.6 -c "sun6-tn" -i 010003BA10DEA9 -m sun5 -y 10.1.0.0 pntadm: Table for 10.0.0.0 does not exist.
# /usr/sadm/admin/bin/dhcpmgr
# pntadm -A $IPADDR -c "$COMMENT" -i $ID -m $MACRO -y $NETWORK
Parameter | Meaning |
---|---|
-A $IPADDR | add the ipaddress $IPADDR as the reserved IP |
-c "$COMMENT" | a comment describing this computer |
-i $ID | the client identifier, usually 01$MAC, where $MAC is the computer's ethernet address, without colons, any letters in the MAC must be CAPS |
-m $MACRO -y | the set of lease options to use (routers, DNS servers, lease timeouts etc), in most cases this defaults to the name of the dhcp server the -y parameter checks that the specified macro exists before adding the client defintion |
$NETWORK | the network to add this reservation to |
# pntadm -A 10.0.1.7 -c "netra 7" -i 010003AB107785 -m sunserver -y 10.0.1.0
# dhcpconfig -D -r SUNWfiles -p /var/dhcp
# /etc/init.d/dhcp stop
# dhtadm -A -m 10.1.0.0 -d ':Broadcst=10.1.0.255:Subnet=255.255.255.0:MTU=1500:'
# pntadm -C 10.1.0.0
# pntadm -A 10.1.0.6 -c "sun6-tn" -i 010003BA10DEA9 -m sun5 -y 10.1.0.0
# pntadm -r SUNWfiles -p /var/dhcp -A 10.1.0.90 10.1.0.0
# /etc/init.d/dhcp start
Having run into this problem myself, here's how I fixed it AND was able to use a whole bunch of different 10.x.x.x subnets on the dhcp server:Change the netmasks file on the machine /etc/netmasks so that this entry is first:Unconfirmed by me (our need for the Sun DHCP server has gone away), but useful to know for the future.AND ALSO change the netmasks file in NIS(nisplus)if you use that, even if it's not first in nsswitch.confPresto, gui works, file names back to normal.10.0.0.0 255.255.255.0