How to create DHCP server and a policy in the Fortigate

Here is an example script that demonstrates how to use the  fortigate-api  package to create a DHCP server and a policy in the Fortigate   from fortigate_api import FortigateAPI # Create a FortigateAPI object fgt = FortigateAPI(host="host", username="username", password="password") # Create a DHCP server data = {     "default-gateway": "192.168.255.1",     "netmask": "255.255.255.0",     "interface": "vlan.123",     "ip-range": [         {"start-ip": "192.168.255.2", "end-ip": "192.168.255.254",}     ], } fgt.dhcp_server.create(data) # Create a policy in the Fortigate data = dict(     name="POLICY",     status="enable",     action="accept",     srcintf=[{"name": "any"}],     dstintf=[{"name": "any"}],     srcaddr=[{"name": "all"}],     dstaddr=[{"name&quo

STEPS TO CONVERT 9115 AP TO MOBILITY EXPRESS OR EMBEDDED WLC

======STEPS TO CONVERT 9115 AP TO MOBILITY EXPRESS OR EMBEDDED WLC=====


Step 1: Download the cisco IOS image for converting 9115 to eWLC

\\Ref_Link:https://software.cisco.com/download/home/286321056/type/286323077/release/16.12.4a


Step 2: Extract the Downloaded image file in any of your Directories

Step 3: Open TFTP64 application in your desktop (for making your pc/desktop/laptop to work as a TFTP server)

Step 4: Connect a Patch cable between your Switch and Laptop 

Step 5: Provide the static IP of same subnet to your laptop ethernet interface 

Step 6: Open up the downloaded IOS image directory in the TFTP64 application

Step 8: Select the Ethernet Interface in TFTP64 application

Step 9: Connect one console cable to the Access Point which you want to convert as eWLC 

Step 10: Provide one same subnet IP to the Access Point

Step 11: Try to ping the AP from your laptop/Desktop/Pc and also ping from your AP to PC (vice-versa there must be reachability from both the side)


\\if everything is fine then run the following commands in the AP CLI given below:



AP#ap-type ewc-ap tftp://<your system static ip>/ap1g7 tftp://<your system static ip>/C9800-AP-iosxe-wlc.bin




Comments

Popular posts from this blog

How to Configure VXLAN in FortiGate Firewall

Higher Availability in FortiGate and VRRP in Cisco

Python Script to take the Backup of Multiple device in a Network