Go to main content

Working With DHCP in Oracle® Solaris 11.3

Exit Print View

Updated: October 2017
 
 

How to Modify the Configuration of the DHCP Service

  1. Assume an appropriate role.

    Assume a role that can grant the DHCP Management profile to users. If the DHCP Management profile has not been assigned to a user, assume the root role.

    Roles contain authorizations and privileged commands. For more information about roles, see Creating a Role in Securing Users and Processes in Oracle Solaris 11.3. For more information about the DHCP Management profile, see How to Grant User Access to DHCP Commands.

  2. Edit the DHCP configuration file.
    • IPv4: /etc/inet/dhcpd4.conf

    • IPv6: /etc/inet/dhcpd6.conf

    For more information, see the dhcpd.conf (7) man page.

  3. Restart the SMF service.
    # svcadm restart service

    service can be one of the following values:

    svc:/network/dhcp/server:ipv4

    Provides DHCP and BOOTP requests from IPv4 clients

    svc:/network/dhcp/server:ipv6

    Provides DHCP and BOOTP requests from IPv6 clients

    svc:/network/dhcp/relay:ipv4

    Relays DHCP and BOOTP requests from IPv4 clients to a network with a DHCP server

    svc:/network/dhcp/relay:ipv6

    Relays DHCP and BOOTP requests from IPv6 clients to a network with a DHCP server