Dynamic DNS issue with multi wan LAGG setup
-
I have a Netgate XG-7100. I am on the latest, 21.02.2. I have 2 WAN set up, I use the LAGG setup the XG-7100 shipped with for WAN on lagg0 vlan 4090 and WAN2 on lagg0 vlan 4092. It just has the 1 LAGG on ix2,ix3 just like when new.
I set up a Gateway Group with WAN as Tier 1 and WAN2 as Tier 2, trigger event is member down.
Then I set my default gateway to that group as well as the interface for dynamic dns.
I tried dynamic dns with both godaddy and then cloudflare, same results.
I also enabled verbose logging to try and get details, nothing helpful.
It will work when WAN is up, but if I disable WAN by pulling the cord, it will remove from the group like it should and go to WAN2, then if it runs dynamic dns on it's own or if I manually save and force it, it doesn't work, log is below.
I changed the DNS and IP below with x marks but they were all accurate.
I got similar output when I ran with Godaddy, so it's not a dynamic dns provider issue.
I can change the interface from my group to the WAN2 and it still does not work, so it's something breaks when WAN on LAGG0 goes down.
I can also go to command prompt and run the following:
curl -s --interface lagg0.4092 http://checkip.dyndns.org
That works, so the interface can get out and get the right IP.
Something else is failing and I'm just not getting it in the logs, I believe it's some bug related to LAGG and VLAN multi wan set up, or I have something set up wrong possibly.
I've considered just ordering a network card for the XG-7100 so I don't have to deal with this LAGG stuff and have a real interface.
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: phpDynDNS (xxx): UNKNOWN ERROR -
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: phpDynDNS (xxx): PAYLOAD:
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: Dynamic DNS cloudflare (xxx.xxx.xx): _checkStatus() starting.
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: Response Data:
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: Response Header:
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: Dynamic DNS cloudflare (xxx.xxx.xx): _update() starting.
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: Dynamic DNS (xxx.xxx.xx): running get_failover_interface for wan. found lagg0.4090
May 3 17:52:47 php-fpm 12885 /services_dyndns_edit.php: Dynamic DNS cloudflare (xxx.xxx.xx): x.x.x.x extracted from local system.
May 3 17:52:46 php-fpm 12885 /services_dyndns_edit.php: Dynamic DNS: updatedns() starting -
More info, I plugged the WAN interface back in, and before the gateway status came up, dynamic dns ran, picked up the WAN2 ip, and updated cloudflare, all worked fine.
So something fails on dynamic dns if WAN isn't connected, it's not about it being up in the gateway group, but having a connection.
I'm not sure if it's about having a link or not, this time the cable was unplugged and plugged back in. The first time the Google Fiber actually went out, error and no signal at the ONT. That also caused this, not sure if that make the link die or just have no connection.
-
After I connected WAN back it stayed out of the group and marked as down. I released and renewed it's IP, that didn't work. I then just had to go to system, routing, and on the gateways page change nothing, just hit save and then apply. Then it came right back online into the gateway group, routing started working to it, and dynamic dns picked up and also updated the ip. This should have happened automatically and is I guess another issue but maybe related.
Doesn't seem I'm having a lot of success with automatic things with dual WAN's on a LAGG with an XG-7100