2
I was wishing to set all monitoring IPs to Google, 8.8.8.8
, but on second WAN it said, that this IP is already used for monitoring.
Why is this limitation exist?
This causes suspicion that monitoring is designed incorrectly, not sticking to monitored interface.
UPDATE
Suppose I set address 8.8.8.8
as monitor address for WAN1
. Then suppose WAN1
is down. Does this mean I can't browse internet, since 8.8.8.8
is DNS server and it is assigned to down gateway?
For monitoring, it sets up routes such that outbound connections to that IP are sent through a particular interface. It wants a different IP so those route can remain unique. – ssnobody – 2014-10-09T23:36:04.923
Isn't it unique due to different interfaces? – Dims – 2014-10-10T08:56:24.913
It isn't a unique IP. Think about what the routing table would look like. It would have two entries for the same IP, both having the same destination and differing only in their interface. How would it assign metrics to these? How would it ensure the monitoring for eth0 to 8.8.8.8 actually goes out eth0? How would it ensure the same for eth1? The routing table will say, when you receive a packet destined for 8.8.8.8 sent it somewhere via some interface, and that interface won't be BOTH interfaces. Use 4.2.2.2 or 8.8.4.4 – ssnobody – 2014-10-14T00:52:35.350
1I don't understand, sorry. If I set 8.8.8.8 to monitor one of gateways, will I be able to reach 8.8.8.8 at all when it is down? This is nameserver it should work even if one of interfaces if down – Dims – 2017-01-07T09:43:46.887