Configuring the FortiGate unit NAT/Route mode installation
FortiGate-200A, FortiGate-300A, FortiGate-400A, and FortiGate-500A FortiOS 3.0 MR4 Install Guide
01-30004-0268-20070712 39
To configure interface
1 Log into the CLI.
2 Set the IP address and netmask of the internal interface to the internal IP address
and netmask you recorded in Table 13 on page 35. Enter:
config system interface
edit <internal_interface>
set mode static
set ip <address_ip> <netmask>
end
Example
config system interface
edit internal
set mode static
set ip 192.168.120.99 255.255.255.0
end
3 Set the IP address and netmask of the external interface to the external IP
address and netmask you recorded in Table 13 on page 35.
config system interface
edit <external_interface>
set mode static
set ip <address_ip> <netmask>
end
Example
config system interface
edit wan1
set mode static
set ip 204.28.1.5 255.255.255.0
end
To set the external interface to use DHCP, enter:
config system interface
edit wan1
set mode dhcp
end
To set the external interface to use PPPoE, enter:
config system interface
edit wan1
set mode pppoe
set connection enable
set username <name_str>
set password <psswrd>
end
4 Use the same syntax to set the IP address of each FortiGate interface as
required.