System Administration Guide, Volume 3

How to Create DHCP Options (Command Line)

  1. Become superuser on the DHCP server system.

  2. Type a command using the following format:


    # dhtadm -A -s option-name-d 'category,code,data-type,granularity,maximum'
    
    option-name

    is an alphanumeric string of eight characters or less.

    category

    is Site, Extend, or Vendor=list-of-classes, and list-of-classes is a space-separated list of vendor client classes to which the option applies. See Table 11-9 for a information about determining the vendor client class.

    code

    is a numeric value appropriate to the option category, as explained in Table 11-9

    data-type

    is ASCII, IP, BOOLEAN, NUMBER, or OCTET

    granularity

    is a non-negative number, as explained in Table 11-9

    maximum

    is a non-negative number, as explained in Table 11-9

    The following two commands are two examples:


    # dhtadm -A -s NewOpt -d 'Site,130,NUMBER,1,1'
    # dhtadm -A -s NewServ -d 'Vendor=SUNW.Ultra-1 SUNW.SPARCstation10,200,IP,1,1'