Static route to bridged PPPoE modem

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 10.0.0.0/24.

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.

You have to create another interface on the underlying interface of PPPoE

1 Like

You need to create another interface on eth0.2 with static IP and add that interface to the same firewall zone with wan.

1 Like

Yep, that did it, thanks!

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.