JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Working With DHCP in Oracle Solaris 11.1     Oracle Solaris 11.1 Information Library
search filter icon
search icon

Document Information

Preface

1.  About DHCP (Overview)

2.  Administering the ISC DHCP Service

3.  Configuring and Administering the DHCP Client

About the DHCP Client

The DHCP Administrative Model

MAC Address and Client ID

Differences Between DHCPv4 and DHCPv6

DHCP Protocol Details

Logical Interfaces

Option Negotiation

Configuration Syntax

DHCP Client Startup

DHCPv6 Communication

How DHCP Client Protocols Manage Network Configuration Information

How the DHCPv4 Client Manages Network Configuration Information

How the DHCPv6 Client Manages Network Configuration Information

DHCP Client Shutdown

Enabling and Disabling a DHCP Client

How to Enable a DHCP Client

How to Disable a DHCP Client

DHCP Client Administration

ipadm Command Options Used With the DHCP Client

Setting DHCP Client Configuration Parameters

For DHCPv4

For DHCPv4 and DHCPv6

DHCP Client Systems With Multiple Network Interfaces

DHCPv4 Client Host Names

How to Enable a DHCPv4 Client to Request a Specific Host Name

DHCP Client Systems and Name Services

DHCP Client Event Scripts

4.  DHCP Commands and Files (Reference)

Index

DHCP Client Systems and Name Services

Oracle Solaris systems support the following name services: DNS, NIS, and a local file store (/etc/inet/hosts). Each name service requires some configuration before it is usable. The name-service/switch SMF service must also be appropriately configured. See the nsswitch.conf(4) man page for more information.

Before a DHCP client system can use a name service, you must configure the system as a client of the name service. By default, and unless configured otherwise during system installation, only local files are used.

The following table summarizes issues that are related to each name service and DHCP. The table includes cross-references to documentation that can help you set up clients for each name service.

Table 3-1 Name Service Client Setup Information for DHCP Client Systems

Name Service
Client Setup Information
NIS
If you are using DHCP to send Oracle Solaris network install information to a client system, you can use a configuration macro that contains the NISservs and NISdmain options. These options pass the IP addresses of NIS servers and the NIS domain name to the client. The client then automatically becomes an NIS client.

If a DHCP client system is already running Oracle Solaris, the NIS client is not automatically configured on that system when the DHCP server sends NIS information to the client.

If the DHCP server is configured to send NIS information to the DHCP client system, you can see the values given to the client if you use the dhcpinfo command on the client as follows:

# /usr/sbin/dhcpinfo NISdmain

# /usr/sbin/dhcpinfo NISservs


Note - For DHCPv6, include -v6 and different protocol keywords in the command as follows:

# /usr/sbin/dhcpinfo -v6 NISDomain

# /usr/sbin/dhcpinfo -v6 NISServers


Use the values returned for the NIS domain name and NIS servers when you set up the system as an NIS client.

You set up an NIS client for an DHCP client system in the standard way, as documented in Chapter 6, Setting Up and Configuring NIS (Tasks), in Oracle Solaris Administration: Naming and Directory Services.


Tip - You can write a script that uses dhcpinfo and ypinit to automate NIS client configuration on DHCP client systems.


/etc/inet/hosts
You must set up the /etc/inet/hosts file for a DHCP client system that is to use /etc/inet/hosts for its name service.

The DHCP client system's host name is added to its own /etc/inet/hosts file by the DHCP tools. However, you must manually add the host name to the /etc/inet/hosts files of other systems in the network. If the DHCP server system uses /etc/inet/hosts for name resolution, you must also manually add the client's host name on the system.

DNS
If the DHCP client system receives the DNS domain name through DHCP, then properties of the dns/client SMF service are also automatically configured. See Oracle Solaris Administration: Naming and Directory Services for more information about DNS.