Working With DHCP in Oracle® Solaris 11.2

Exit Print View

Updated: July 2014
 
 

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 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.2 . 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