Skip to main content
Ropuh
New Member
February 5, 2010
Question

DHCP and Wins node

  • February 5, 2010
  • 9 replies
  • 9276 views
A new question about DHCP: I wanna set net-bios-node type. In dhcpd.conf I used option netbios-node-type 2 (only wins server - http://www.daemon-systems.org/man/dhcp-options.5.html ). I fortigate I tried to use option in config. Based on http://www.networksorcery.com/enp/protocol/bootp/options.htm and http://nvelocity.info/index.php?title=Fortinet_and_DHCP_Options I set this: set option1 46 ' 32' 32 is ascii for 2 - P-node (Peer/Wins only). But client always got 8- H-node (Hybrid - WINS, then broadcast). What am I doing wrong?

    9 replies

    romanr
    New Member
    February 5, 2010
    set option1 46 ' 32' 32 is ascii for 2
    Hi, I cannot follow your conclusion about the 32, cause this isn' t an ASCII option! .... Just " 2" should actually do it! cheers.roman
    rwpatterson
    New Member
    February 5, 2010
    32 is Hex for ASCII ' 2' ...
    romanr
    New Member
    February 5, 2010
    ORIGINAL: rwpatterson 32 is Hex for ASCII ' 2' ...
    Sure! But this option is numeric and not text! cheers.roman
    Ropuh
    RopuhAuthor
    New Member
    February 6, 2010
    Hmmm I think it' s hex:
      forti (internal_dhcp_~e) # set option1 46 2  Please input even number of hexdecimal characters  node_check_object fail! for option1 2    value parse error before ' 2'   Command fail. Return code -651    forti (internal_dhcp_~e) #  
    rwpatterson
    New Member
    February 7, 2010
    Try 32 without the quotes????
    Ropuh
    RopuhAuthor
    New Member
    February 7, 2010
    With or without quotes - the same client still got Hybrid (8) not Peer (2) node. So it still does not work.
    romanr
    New Member
    February 8, 2010
    Hi, I' m quiet confident, that: set option1 46 02 should do it!! cheers.roman
    Ropuh
    RopuhAuthor
    New Member
    February 8, 2010
    set option1 46 02
    Big tnx - it works :)
    nehakwilas
    New Member
    July 20, 2023

    You can use the following command

    config system dhcp server     edit <DHCP_Server_Name>         set netbios-node-type 2     next end

    Save and renew the DHCP lease on the client or wait for the lease to expire and then request a new lease to see the updated option value being used.

    Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!