Fortigate CLI

FortiGate CLI Commands for Troubleshooting

57

Basic Configuration Commands:

Fortigate firewall is delivered with default settings of

Management IP Address: 192.168.1.99 / 255.255.255.0
Credentials: admin with no password

1. Configure Host Name:

# config system global
(global)# set hostname FG100D
# end

2. Configure MGMT Interface

# config system interface
(interface)# edit mgmt
(mgmt)# set ip 192.168.80.254 255.255.255.0
(mgmt)# set allowaccess ping https ssh
(mgmt)# end

3. Configure DNS

# config system dns
(dns)# set primary 192.168.80.150
(dns)# set secondary 192.168.80.151
(dns)# set domain “itadminguide.com”
(dns)# end

4. Configure NTP Server

# config system ntp
(ntp)# set server 192.168.80.10
(ntp)# set status enable
(ntp)# end

 

Basic Troubleshooting Commands:

5. Ping a host name or IP address

# execute ping

//ping from a specific firewall interface
# execute ping-options source <interface ip>
# execute ping

6. ARP

# get system arp

// clear arp table
# execute clear system arp table

7. Routing

//similar to “show ip route” in Cisco
# get router info routing-table all

//route cache, current session with routing information
# diagnose ip rtcache list

 

Automatic Backup Configuration:

8. Automatic Configuration Backup after each logout

# config system global
# set revision-backup-on-logout enable
# end

All backup revisions can be seen in GUI > admin (top right) > Configuration > Revisions

 

·


Related Articles & Comments

Thank you for visiting us. To continue receiving updates, please Subscribe to our Social Media Channels.

Google+
FACEBOOK
RSS
YOUTUBE
Menu Title
%d bloggers like this: