Support Forum
The Forums are a place to find answers on a range of Fortinet products from peers and product experts.
Ropuh
New Contributor

DHCP and Wins node

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 9
romanr
Valued Contributor

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
Valued Contributor III

32 is Hex for ASCII ' 2' ...

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
romanr
Valued Contributor

ORIGINAL: rwpatterson 32 is Hex for ASCII ' 2' ...
Sure! But this option is numeric and not text! cheers.roman
Ropuh
New Contributor

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
Valued Contributor III

Try 32 without the quotes????

Bob - self proclaimed posting junkie!
See my Fortigate related scripts at: http://fortigate.camerabob.com

Bob - self proclaimed posting junkie!See my Fortigate related scripts at: http://fortigate.camerabob.com
Ropuh
New Contributor

With or without quotes - the same client still got Hybrid (8) not Peer (2) node. So it still does not work.
romanr
Valued Contributor

Hi, I' m quiet confident, that: set option1 46 02 should do it!! cheers.roman
Ropuh
New Contributor

set option1 46 02
Big tnx - it works :)
nehakwilas
New Contributor

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.

Announcements

Select Forum Responses to become Knowledge Articles!

Select the “Nominate to Knowledge Base” button to recommend a forum post to become a knowledge article.

Labels
Top Kudoed Authors