OpenWrt Forum Archive

Topic: Proper ADSL configurations for AR7 in 8.09

The content of this topic has been archived on 30 Mar 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

I only have experience with PPPoE and Bridged ADSL and have been advised that br2684ctl is only needed in a PPPoE configuration.

There are four different configurations that I'm aware of:
PPPoE
PPPoA
Bridged ADSL/NAT Router
ADSL Modem/Bridge

Obviously users are going to have to know their ISP's encapsulation method and VC settings, but please help me set the record straight on what the rest of the configuration needs to look like.
Once perfected, I'll start a new thread in the How-To section and add this info to the Wiki.

PPPoE (requires additional 'br2684ctl' package)

config atm-bridge
    option unit     0
    option encaps   llc
    option vpi      8
    option vci      35
    option payload  bridged # some ISPs need this set to 'routed'

config interface wan
    option ifname   nas0
    option proto    pppoe
    option username "my_username"
    option password "my_password"

PPPoA

config interface wan
    option ifname   atm0
    option proto    pppoa
    option encaps   llc
    option vpi      8
    option vci      35
    option username "my_username"
    option password "my_password"

Bridged ADSL/NAT Router
This is the configuration I've been using (with br2684ctl), please correct me if it's wrong

config atm-bridge
    option unit     0
    option encaps   llc
    option vpi      8
    option vci      35
    option payload  bridged # some ISPs need this set to 'routed'

config interface wan
    option ifname   nas0
    option proto    dhcp

ADSL Modem/Bridge
Need help understanding how this one works as I have no clue.

EDIT:  I'm also confused as to when "option payload routed" can be used.  Obviously you need to match what the ISP is configured for, so when is it used?

(Last edited by KillaB on 1 Oct 2008, 00:09)

Sorry, wrong thread

(Last edited by KillaB on 20 Oct 2008, 07:04)

This is what I have, and it works:

config atm-bridge
    option unit     0
    option encaps    llc
    option vpi      0
    option vci      35
    option payload    bridged # some ISPs need this set to 'routed'

config interface wan
    option ifname    'nas0'
    option proto    static
    option ipaddr    66.218.54.163
    option netmask    255.255.255.0
    option gateway    66.218.54.1
    option dns    '66.218.44.5 66.218.44.90'

If I wanted to run br2684ctl on an ar71xx device so that I can terminate nas0 there (ie. public IPv4 and 6in4 tunnel on the ar71xx device), would I simply need to comment out the WAN interface on the AR7 device?
I'm guessing that I'll also need to disable DHCP and NAT.

config atm-bridge
    option unit     0
    option encaps   llc
    option vpi      8
    option vci      35
    option payload  bridged # some ISPs need this set to 'routed'

#config interface wan
#    option ifname   nas0
#    option proto    dhcp

EDIT: What I'm trying to ask here is: how do I turn a DG834 into a simple modem. The stock firmware doesn't appear to have a simple bridging mode like the TD-8816 (which I'm considering buying).
I would run 6in4 directly on the DG834, but I've been having random lockups even without it and want to transfer the bulk of the load to my TL-WR1043ND.

(Last edited by KillaB on 23 Nov 2010, 18:30)

zhadoom wrote:

Look here: https://forum.openwrt.org/viewtopic.php … 33#p111033

I think that is the same as you want.

Unfortunately that's no help. If you look above, my OP already outlines that configuration.
What I'm after is: ADSL Modem/Bridge

You want a 1483 bridge.

In that configuration you need ( I guess ... ) to bridge 'br-lan' with 'nas0' to forward the packets from lan to the atm network.

I may try this in weekend to see if works.
I'm currently using a DSL-G604T ( AR7 ) with a november 2010 snapshot ( KAMIKAZE ). ACX111 wireless works with wpa e wpa2 using the new nl80211 driver.

Actually, that post might have helped. I appreciate the help zhadoom!
I never noticed the "atmdev" option until now. It's not included in the default /etc/config/network file for AR7. Not that it should matter.

My br2684ctl line before:
br2684ctl -b -c 0 -e 0 -p 1 -a 0.33

After:
br2684ctl -b -c 0 -e 0 -p 1 -a 0.0.33

I'm back to guessing what I need is similar to what I've been running, just without a WAN interface:

config atm-bridge
    option atmdev   0
    option unit     0
    option encaps   llc
    option vpi      0
    option vci      33
    option payload  bridged # some ISPs need this set to 'routed'

#config interface wan
#    option ifname   nas0
#    option proto    dhcp

And of course with dnsmasq disabled.

(Last edited by KillaB on 24 Nov 2010, 04:05)

Waiting for the results ....

Well, I don't know if it's proper, but here's what I ended up with and it works:

ADSL Modem/Bridge

config interface lan
    option type     bridge
    option ifname   'eth0 nas0'
    option proto    none
#   option ipaddr   192.168.0.1
#   option netmask  255.255.255.0
#   option nat      1
    option auto     1

config atm-bridge
    option atmdev   0
    option unit     0
    option encaps   llc
    option vpi      0
    option vci      33
    option payload  bridged

#config interface wan
#    option ifname   nas0
#    option proto    dhcp

I left out the acx drivers, iptables, dnsmasq, etc to make sure that memory usage is low.

With that config the modem doesn't become inacessible ? There's no ip at Lan.
I understand that even without an ip at the lan the bridge works, but further configurations ( in the modem ) will be a pain ....

Sorry, I should have stated that I have serial console.
I'm sure you can leave IP enabled, but I would recommend putting it in another subnet from the one used on your LAN.

(Last edited by KillaB on 27 Nov 2010, 22:00)

The discussion might have continued from here.