System Administration Guide, Volume 3

How to Modify DHCP Option Properties (Command Line)

  1. Become superuser on the DHCP server system.

  2. Type a command using the following format:


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

    is the option name whose definition you want to change.

    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. For example, SUNW.Ultra-1 SUNW.i86pc.

    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.

    Note that you must specify all of the DHCP option properties with the -d switch, not just the properties you are changing.

    The following two commands are two examples:


    # dhtadm -M -s NewOpt -d 'Site,135,NUMBER,1,1'
    # dhtadm -M -s NewServ -d 'Vendor=SUNW.Ultra-1 SUNW.i86pc,200,IP,1,1'