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

.

.

32 REPLIES 32
rwpatterson
Valued Contributor III

The DHCP range has to cover the entire spectrum of IPs you wish to have: Both reserved and dynamically assigned. The section in my code that says "config exclude-range" will prevent the listed addresses from being dynamically assigned freeing you to use them for reserved or just plain static. This is the only way to do what you want. It works this way in the M$ world as well.

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
che9992

.

Toshi_Esumi

If you want to configure those static IPs at your routers, you can use "exclude-range" for the range. But if you want to assign those IPs statically to routers over DHCP , you need to use "reserved-address" to bind the IPs with MAC addresses. At that time, those IPs need to be a part of "ip-range" for a DHCP pool. You can add another pool in addition to existing pool if you want. It was not clear with your original post.

rwpatterson
Valued Contributor III

A router is not something you can (or should rather) assign an IP to, even if reserved.

 

My two cents.

 

I wouldn't want the network to fail if the DHCP server goes offline and the router loses its address. (Sorry, can't express sarcasm in a post)

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
Toshi_Esumi

I agree. I would never do that myself.

che9992

.

rwpatterson
Valued Contributor III

Delete the one you already created...

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
che9992

.

rwpatterson
Valued Contributor III

Exactly.

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
che9992

.l

Labels
Top Kudoed Authors