Fortinet fortigate-60r Installation Instruction
NAT/Route mode installation
Using the command line interface
FortiGate-60R Installation and Configuration Guide
47
3
Set the IP address and netmask of the WAN1 interface to the IP address and netmask
that you recorded in
that you recorded in
To set the manual IP address and netmask, enter:
set system interface wan1 mode static ip <IP address> <netmask>
Example
set system interface wan1 mode static ip 204.23.1.5 255.255.255.0
To set the WAN1 interface to use DHCP, enter:
set system interface wan1 mode dhcp connection enable
To set the WAN1 interface to use PPPoE, enter:
set system interface wan1 mode pppoe username <user name>
password <password> connection enable
Example
set system interface wan1 mode pppoe username user@domain.com
password mypass connection enable
4
Optionally set the IP address and netmask of the WAN2 interface to the IP address
and netmask that you recorded in
and netmask that you recorded in
To set the manual IP address and netmask, enter:
set system interface wan2 mode static ip <IP address> <netmask>
Example
set system interface wan2 mode static ip 34.3.21.35 255.255.255.0
To set the WAN2 interface to use DHCP, enter:
set system interface wan2 mode dhcp connection enable
To set the WAN2 interface to use PPPoE, enter:
set system interface wan2 mode pppoe username <user name>
password <password> connection enable
Example
set system interface wan2 mode pppoe username user@domain.com
password mypass connection enable
5
Optionally set the IP address and netmask of the DMZ interface to the DMZ IP
address and netmask that you recorded in
address and netmask that you recorded in
Table 14 on page 45
. Enter:
set system interface dmz mode static ip <IP address> <netmask>
Example
set system interface dmz mode static ip 10.10.10.2
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.
interfaces.
7
Set the primary DNS server IP addresses. Enter
set system dns primary <IP address>
Example
set system dns primary 293.44.75.21