How to Configure DHCP Class ID on a Windows 2000 DHCP Client

ID: Q235272


The information in this article applies to:
  • Microsoft Windows 2000 Professional
  • Microsoft Windows 2000 Server
  • Microsoft Windows 2000 Advanced Server
  • Microsoft Windows 2000 Datacenter Server


SUMMARY

Windows 2000 DHCP clients support DHCP Class ID options. You can configure this feature by using Ipconfig.exe command-line switches.


MORE INFORMATION

To set and enable DHCP Class ID on a Windows 2000 DHCP client, type the following line at a command prompt:

ipconfig /setclassid ADAPTER_NAME CLASS_ID_TO_SET
If ADAPTER_NAME contains spaces, enclose it in quotation marks. For example:
ipconfig /setclassid "Local Area Connection" teamnet
To clear and disable DHCP Class ID, leave CLASS_ID_TO_SET blank:
ipconfig /setclassid ADAPTER_NAME
To query:
ipconfig /showclassid ADAPTER_NAME
More information is available by typing ipconfig /?:

Windows 2000 IP Configuration
USAGE:
   ipconfig [/? | /all | /release [adapter] | /renew [adapter]
            | /flushdns | /registerdns
            | /showclassid adapter
            | /setclassid adapter [classidtoset] ]

   adapter    Full name or pattern with '*' and '?' to 'match',
              * matches any character, ? matches one character.
   Options
       /?           Display this help message.
       /all         Display full configuration information.
       /release     Release the IP address for the specified adapter.
       /renew       Renew the IP address for the specified adapter.
       /flushdns    Purges the DNS Resolver cache.
       /registerdns Refreshes all DHCP leases and re-registers DNS names
       /displaydns  Display the contents of the DNS Resolver Cache.
       /showclassid Displays all the dhcp class IDs allowed for adapter.
       /setclassid  Modifies the dhcp class id.

The default is to display only the IP address, subnet mask and
default gateway for each adapter bound to TCP/IP.

For Release and Renew, if no adapter name is specified, then the IP address
leases for all adapters bound to TCP/IP will be released or renewed.

For SetClassID, if no class id is specified, then the classid is removed.

Examples:
    > ipconfig                       ... Show information.
    > ipconfig /all                  ... Show detailed information
    > ipconfig /renew                ... renew all adapters
    > ipconfig /renew EL*            ... renew adapters named EL....
    > ipconfig /release *ELINK?21*   ... release all matching adapters,
                                         eg. ELINK-21, myELELINKi21adapter. 
For unattended installations, use the following parameters in the [MS_TCPIP parameters] section of the Unattend.txt file:
DHCPClassId
Value: string
Optional
Specifies the DHCP class ID. For example:
DHCPClassId = name

Additional query words:

Keywords : kbtool
Version : WINDOWS:2000
Platform : WINDOWS
Issue type : kbhowto


Last Reviewed: December 30, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.