飞塔防火墙fortigate的show 命令显示相关配置,而使用get命令显示实时状态
show full-configuration显示当前完全配置
show system global 查看主机名,管理端口
显示结果如下
config system global
set admin-sport 10443
set admintimeout 480
set hostname "VPN-FT3016-02"
set language simch
set optimize antivirus
set sslvpn-sport 443
set timezone 55
end
show system interface 查看接口配置
显示结果如下
edit "internal"
set vdom "root"
set ip 88.140.194.4 255.255.255.240
set allowaccess ping https ssh snmp http telnet
set dns-query recursive
set type physical
next
get system inter physical查看物理接口状态,如果不加physical参数可以显示逻辑vpn接口的状态
==[port1]
mode: static
ip: 218.94.115.50 255.255.255.248
status: up
speed: 100Mbps Duplex: Full
==[port2]
mode: static
ip: 88.2.192.52 255.255.255.240
status: up
speed: 1000Mbps Duplex: Full
show router static 查看默认路由的配置
显示结果如下
config router static
edit 1
set device "wan1"
set gateway 27.151.120.X
next
end
get router info routing-table static
查看路由表中的静态路由
S* 0.0.0.0/0 [10/0] via 218.94.115.49, port1
S 66.72.0.0/16 [120/0] via 88.0.195.130, HuaiAn
show router ospf 查看ospf 的相关配置
show system dns 查看dns的相关配置