How to configure a Solaris system as a DHCP serverIntro
This document provides a simple guide to configuring a Solaris system as a DHCP server using the software supplied with the operating system. The command line interface isused thoughout, no reference made to the Sun's GUI tool 'dhcpmgr'. This procedure was performed on a Solaris 9 system, though it is likely also applicable to Solaris 7 & 8.The dhcp server setup here serves a single network, makes no effort to register names inany naming service, and does not enable BOOTP.
You should have the 3 basic DHCP packages installed;
# pkginfo | grep DHCPsystem SUNWdhcsb Binary File Format Data Module for BOOTP/DHCP Servicessystem SUNWdhcsr BOOTP/DHCP Server Services, (Root)system SUNWdhcsu BOOTP/DHCP Server Services, (Usr)
1.Create basic DHCP configuration and dhcptab files2.Create a macro for the local network 3.Create the local network table4.Add some entries to the network table5.Start the DHCP server
1. Basic DHCP Configuration
Use dhcpconfig to setup dhcpsvc.conf and dhcptab, here we simply define the type of datastore (SUNWfiles = text files) and the location of datafiles;
# dhcpconfig -D -r SUNWfiles -p /var/dhcp
2. Create a macro for the local network
Here we create a macro for our local network ( the one we will serve IP addresses for) indhcptab
# dhtadm -A -m 188.8.131.52 -d':Broadcst=184.108.40.206:Subnet=255.255.255.0:MTU=1500:'