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

DHCPv4 Client Host Names

By default, the DHCPv4 client does not supply its own host name, because the client expects the DHCP server to supply the host name. The DHCPv4 server is configured to supply host names to DHCPv4 clients by default. When you use the DHCPv4 client and server together, these defaults work well. However, when you use the DHCPv4 client with some third-party DHCP servers, the client might not receive a host name from the server. If the DHCP client does not receive a host name through DHCP, the client system checks the value that is set in the config/nodename property in the svc:/system/identity:node service for a name to use as the host name. If the file is empty, the host name is set to unknown.

If the DHCP server supplies a name in the DHCP Hostname option, the client uses that host name, even if a different value is placed in the value that is set in the config/nodename property in the svc:/system/identity:node service. If you want the client to use a specific host name, you can enable the client to request that name. See the following procedure.


Note - The following procedure does not work with all DHCP servers. Through this procedure you are requiring the client to send a specific host name to the DHCP server, and to expect the same name in return.

However, the DHCP server does not have to respect this request and many do not. They simply return a different name.


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

The steps to perform depend on whether an IP interface already exists with a DHCP address.

  1. Assume the root role or a role or user name that has been assigned to the DHCP Management profile.

    Roles contain authorizations and privileged commands. For more information about roles, see Initially Configuring RBAC (Task Map) in Oracle Solaris 11.1 Administration: Security Services. For more information about the DHCP Management profile, see How to Grant User Access to DHCP Commands

  2. If the IP interface already exists with a DHCP address, do the following:
    1. Delete the existing DHCP address.
      # ipadm delete-addr -r dhcp-addrobj
    2. Register a new DHCP address with a specific host name that you want to use.
      # ipadm create-addr -T dhcp -h hostname dhcp-addrobj
  3. If the IP interface does not yet exist, do the following:
    1. Create the IP interface.
      # ipadm create-ip interface
    2. Register a DHCP address with a specific host name that you want to use.
      # ipadm create-addr -T dhcp -h hostname dhcp-addrobj