A SERVICE OF

logo

48 Fortinet Inc.
Using the command line interface NAT/Route mode installation
3 Set the IP address and netmask of interface 2 to the external IP address and netmask
that you recorded in Table 10 on page 45.
set system interface port2 mode static ip <IP_address>
<netmask>
Example
set system interface port2 mode
static
ip 204.23.1.5
255.255.255.0
4 Set the IP address and netmask of interface 3 or 4 to the IP addresses and netmasks
that you recorded in Table 10 on page 45.
set system interface <interface_name> mode static ip
<IP_address> <netmask>
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
5 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.
6 Set the primary DNS server IP addresses. Enter
set system dns primary <IP address>
Example
set system dns primary 293.44.75.21
7 Optionally, set the secondary DNS server IP addresses. Enter
set system dns secondary <IP address>
Example
set system dns secondary 293.44.75.22
8 Set the default route to the Default Gateway IP address.
set system route number <route_no> dst 0.0.0.0 0.0.0.0 gw1
<gateway_ip>
Example
set system route number 0 dst 0.0.0.0 0.0.0.0 gw1 204.23.1.2