Hi,
my OpenWrt router is connected to a cable modem.
I get a public IPv4 via DHCP and IPv6 via DHCPv6.
There's no issue with internet access.
However, the routing table shows default gateway on WAN interface:
root@rb760igs:~# ip r
default via 37.xxx.xxx.254 dev wan src 37.xxx.xxx.112 metric 100
37.xxx.xxx.0/23 dev wan scope link metric 100
172.16.1.0/24 dev br-lan.100 scope link src 172.16.1.1
172.16.10.0/28 dev br-lan.10 scope link src 172.16.10.1
Can you please advise if this default gateway is correct?
The default gateway is the one to which all non-local traffic should be routed. It belongs to the interface that contains the path to the gateway, which means the wan in a basic routing configuration.