I have an EdgeRouter-X with OpenWRT 21.02. I set its LAN network to 192.168.10.0/24; the ER-X itself has an address of 192.168.10.1. Connecting it to the HG6245D (ISP router), here is what happens:
Getting an address via DHCP on the 192.168.1.0/24 network/using static IP is ok. Pinging 192.168.1.1 using the LuCI network utilities works.
A device connected to the ER-X is able to get an address via DHCP from the 192.168.10.0/24 network. Using static IP is ok as well. From the same device, pinging 192.168.10.1 and 192.168.1.1 both work.
The same device is not able to ping google.com. Pinging google.com using the LuCI network utilities does not work as well. The device has no access to the internet.
However, connecting the ER-X to the AC68U (and getting an address from the 192.168.2.0/24), internet works.
Any ideas on what could be wrong/ how I can debug this?
It's not clear if you've used DHCP or static IP on the ER-X WAN... your statement is a bit confusing/contradictory. If you setup with a static IP, you also need to assign the gateway (192.168.1.1) and DNS (192.168.1.1 or a public DNS).
If that isn't the issue, we need to see your ER-X configuration to know for sure.
Please copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
New info. I am able to ping IPv6 addresses using the LuCI network utilities when it is behind the ISP router. I tested it with Google's DNS servers 8.8.8.8 and 2001:4860:4860::8888.
What about the computers that sit behind the ER-X?
If they don't work, you might try disabling the VPNs and restoring a lan > wan forwarding rule. At that point, you'll be able to determine if it is a VPN routing issue or if it is something lower down. You can also take a backup and reset the device to defaults, test again, and then selectively restore the various settings from the backup.
What about the computers that sit behind the ER-X?
Doesn't work for devices behind the ER-X.
If they don't work, you might try disabling the VPNs and restoring a lan > wan forwarding rule. At that point, you'll be able to determine if it is a VPN routing issue or if it is something lower down. You can also take a backup and reset the device to defaults, test again, and then selectively restore the various settings from the backup.
I've reset the ER-X using the soft factory reset method, and it still shows the same behavior - internet ok when behind the AC68U, not ok when behind the ISP router. I have not changed anything except the LAN network address.