Configuring the FortiGate unit
NAT/Route mode installation
FortiGate-800 and FortiGate-800F FortiOS 3.0MR4 Install Guide
01-30004-0269-20070215
37
Adding a default route
Add a default route to configure where the FortiGate unit sends traffic destined for
an external network (usually the Internet). Adding the default route also defines
which interface is connected to an external network. The default route is not
required if the interface connected to the external network is configured using
DHCP or PPPoE.
To add a default route
Set the default route to the Default Gateway IP address. Enter:
config router static
edit <seq_num>
set dst <class_ip&net_netmask>
set gateway <gateway_IP>
set device <interface>
end
Example
If the default gateway IP is 204.23.1.2 and this gateway is connected to Port 1,
which is a user-defined external interface:
config router static
edit 1
set dst 0.0.0.0 0.0.0.0
set gateway 204.23.1.2
set device port1
end
Verifying the CLI configuration
To verify access settings, enter the following CLI command:
show system interface
The terminal emulation program should show the interface, vdom, IP address,
allow access, and type settings of the FortiGate unit, as in the following example:
edit internal
set vdom “root”
set ip 192.168.1.99 255.255.255.0
set allowaccess ping https ssh snmp http
set type physical
Verify the connection
To verify the connection, try the following:
• ping the FortiGate unit
• browse to the web-based manager GUI
• retrieve or send email from your email account
If you cannot browse to the web site or retrieve/send email from your account,
review the previous steps to ensure all information was entered correctly and try
again.
You are now finished the initial configuration of the FortiGate unit.