Configure a Vendor Class

About this task

Perform this procedure to configure a vendor class. If the string matches the vendor class identifier (VCI) provided by the DHCP client, then the DHCP client is part of that vendor class.

Note

Note

The switch follows inheritance and precedence rules for configured DHCP Server options. For more information, see DHCP Server.

Procedure

  1. Enter Global Configuration mode:

    enable

    configure terminal

  2. Create the vendor class that matches the specified VCI:

    ip dhcp-server vendor-class <1-255> matches WORD<1-128>

  3. Optional: Configure the TFTP server parameters that you want the vendor class to use:

    ip dhcp-server vendor-class <1-255> tftp server-ip {A.B.C.D}

    ip dhcp-server vendor-class <1-255> tftp server-name WORD<0-64>

    ip dhcp-server vendor-class <1-255> tftp boot-file-name WORD<0-128>

  4. Optional: Configure a domain name that you want the vendor class to use:

    ip dhcp-server vendor-class <1-255> domain-name WORD<1-128>

Example

Configure a vendor class:

Switch:1>enable
Switch:1#config t
Switch:1(config)#ip dhcp-server vendor-class 20 matches printer
<cr>

Variable Definitions

The following table defines parameters for the ip dhcp-server vendor-class command.

Variable Definition
WORD<1-255>

Specifies the vendor class ID.

domain-name WORD<1-128>

Specifies the domain name advertised on the vendor class.

matches WORD<1-128>

Specifies the vendor class identifier for the vendor class.

server-name WORD<0-64>

Specifies the server name of the TFTP server advertised on the vendor class.

tftp boot-file-name WORD<0-128>

Specifies the boot file name.

tftp server-ip {A.B.C.D}

Specifies the IPv4 address of the TFTP server advertised on the vendor class.

vendor-option-data <1-255>

Specifies the file name of the TFTP boot image advertised on the vendor class.

value WORD<0-128>

Specifies the data value for the vendor class.