30 01-28005-0101-20041015 Fortinet Inc.
Configuring the FortiGate unit to operate in NAT/Route mode NAT/Route mode installation
Example
To set the IP address of the LAN interface to 192.168.2.99 and netmask to
255.255.255.0, enter:
config system interface
edit lan
set ip 192.168.2.99 255.255.255.0
end
3To set the IP address and netmask of port1, enter:
config system interface
edit port1
set ip <address_ip> <netmask>
end
Example
To set the IP address of port1 to 192.168.20.99 and netmask to 255.255.255.0, enter:
config system interface
edit port1
set ip 192.168.20.99 255.255.255.0
end
4To set the IP address and netmask of port2, enter:
config system interface
edit port2
set ip <address_ip> <netmask>
end
Example
To set the IP address of port 1 to 204.23.1.5 and netmask to 255.255.255.0, enter:
config system interface
edit port1
set ip 204.23.1.5 255.255.255.0
end
To set port2 to use DHCP, enter:
config system interface
edit port2
set mode dhcp
end
To set the port2 to use PPPoE, enter:
config system interface
edit port2
set mode pppoe
set username user@domain.com
set password mypass
set connection enable
end
5Use the same syntax to set the IP address of each FortiGate interface as required.