Skip to main content
davey2k2
New Member
February 9, 2017
Question

Ip DHCP Server Option 150

  • February 9, 2017
  • 3 replies
  • 14070 views

Hi,

 

I have a little question, I'm replacing a Cisco router with a Fortigate 300 D, I need to configure some DHCP servers, but a couple of networks are voice networks. That is why I need to activate option 150, I've done it before with FortiOS 5.0 and FortiOS 5.2 like this example:

 

onfig system dhcp server     edit 3         set forticlient-on-net-status disable         set default-gateway 10.15.x.x         set netmask 255.255.255.0         set interface "port36"             config ip-range                 edit 1                     set start-ip 10.15.x.x                     set end-ip 10.15.x.x                 next             end         set timezone-option default         set option1 150 'IP HEX OF MY '          set dns-server1 X.X.X.X         set dns-server2 X.X.X.X set netmask X.X.X.X     next end Now the option 150 doesn't appear, does anybody know how to do it in 5.4? Thanks a lot.

 

Regards

 

 

3 replies

Toshi_Esumi
SuperUser
SuperUser
February 10, 2017

They changed the CLI for DHCP options with 5.4 because they added string and IP ub addition to hex now. It's now in a sub-section just like ip-range. Yet I have to test it myself but it would look like below and likely(hopefully) a correct way. Please let us know if it worked.

 

config dhcp server

  edit 1

     <snip>

      config options

         edit 1

           set code 150

           set type ip      <- if it's an IP. you can try string for URL (then change the next line to "set value")

           set ip "x.x.x.x"

        next

    next

end

 

davey2k2
davey2k2Author
New Member
February 10, 2017

Hi Toshi,

 

It worked fine!!!, Thanks a lot.

 

Regards

Toshi_Esumi
SuperUser
SuperUser
February 11, 2017

Thank you for letting us know. You must have figured out my typo :)

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!