Fortinet 60c manual Example, Get system interface

Page 31

NAT/Route mode installation

Using the command line interface

 

 

 

Example

 

config system interface

 

edit internal

 

set mode static

 

set ip <192.168.120.99> <255.255.255.0>

 

end

3Set the IP address and netmask of the WAN1 interface to the IP address and netmask that you recorded in Table 6 on page 28.

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

4Use the same syntax to set the IP address of each FortiGate interface as required.

5Confirm 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.

FortiGate-60 Installation Guide

01-28008-0018-20050128

31

Image 31
Contents January 01-28008-0018-20050128 Installation GuideRegulatory Compliance TrademarksTable of Contents Index Introduction Secure installation, configuration, and managementWeb-based manager Command line interfaceDocument conventions Setup wizardFortiGate documentation FortiGate Installation GuideFortiManager documentation Related documentationFortinet Knowledge Center Comments on Fortinet technical documentationFortiMail documentation Customer service and technical supportFortiLog documentation Customer service and technical support Customer service and technical support Getting started Mounting Package contentsTo power on the FortiGate unit Turning the FortiGate unit power on and offPower requirements Environmental specificationsTo connect to the web-based manager Connecting to the web-based managerStop bits Flow control Connecting to the command line interface CLITo connect to the CLI Bits per second 9600 Data bits ParityGo to System Network DNS Quick installation using factory defaultsFactory default Dhcp server configuration Factory default FortiGate configuration settingsFactory default NAT/Route mode network configuration Management IP Factory default Transparent mode network configurationFactory default firewall configuration Administrative accessStrict Factory default protection profilesScan NAT/Route mode Planning the FortiGate configurationExample NAT/Route mode network configuration NAT/Route mode with multiple external network connectionsExample NAT/Route multiple internet connection configuration Transparent modeWeb-based manager and setup wizard Configuration optionsNext steps Preparing to configure the FortiGate unit in NAT/Route mode NAT/Route mode installation Dhcp or PPPoE configuration Using the web-based manager PPPoE settings User name Password To add a default route Configuring basic settingsTo configure interfaces Go to System Network Interface To configure DNS server settings Go to System Network DNSTo configure interfaces Using the command line interfaceConfiguring the FortiGate unit to operate in NAT/Route mode To add/change the administrator passwordGet system interface ExampleTo configure DNS server settings Using the setup wizardInternal servers Setup wizard settings PasswordExternal Interface Dhcp serverStarting the setup wizard Connecting the FortiGate unit to the networksSetup wizard settings Antivirus FortiGate-60 FortiGate-60 NAT/Route mode connectionsConfiguring the Modem interface Configuring the networksTo register the FortiGate unit Go to System Config TimeTo configure virus, attack, and spam definition updates To set the date and timeGo to System Maintenance Update Center Preparing to configure Transparent mode Transparent mode installationManagement IP To change the Management IP Go to System Network ManagementTo change to Transparent mode using the CLI Reconnecting to the web-based managerTo configure the default gateway To configure the management IP addressTo start the setup wizard Internal Connecting the FortiGate unit to your networkTo register your FortiGate unit Go to System Maintenance Update Center Priorities of heartbeat device and monitor priorities High availability installationConfiguring FortiGate units for HA operation High availability configuration settingsGroup ID MAC Address To change the FortiGate unit host name Config system global Set hostname namestr end Configuring FortiGate units for HA using the CLITo configure the FortiGate unit for HA operation Connecting the cluster to your networksTo connect the cluster HA network configurationInstalling and configuring the cluster Installing and configuring the cluster Selecting a modem mode Configuring the modem interfaceRedundant mode configuration To operate in standalone mode Go to System Network Modem Standalone mode configurationRedundant for Configuring modem settingsMode Auto-dialTo configure modem settings Go to System Network Modem Connecting and disconnecting the modem in Standalone modeTo connect to a dialup account Go to System Network Modem ISP Defining a Ping ServerDead gateway detection To disconnect the modemAdding firewall policies for modem connections CLI IndexIndex