#show router staticLink-monitor (gateway detect):
config router static
edit 1
set gateway 192.168.1.1
set device "wan1"
next
edit 2
set gateway 192.168.2.1
set device "wan2"
next
end
config system link-monitorWAN1 interface configuration:
edit "wan1-ping-server"
set srcintf "wan1"
set server "8.8.8.8"
set update-cascade-interface enable < -- Update cascade interface enable
set update-static-route enable < -- Update static route enable
next
end
config system interfaceThe System Events can be monitored
edit "wan1"
set vdom "root"
set ip 192.168.1.254 255.255.255.0
set allowaccess ping https ssh
set fail-detect enable < -- Enable fail detect
set fail-detect-option detectserver link-down < -- Detectserver as link-down
set fail-alert-method link-down < -- Fail alert method Link-down
set fail-alert-interfaces "port3" < -- Independent interface port3
set type physicalset role wan
set snmp-index 1
next
end
# get router info routing-table all-To view the physical interface status:
# get sys interface physical- To check the link-monitor status:
# diag sys link-monitor status
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2024 Fortinet, Inc. All Rights Reserved.