Description | This article describes how to resolve the error 'Gateway is not unique for the same interface' when creating a link-monitor in the CLI. |
Scope | FortiGate. |
Solution |
When creating a new link-monitor in the CLI and entering the gateway IP, the following error might appear: 'Gateway is not unique for the same interface'.
This happens if there is an already existing link-monitor for the same interface with the same gateway.
For example, the following is already configured in the CLI:
config system link-monitor
edit "wan1"
set srcintf "wan1"
set server "8.8.8.8"
set gateway-ip 1.1.1.1
set protocol ping
next
end
When creating a new link-monitor, if the same interface and gateway are used, then the error will appear.
The following output is an example:
config system link-monitor (link-monitor) # edit "wan1-failover" (wan1-failover) # set srcintf "wan1" (wan1-failover) # set server 8.8.4.4 (wan1-failover) # set gateway-ip 1.1.1.1 (wan1-failover) # next (link-monitor) # end
To resolve this, look for existing link-monitor configurations.
config system link-monitor
(link-monitor) # showconfig system link-monitor edit "wan1" set srcintf "wan1" set server "8.8.8.8" set gateway-ip 1.1.1.1 next end (link-monitor) # The entry can be modified, or deleted as needed. To delete the existing entry from this example, enter the following:
config system link-monitor
delete wan1
end
|
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.