Skip to main content
Koumbia
Explorer
October 3, 2024
Solved

FTG dhcp server

  • October 3, 2024
  • 2 replies
  • 2873 views

Hello community,

I need yours help, when i make 

FortiGate-VM64-AWS (interface) #

edit port1

  set mode dhcp

then i getting this error

This interface is being used by one or more dhcp servers.
attribute set operator error, -236, discard the setting
Command fail. Return code 1

Best answer by Koumbia

Thank you so much @Atul_S 

2 replies

DPadula
Staff & Editor
Staff & Editor
October 3, 2024

Hi Koumbia

Download the Fortigate configuration, open it using notepad or notepad++ and search by port1.

See where port1 is used. You might need to fix/change some of the firewall configuration.

Koumbia
KoumbiaAuthor
Explorer
October 4, 2024
 

Thank you for your feedback, i don't understand why when i use 'set mode dhcp' and 'next' i have this error

 

error.jpg

Atul_S
Staff & Editor
Staff & Editor
October 4, 2024

Hello Koumbia,

 

As per your config and the error message, it seems like you are trying to set the port 1 as DHCP client whereas port 1 is configured to serve a DHCP pool within DHCP configuration. You either have to change the interface within DHCP setting or use another port as DHCP client.

 

Thanks,

DPadula
Staff & Editor
Staff & Editor
October 4, 2024

Hi Kumbia,
Follow Atul's advice and probably you will find the issue. Just to add to his comment, the DHCP server settings can be found under 'conf system dhcp server'.