Created on
10-12-2022
05:47 AM
Edited on
10-12-2022
06:15 AM
By
Jean-Philippe_P
Description | This article describes the issue where if an interface is getting IP address via DHCP having same subnet as another interface, one of it will not show up in routing table. |
Scope | FortiGate, FortiOS. |
Solution |
Consider having two interfaces configured as follow: # config system interface set vrf 2
# config system interface set vrf 0
Both interfaces are configured in different VRFs.
wan1 is configured to get IP address via DHCP, while wan2 is configured with a static IP address.
If wan1 ends up receiving the same subnet as wan2, the connected route for one would not show in the routing table, even if it is in different VRFs.
# get router info routing-table details Routing table for VRF=0
Routing table for VRF=2
FortiGate does not allow having to the same subnet on different interfaces with default config. As in the above case, since it was received via DHCP, FortiGate configured it on wan1 but only one route showed up in the routing table as connected.
In such cases, it is suggested to configure 'set allow-subnet-overlap'.
# config system settings
This will allow both connected routes in the routing table.
# get router info routing-table details Routing table for VRF=0 C 192.168.1.0/24 is directly connected, wan2
Routing table for VRF=2 |