FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
dbabic
Staff
Staff
Article Id 189883

Description

 

This article describes how to configure system alias on FortiGate.

Solution

 

Configuration of system alias makes it possible to save collections of execute commands that can be run on demand.

 

config system alias

 

edit "router"
set command " get router info routing-table all"
next
end

alias router


 

Routing table for VRF=0
Codes:
K - kernel, C - connected, S - static, R - RIP, B - BGP
O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default

S*      0.0.0.0/0 [10/0] via 10.109.31.254, port1
C       10.109.16.0/20 is directly connected, port1
C       10.109.48.0/20 is directly connected, port2
C       172.16.190.0/24 is directly connected, port3
C       172.16.251.0/24 is directly connected, port5
C       172.16.252.0/24 is directly connected, port6

Note:

Multiple commands can be put into the same alias command.
Use the open quote at the beginning of the first command.
Separate the commands using the Enter key.
Close the quote only at the end of the last command.


config system alias

edit "system"

set command "show system dns"

show system ddns"

next

end

 

alias system

config system dns

set primary 172.16.190.216
set secondary 208.91.112.52
set domain "iba.local"

end

config system ddns
end

 

Contributors