NAT/Route mode installation
Using the command line interface
FortiGate-60M Installation Guide
01-28008-0111-20050128
33
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 WAN1 interface to the IP address and netmask
that you recorded in
Table 6 on page 30
.
To set the static IP address and netmask, enter:
config system interface
edit wan1
set mode static
set ip <address_ip> <netmask>
end
Example
config system interface
edit wan1
set mode static
set ip 204.23.1.5 255.255.255.0
end
To set the WAN1 interface to use DHCP, enter:
config system interface
edit wan1
set mode dhcp
end
To set the WAN1 interface to use PPPoE, enter:
config system interface
edit wan1
set mode pppoe
set connection enable
set username <name_str>
set password <passwrd>
end
4
Use the same syntax to set the IP address of each FortiGate interface as required.
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.