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

how to remote access a router and switch in packet tracer || telnet in cisco packet tracer

Cisco Router Remote Access

Here's the following steps for the Remote access of Cisco Router/Switch.

For Telnet Remote Access Cisco Switch Configuration:-

  1. First you need to configure the Username and Password.
  2. Configure the enable password/secret (either enable password or enable secret.)
  3. Configure the Line vty 0 15 (as your  wish you can take upto 15 so that 15 can access the device the same time).
  4. Configure the line vty password
  5. Configure an IP to any VLAN (Say Vlan 1) and make it up by no shutdown.
  6. In the pc or laptop configure the IP of the same network and check the reachability by ping.
  7. Finish.
Here is the Logical view:-


LOGICAL VIEW OF THE TOPOLOGY
LOGICAL VIEW

For Telnet Remote Access Cisco Router Configuration:-

  1. First you need to configure the Username and Password.
  2. Configure the enable password/secret (either enable password or enable secret.)
  3. Configure the Line vty 0 15 (as your  wish you can take upto 15 so that 15 can access the device the same time).
  4. Configure the line vty password
  5. Configure an IP on the interface which is connected with switch and make it up by no shutdown.
  6. In the pc or laptop configure the IP of the same network and check the reachability by ping.
  7. Finish.

Here is the configuration of Cisco Router :-


Switch Configution for remote access
SWITCH CONFIGURATION

Here is the Configuration of Cisco Router:-


ROUTER CONFIGURATION






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