LEDE device as ADSL bridged modem

Hi All,

OAM from WP reporting in.

My previous posts in the WP thread for DM200 had details for vlan configuration on TPLink W8970 that I was using for testing.
The VLAN configuration for that router allows for a management port to to be configured on one vlan for easy access to LUCI GUI . I also had the DSL port and an ethernet port bridged to allow my EdgeRouter to handle all PPPoE and firewall duty.

The DSL bridge went to WAN interface on EdgeRouter, while the management port from W8970 went to management port on EdgeRouter on separate subnet.

Onto the DM200.

I have a slightly customized version of OpenWRT 18.06 running on my DM200 as of 1st Oct 2018 it has been online for less than 48 hours so time will tell how good this is.

The customization allow for

  • Australian NBN FTTN using OpenWRT
  • load firmware blob from Netgear GPL source that supports NBN FTTN
  • switch the stock firmware Annex A configuration over to Annex B.
  • hard code the VDSL / ADSL annex settings in the config to reduce the chance of locking the FTTN port.
  • configure the DM200 in bridge mode allowing for EdgeRouter to handle PPPoE and firewall
  • adjust the dsl stats on the status page to give a few more details.

To allow the router to work in bridge mode and keep access to the web UI i am using vlan configuration on a managed switch and a management port on the EdgeRouter.

Effectively
DM200 --> Switch VLAN 10
VLAN 10 Switch --> EdgeRouter WAN Port
VLAN10 Switch --> EdgeRouter MGMT port
EdgeRouter Lan Port --> Switch VLAN20
VLAN20 Switch ---> Reset of network.

Not exactly ideal - but currently functional.

Current settings in /etc/config/network

root@OpenWrt:~# cat /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config atm-bridge 'atm'
        option vpi '1'
        option vci '32'
        option encaps 'llc'
        option payload 'bridged'
        option nameprefix 'dsl'

config dsl 'dsl'
        option annex 'b'
        option tone 'bv'
        option xfer_mode 'ptm'
        option line_mode 'vdsl'
        option firmware '/lib/firmware/nbn_firmware.bin'
        option ds_snr_offset '10'

config interface 'lan'
        option type 'bridge'
        option proto 'static'
        option ipaddr '172.16.18.1'
        option netmask '255.255.255.0'
        option ifname 'dsl0 eth0'

config device 'lan_dev'
        option name 'eth0'
        option macaddr 'XXX'

config interface 'wan'
        option ifname 'dsl0'
        option proto 'none'
        option auto '1'

config device 'wan_dev'
        option name 'dsl0'
        option macaddr 'XXX'