beautypg.com

Policy routing command syntax, Providing dhcp services to your internal network – Fortinet FortiGate 100 User Manual

Page 119

background image

Network configuration

Policy routing

FortiGate-100 Installation and Configuration Guide

119

The gateway added to a policy route must also be added to a destination route. When
the FortiGate unit matches packets with a route in the RPDB, the FortiGate unit looks
in the destination routing table for the gateway that was added to the policy route. If a
match is found, the FortiGate routes the packet using the matched destination route. If
a match is not found, the FortiGate routes the packet using normal routing.

To find a route with a matching gateway, the FortiGate unit starts at the top of the
destination routing table and searches until it finds the first matching destination route.
This matched route is used to route the packet.

Policy routing command syntax

Configure policy routing using the following CLI command.

set system route policy src

iifname

dst

oifname protocol

port gw

Complete policy routing command syntax is described in the FortiGate CLI Reference
Guide
.

Providing DHCP services to your internal network

If the FortiGate unit is operating in NAT/Route mode, you can configure it to be the
DHCP server for your internal network:

1

Go to System > Network > DHCP.

2

Select Enable DHCP.

3

Configure DHCP server settings.

4

Select Apply.

5

Configure the IP network settings of the computers on your network to obtain an IP
address automatically using DHCP.

Starting IP
Ending IP

Enter Starting IP and Ending IP to configure the range of IP addresses that

the FortiGate unit can assign to DHCP clients. The addresses must be

addresses on your internal network.

Netmask

Enter the Netmask that the FortiGate unit assigns to the DHCP clients.

Lease Duration

Enter the interval in seconds after which a DHCP client must ask the DHCP

server for a new address. The lease duration must be between 300 and

8000000 seconds.

Domain

Optionally enter in the domain that the DHCP server assigns to the DHCP

clients.

DNS IP

Enter the IP addresses of up to 3 DNS servers that the DHCP clients can

use for looking up domain names.

Default Route

Enter the default route to be assigned to DHCP clients. The default route

should be on the same subnet as the starting and ending IP addresses.

WINS

Add the IP addresses of one or two WINS servers to be assigned to DHCP

clients.

Exclusion Range Optionally enter up to 4 exclusion ranges of IP addresses within the starting

IP and ending IP addresses that cannot be assigned to DHCP clients.