Technical Tip: How to configure 'vrdst' to monitor specific subnets under VRRP environment
| Description | This article explains how the 'vrrp-dst' command works with 2 monitored subnets and with the 'ignore-default-route enable/disable' command. |
| Scope | FortiGate VRRP-dst can monitor destination subnets based on the active routing table information. If 1 or 2 subnets are not present in the routing table, FortiGate can execute a VRRP-Failover for the configured VRRP interface. FortiGate can also ignore the default 0.0.0.0/0 route in case that the primary explicit subnet is deleted from the routing table. This is the expected behavior when FortiGate performs a VRRP-Failover with the 'vrdst' command configured:
|
| Solution | In the following scenario FortiGate is monitoring 2 subnets, they are both reachable through port1 and port3 and using port9 to configure VRRP.
FortiGate1 port9 configuration:
config system interface
FortiGate2 port9 configuration:
config system interface
Because FortiGate1 has a higher priority (200) and the 2 monitored subnets are installed in the routing table, this is elected as PRIMARY:
FortiGate1#get router info routing-table details
Routing table for VRF=0
ForitGate1#get router info vrrp
After disabling 192.168.5.0/24 subnet from the routing table. The VRRP environment continue to be the same with no changes.
FortiGate1# get router info routing-table details 192.168.5.0 Routing table for VRF=0
FortiGate1# get router info vrrp
Even though FortiGate1 knows how to reach the '192.168.5.0/24' subnet using the default route 0.0.0.0/0, it is ignoring it as it is stated by the 'set ignore-default-route enable' command. If this command is disabled (by default), it will assume that the 0.0.0.0/0 path is valid, and it will not execute VRRP Failover.
After deleting the second monitored subnet 192.168.100.0/24 from the routing table, VRRP failover is performed.
FortiGate1# get router info routing-table details 192.168.100.0 Routing table for VRF=0
FortiGate1# get router info vrrp |
