13Working With Network Services

13

Commands you can use to manage DHCP, DNS, Firewall, NAT, and VPN service in Mac OS X Server.

DHCP Service

Starting and Stopping DHCP Service

To start DHCP service:

$ sudo serveradmin start dhcp

To stop DHCP service:

$ sudo serveradmin stop dhcp

Checking the Status of DHCP Service

To see summary status of DHCP service:

$ sudo serveradmin status dhcp

To see detailed status of DHCP service:

$ sudo serveradmin fullstatus dhcp

Viewing DHCP Service Settings

To list DHCP service configuration settings:

$ sudo serveradmin settings dhcp

To list a particular setting:

$ sudo serveradmin settings dhcp:setting

To list a group of settings:

You can list a group of settings that have part of their names in common by typing only as much of the name as you want, stopping at a colon (:), and typing an asterisk

(*) as a wildcard for the remaining parts of the name. For example,

$ sudo serveradmin settings dhcp:subnets:*

129

Page 129
Image 129
Apple oxs manual Starting and Stopping Dhcp Service, Checking the Status of Dhcp Service, Viewing Dhcp Service Settings