System Administration Guide, Volume 3

DHCP Commands

The following table lists the commands you might find useful in managing DHCP on your network.

Table 13-1 Commands Used in DHCP
 Command Man Page Command Description
dhtadm(1M)

Used to make changes to the options and macros in the dhcptab file. This command is most useful in scripts that you create to automate changes you need to make to your DHCP information. Use dhtadm with the -P option and pipe it through the grep command for a quick way to search for particular option values in the data base.

pntadm(1M)Used to make changes to the DHCP network tables that map client IDs to IP addresses and optionally associate configuration information with IP addresses.
dhcpconfig(1M)Used to configure and unconfigure DHCP servers and BOOTP relay agents. dhcpconfig uses dhtadm and pntadm to create and make changes to dhcptab and DHCP network tables.
in.dhcpd(1M)The DHCP server daemon. This command is used by /etc/init.d/dhcp, the DHCP service startup and shutdown script. You can start in.dhcpd with non-default options, such as -d for debugging.
dhcpmgr(1M)The DHCP Manager, a graphical tool used to configure and manage the DHCP service. DHCP Manager is the recommended Solaris DHCP management tool.
ifconfig(1M)Used at system boot to assign IP addresses to network interfaces, configure network interface parameters or both. On a Solaris DHCP client, ifconfig starts DHCP to get the parameters (including the IP address) needed to configure a network interface.
dhcpinfo(1)Used by system startup scripts on client machines to obtain information (such as hostname) from the DHCP client daemon (dhcpagent) . You can also use dhcpinfo in scripts or at the command line to obtain specified parameter values.
snoop(1M)Used to capture and display the contents of packets being passed across the network. snoop is useful for troubleshooting problems with the DHCP service.
dhcpagent(1M)The DHCP client daemon, which implements the client side of the DHCP protocol.