beautypg.com

Fortinet FortiGate-800 User Manual

Page 45

background image

NAT/Route mode installation

Using the command line interface

FortiGate-800 Installation and Configuration Guide

45

3

Set the IP address and netmask of the external interface to the external IP address
and netmask that you recorded in

Table 10 on page 42

.

set system interface external mode static ip

Example
set system interface external mode static ip 204.23.1.5
255.255.255.0
To set the external interface to use DHCP, enter:
set system interface external mode dhcp connection enable
To set the external interface to use PPPoE, enter:
set system interface external mode pppoe username
password connection enable
Example
set system interface external mode pppoe username
[email protected] password mypass connection enable

4

Optionally, set the IP address and netmask of the DMZ interface to the DMZ IP
address and netmask that you recorded in

Table 12 on page 43

. Enter:

set system interface dmz mode static ip
Example
set system interface dmz mode static ip 10.10.10.2
255.255.255.0

5

Set the IP address and netmask of interfaces 1 to 4 to the IP addresses and netmasks
that you recorded in

Table 12 on page 43

.

set system interface mode static ip

Example
To set the IP address of interface 3 to 192.45.56.73 and netmask to 255.255.255.0,
enter
set system interface port3 mode static ip 192.45.56.73
255.255.255.0

6

Confirm that the addresses are correct. Enter:
get system interface
The CLI lists the IP address, netmask, and other settings for each of the FortiGate
interfaces.

7

Set the primary DNS server IP addresses. Enter
set system dns primary
Example
set system dns primary 293.44.75.21

8

Optionally, set the secondary DNS server IP addresses. Enter
set system dns secondary
Example
set system dns secondary 293.44.75.22