Become superuser or assume a role or user name that is assigned to the DHCP Management profile.
For more information about the DHCP Management profile, see Setting Up User Access to DHCP Commands.
Roles contain authorizations and privileged commands. For more information about roles, see Configuring RBAC (Task Map) in System Administration Guide: Security Services.
Create a DHCP option by typing a command using the following format:
# dhtadm -A -s option-name -d 'category,code,data-type,granularity,maximum' -g
Is an alphanumeric string of 128 characters of less.
Is one of the following: Site, Extend, or Vendor=list-of-classes. list-of-classes is a space-separated list of vendor client classes to which the option applies. See Table 15–5 for information about how to determine the vendor client class.
Is a numeric value that is appropriate to the option category, as explained in Table 15–5.
Is specified by a keyword that indicates the type of data that is passed with the option, as explained in Table 15–5.
Is specified as a nonnegative number, as explained in Table 15–5.
Is a nonnegative number, as explained in Table 15–5.
The following command would create an option called NewOpt, which is a Site category option. The option's code is 130. The option's value can be set to a single 8-bit unsigned integer.
# dhtadm -A -s NewOpt -d 'Site,130,UNUMBER8,1,1' -g
The following command would create an option called NewServ, which is a Vendor category option that applies to clients whose machine type is SUNW,Sun-Blade-100 or SUNW,Sun-Blade-1000. The option's code is 200. The option's value can be set to one IP address.
# dhtadm -A -s NewServ -d 'Vendor=SUNW.Sun-Blade-100 \ SUNW.Sun-Blade-1000,200,IP,1,1' -g