Specifications
222 Chapter 14 Configuring and Managing Network Services
xinetd uses a different configuration file for each service it provides. In the
/etc/xinetd.d/ folder, there are configuration files for each service that xinetd
handles. If you were to enable ftp sharing, Mac OS X will modify the configuration file
/etc/xinetd.d/ftp. For more information about xinetd, see www.xinetd.org.
Managing DHCP Service
Dynamic Host Configuration Protocol (DHCP) service lets you administer and distribute
IP addresses and other configuration information to client computers from your server.
When you configure the DHCP server, you assign a block of IP addresses that can be
made available to clients.
Each time a client computer configured to use DHCP starts up, it looks for a DHCP
server on your network. If a DHCP server is found, the client computer requests an IP
address. The DHCP server checks for an available IP address and sends it to the client
computer along with a lease period (the length of time the client computer can use the
address) and configuration information.
Starting and Stopping DHCP Service
To start the service:
$ sudo serveradmin start dhcp
To stop the service:
$ sudo serveradmin stop dhcp
Viewing the Status of DHCP Service
To see summary status of the service:
$ sudo serveradmin status dhcp
To see detailed status of the service:
$ sudo serveradmin fullstatus dhcp
Viewing DHCP Service Settings
To view a setting:
$ sudo serveradmin settings dhcp:
setting
To view a group of settings:
You can view a group of settings that have part of their names in common by entering
as much of the name as you want, stopping at a colon (:), and entering an asterisk (*)
as a wildcard for the remaining parts of the name. For example:
$ sudo serveradmin settings dhcp:subnets:*
To view DHCP configuration settings:
$ sudo serveradmin settings dhcp