Skip to main content
Christian_89
Contributor III
January 20, 2022
Solved

Default Distances change

  • January 20, 2022
  • 2 replies
  • 2490 views

Hi, everyone

How can I change the value of Default Distances I would have to change the DHCP value, which is moderately default to 5 and static to 10. I would like to set DHCP to 40 or higher. Anyone know how I can change that? many thanks for your help.

Best answer by Toshi_Esumi

Are you talking about the admin distance on the DHCP-injected default route on a wan interface? If so, below is the commend:

config sys int

  edit <wan_interface_name>

    set distance 40

  next

end

 

Or, if you wan to get rid of it completely, you can use below instead.

config sys int

  edit <wan_interface_name>

    set defaultgw disable

  next

end

 

Toshi

2 replies

Toshi_Esumi
SuperUser
SuperUser
January 20, 2022

Are you talking about the admin distance on the DHCP-injected default route on a wan interface? If so, below is the commend:

config sys int

  edit <wan_interface_name>

    set distance 40

  next

end

 

Or, if you wan to get rid of it completely, you can use below instead.

config sys int

  edit <wan_interface_name>

    set defaultgw disable

  next

end

 

Toshi

Christian_89
Contributor III
January 22, 2022

Hello Toshi

Yes we talk to her about DHCP. Thank you for your information, this helps me a lot.

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.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!