+ Post New Thread
Results 1 to 14 of 14
How do you do....it? Thread, Setting DHCP Vendor Classes on Windows 2003 Server in Technical; We have been trying and failing all day to sort this. We have a batch of Dell Axim X51 handhelds ...
  1. #1

    Join Date
    Jan 2006
    Posts
    143
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Setting DHCP Vendor Classes on Windows 2003 Server

    We have been trying and failing all day to sort this.

    We have a batch of Dell Axim X51 handhelds all shiny and new; they will be used for lesson registration. We have all the apps and so on installed. What we're trying to do now is give them a gateway other than our default loopback.

    Ideally we would do it how we do it for the workstations: setting options using class IDs. We haven't found a way of sorting this on this kit.

    We thought we might be able to do it with Vendor Class instead.

    During the lease process, the units are sending 'Option 60: Vendor Class identifier "Microsoft Windows CE" '

    This is not a predefined Vendor Class on our Win 2003 Server. We have created this class and tried to assign the 003 router option through it. The 003 Router option wasn't available, we created one, it failed to provide the required setting to the unit.

    In the ACK packet, we are receiving 'Option 43: Vendor-Specific Information' which contains the information we defined in the option under the Vendor Class, but the unit doesn't know what to do with it.

    Our aim is for the DHCP server to see that it's a handheld, and dole out the correct 003 Router option accordingly. We both thought the Vendor Class stuff was like the user class stuff, but it doesn't seem to work the same way.

    Can anyone shed some light on this or come up with an alternative which we haven't spotted? And before you post, Linux isn't an option here

  2. #2
    Face-Man's Avatar
    Join Date
    Dec 2005
    Location
    London
    Posts
    577
    Thank Post
    11
    Thanked 58 Times in 40 Posts
    Rep Power
    70

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    have you investigated using reserved IP address. I realise it may be time consuming to do a lot of devices that way

  3. #3

    Join Date
    Jan 2006
    Posts
    143
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    Quote Originally Posted by Face-Man
    have you investigated using reserved IP address. I realise it may be time consuming to do a lot of devices that way
    Thanks - it is an option, but it's very low down on our list. There will be 120 units when they are all here

    The boss is now messing around in the unit's registry to try to spoof a class id - I've just heard the words 'Well I've messed something up somewhere...'

  4. #4

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    Quote Originally Posted by acb_
    And before you post, Linux isn't an option here
    The linux solution i'm thinking of is very easy and you'd only need a crap old machine for it to work and it would solve your problems.

    But if you don't want to go the easy way then try what Face-Man suggested, that should work, there's just a lot more admin overhead.

  5. #5

    Join Date
    Jan 2006
    Posts
    143
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    OK, he's cracked it!

    He modified the registry to include a value to send a class ID, so we get to use the solution we wanted all along

    PS Indie, no disrespect to Linux (we use plenty of open source solutions in school) - we needed a solution on our Windows set up...

  6. #6

    Join Date
    Nov 2005
    Location
    Middlesbrough
    Posts
    402
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    No problem, would you like to post the complete solution in case any one else runs into a problem like this?

  7. #7
    Face-Man's Avatar
    Join Date
    Dec 2005
    Location
    London
    Posts
    577
    Thank Post
    11
    Thanked 58 Times in 40 Posts
    Rep Power
    70

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    Well done. I'd certainly be interested in your solution as I can see it coming my way at some point next term..

  8. #8

    Join Date
    Feb 2006
    Location
    South Gloucestershire
    Posts
    23
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    Well, having had my arm twisted to finally document something here we go...

    Using whatever your favorite method to edit the registry navigate to

    Code:
    HKEY_LOCAL_MACHINE\Comm\Tcpip\Parms\DhcpSendOptions
    in our case their was already a entry called 60 which is the option code for Vendor Class ID - the binary string that is the value matched the Vendor Code we sniffed off the wire - I guessed that this might be a generic store for options to send in the DHCP request

    The option for User Class ID is 77 (sniffed from one of our workstations - I can never remember the numbers) so I created a binary value called 77 and entered the binary data I sniffed from our workstation DHCP update. I saved the change and renewed the IP and Voila! it worked. Well, the second time it worked when I had typed the binary in properly - which was the stage where I decided to choose a short Class ID for the hand helds.

    The format of the binary value is
    4d <length> xx xx xx xx
    where the xx pairs are the hex values that match your class ID, <length> is the number of hex values and 4d is hex for 77 decimal.

    A concrete example, I created the class id palm to use on our handhelds which gives us the binary

    Code:
    4d 04 70 61 6c 6d
    We are working on Dell Axim X51's which are fairly new - I do not know how far back this mod would work, but I guess you should be safe on all WinCe Version 5 stuff.

    As with all these things, once you know how it takes about 30seconds to do - finding out how has taken me several days and a few false starts. Hope that helps some of you.

  9. #9

    Join Date
    Jan 2006
    Posts
    143
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    8O

    *faints at novel sight of documentation*

  10. #10
    contink's Avatar
    Join Date
    Jul 2006
    Location
    South Yorkshire
    Posts
    3,791
    Thank Post
    303
    Thanked 327 Times in 233 Posts
    Rep Power
    118

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    Quote Originally Posted by acb_
    8O

    *faints at novel sight of documentation*
    ROFLMAO...

    Oh how true... but if you want to really suffer a shock, let's see if it gets to the Wiki

    Just pulling legs here btw.. useful info although thankfully I don't have to worry about this particular issue in my primary school(s) it's nice to know I can always return in a year or so..

  11. #11

    Join Date
    Feb 2006
    Location
    South Gloucestershire
    Posts
    23
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    I have read back my description and I think it might be a little confusing. To try and remove any ambiguity I have exported the registry key in regedit format and copied it before. As in my previous example I have used the Class ID palm - if that suits your environment you can import the key 'as-is'.

    Code:
    REGEDIT4
    
    [HKEY_LOCAL_MACHINE\Comm\Tcpip\Parms\DhcpSendOptions]
    "77"=hex:4d,04,70,61,6c,6d

  12. #12


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    It is a bit confusing - your saying that you need to hack a Windows CE device, to tell it that its a palm device so that a Windows server can recognise it ? hmm Microsoft sure don't make integration easy.

  13. #13

    Join Date
    Feb 2006
    Location
    South Gloucestershire
    Posts
    23
    Thank Post
    0
    Thanked 0 Times in 0 Posts
    Rep Power
    0

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    It has nothing to do with Palm OS, I'm just slightly old fashioned and use the term 'palmtop' to refer to hand held devices. To avoid typing when setting up binary registry settings I shortened this to just palm.

    The effort I expended was to make our DHCP server recognise the hand helds as different to our desktop machines and offer them different network settings.

    To achieve this I set a custom class id in the DHCP request - the word palm was used for the reasons I have just noted.

    I'm sorry if I made things sound more confusing than they already were

  14. #14


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Setting DHCP Vendor Classes on Windows 2003 Server

    lol, thanks for clearing that up

SHARE:
+ Post New Thread

Similar Threads

  1. DHCP on Server 2003
    By laserblazer in forum Windows
    Replies: 5
    Last Post: 30th September 2007, 09:16 PM
  2. Setting up a standby DHCP server.
    By tosca925 in forum Windows
    Replies: 7
    Last Post: 10th May 2007, 10:40 AM
  3. Mixed Classes OU Advice for Server 2003
    By CM786 in forum Wireless Networks
    Replies: 5
    Last Post: 4th September 2006, 07:23 PM
  4. Replies: 19
    Last Post: 10th August 2006, 09:12 AM
  5. Downsides to passing tftp server via 2003 DHCP server?
    By pete in forum Wireless Networks
    Replies: 7
    Last Post: 11th July 2006, 10:07 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •