An OpenWRT device does PPPoE via a simple VDSL router+modem that does not run OpenWRT and is configured in bridge mode:
config interface 'wan' option ifname 'eth0.2' option proto 'pppoe' option username 'user' option password 'pass'
The router/modem is configured as
192.168.1.1 with all DHCP disabled, per best practices for such configuration. The OpenWRT device is
10.0.0.1 and assigns local addresses within
How do I create a static route such that all devices on the
10.0.0.0/24 LAN can access
192.168.1.1? This is useful e.g. when needing to look up DSL line diagnostics.
Currently when I need to do that I connect a device directly to the modem with a static IP
192.168.1.2 and then access
192.168.1.1, but obviously it would be nice if the OpenWRT box would be able to handle this route natively.
I would assume something like this would work:
config route option interface 'wan' # or 'lan' option target '192.168.1.0' option netmask '255.255.255.0' option gateway '192.168.1.1'
But seems that's not enough.