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

FTG dhcp server

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

3 Solutions
Atul_S
Staff
Staff

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,

Atul Srivastava

View solution in original post

Debbie_FTNT

To elaborate a bit on Atul's comment:

- port1 is configured to work as DHCP server

- that means currently it provides IPs for connecting clients

- it must have a static IP itself to act as DHCP server

So, one of two options:

1. Delete any DHCP server under 'config system dhcp server' that references port1

-> any hosts connecting to port1 and receiving IPs from it might lose connection!

2. Leave port1 to have a static IP

 

Cheers,

Debbie

+++ Divide by Cucumber Error. Please Reinstall Universe and Reboot +++

View solution in original post

Koumbia
New Contributor II

6 REPLIES 6
DPadula
Staff
Staff

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
New Contributor II

 

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
Staff

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,

Atul Srivastava
DPadula

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'.

Debbie_FTNT

To elaborate a bit on Atul's comment:

- port1 is configured to work as DHCP server

- that means currently it provides IPs for connecting clients

- it must have a static IP itself to act as DHCP server

So, one of two options:

1. Delete any DHCP server under 'config system dhcp server' that references port1

-> any hosts connecting to port1 and receiving IPs from it might lose connection!

2. Leave port1 to have a static IP

 

Cheers,

Debbie

+++ Divide by Cucumber Error. Please Reinstall Universe and Reboot +++
Koumbia
New Contributor II

Thank you so much @Atul_S 

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