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

From the CLI, find the number that DHCP scope is in and change that number in the script you are pasting in

 

As in "edit [old number here]"

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

            config exclude-range
                edit 1
                    set end-ip 192.168.100.100
                    set start-ip 192.168.100.1
                next
            end

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

Could you post the DHCP server section from the CLI here?

 

Another question. Are you positive there are no other DHCP servers on the subnet? One recommendation I always give is to never use the factory default subnets. (192.168.0.x/24: D-Link, 192.168.1.x/24: everyone, 192.168.2.x/24: others, etc) This creates havoc when someone introduces another factory set device onto your wire.

 

If you have a PC getting a lower IP address, run IPConfig /all and look for the IP address of the DHCP server. Also from the command prompt, run 'arp -a' and see what the MAC address of that device is. Make sure that it's the same as your Fortigate.

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

che9992 wrote:

"sh sys dhcp server"

Connected

 

EDU_Sherpa $ sh sys dhcp server config system dhcp server edit 2 set dns-service default set default-gateway 192.168.1.99 set netmask 255.255.255.0 set interface "mgmt" config ip-range edit 1 set start-ip 192.168.1.110 set end-ip 192.168.1.210 next end next edit 3 set forticlient-on-net-status disable set dns-service default set default-gateway 192.168.90.99 set netmask 255.255.255.0 set interface "free"

In this piece, there is no entire class C range from 1-254 and there is no exclude.

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
che335

But im using "lan" range from 192.168.100.1-254 Should i delete "free" and "mgmt"? But i have no idea why "lan" is not in there
rwpatterson
Valued Contributor III

DHCP server range needs to be 1-254, nut just what you want to hand out.

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

.

Labels
Top Kudoed Authors