30
01-28008-0017-20050128
Fortinet Inc.
Using the command line interface
NAT/Route mode installation
5
Set Mask to 0.0.0.0.
6
Set Gateway to the default gateway IP address.
7
Set Device to the interface connected to the external network.
8
Select OK.
Using the command line interface
You can also configure the FortiGate unit using the command line interface (CLI). For
information about connecting to the CLI, see
“Connecting to the command line
interface (CLI)” on page 17
.
Configuring the FortiGate unit to operate in NAT/Route mode
Use the information that you gathered in
Table 6 on page 28
to complete the following
procedures.
To add/change the administrator password
1
Log in to the CLI.
2
Change the admin administrator password. Enter:
config system admin
edit admin
set password <psswrd>
end
To configure interfaces
1
Log in to the CLI.
2
Set the IP address and netmask of the internal interface to the internal IP address and
netmask that you recorded in
Table 6 on page 28
. Enter:
config system interface
edit internal
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 that you recorded in
Table 6 on page 28
.