Share via


ipconfig "issue" with setclassid/showclassid

Question

Thursday, October 12, 2017 3:06 PM

This is not a big issue. I tried to set up the DHCPv4 class id for a notebook (maybe the most of the people or even the administrators never heard about this options) and I found the next thing: When I set up the class ID for the Wi-Fi 2 adapter, the /showclassid switch didn't see the ID, but if I ask it with the /all switch it is visible. 

The full list (this is a Hungarian language machine, so the date is in Hungarian order):

C:\ipconfig /setclassid "Wi-Fi 2" 1

Windows IP Configuration

Successfully set the DHCPv4 class id for adapter Wi-Fi 2.

C:\ipconfig /showclassid "Wi-Fi 2"

Windows IP Configuration

There are no DHCPv4 classes defined for Wi-Fi 2.

C:\ipconfig /all

Windows IP Configuration

   Host Name . . . . . . . . . . . . : *******
   Primary Dns Suffix  . . . . . . . :
   Node Type . . . . . . . . . . . . : Hybrid
   IP Routing Enabled. . . . . . . . : No
   WINS Proxy Enabled. . . . . . . . : No
   DNS Suffix Search List. . . . . . : lan
.
.

.

Wireless LAN adapter Wi-Fi 2:

   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : ASUS USB-AC51 USB Wireless adapter
   Physical Address. . . . . . . . . : 88-D7-F6-03-01-AB
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   IPv6 Address. . . . . . . . . . . : fd7c:7d3d:b290:c300:e0f3:70e:813e:ce64(Pr
eferred)
   Temporary IPv6 Address. . . . . . : fd7c:7d3d:b290:c300:2982:68e4:deb5:3fd(Pr
eferred)
   Temporary IPv6 Address. . . . . . : fd7c:7d3d:b290:c300:a5ce:bee9:a917:d5cc(D
eprecated)
   Link-local IPv6 Address . . . . . : fe80::e0f3:70e:813e:ce64%4(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.1.2(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : 2017. október 11., szerda 12:35:20
   Lease Expires . . . . . . . . . . : 2017. október 13., péntek 15:44:36
   Default Gateway . . . . . . . . . : 192.168.1.1
   DHCPv4 Class ID . . . . . . . . . : 1
   DHCP Server . . . . . . . . . . . : 192.168.1.1
   DHCPv6 IAID . . . . . . . . . . . : 792253767
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-1B-BF-72-34-E0-DB-55-D7-5C-CF

   DNS Servers . . . . . . . . . . . : fe80::1%4
                                       192.168.1.1
                                       192.168.1.1
   NetBIOS over Tcpip. . . . . . . . : Enabled

Wireless LAN adapter Wi-Fi:

   Media State . . . . . . . . . . . : Media disconnected
   Connection-specific DNS Suffix  . : lan
   Description . . . . . . . . . . . : Intel(R) Dual Band Wireless-AC 7260
   Physical Address. . . . . . . . . : AC-7B-A1-55-4B-41
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes

Any idea why not visible with the /showclassid?

All replies (2)

Thursday, October 12, 2017 8:56 PM

Cool, not used that setting meself, what are you trying to achieve with it? Looking at ipconfig this appears related to the 'DHCP class ID for a specified adapter'.

So what does;

ipconfig /showclassid *

show?


Friday, March 29, 2019 1:07 PM

This is due to the slight ambiguity as to what the /showclassid switch actually does. This switch will show you the available class IDs configured on the DHCP server from which the current IP address lease has been obtained. It does not show what the current Class ID for the adapter is set to. You can try it by defining a new 'User Class' on the DHCP server, run an IPCONFIG /RELEASE and IPCONFIG /RENEW on the client and then run IPCONFIG /showclassid adaptername.  It will now list the name of the new DHCP User Class that was setup on the DHCP server. It's simply showing what the available class id's are, not what the adapter is set to.