OpenWrt Forum Archive

Topic: Proper way to get br2684ctl run at boot and ifup/down wan?

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

I am using 2.6-ar7 with a configuration like this:

config interface wan
        option ifname nas0
        option device ppp
        option proto pppoe
        option mtu 1400
        option vpi <ISP VPI>
        option vci <ISP VCI>
        option username <user>
        option password <passwd>

and currently I have to invoke this manually after boot, at which point everything seems to continue automatically due to hotplug:

br2684ctl -c 0 -a <ISP VPI>.<ISP VCI> &

Is there an optional package or some conventional way to get this to happen automatically, reading the VPC.VCI info from the network config file?  I think one problem is that hotplug won't work easily since the event to wait on is that the ADSL modem DSP gets to "DSL in sync" state.

(Last edited by karl on 25 Apr 2007, 07:25)

Don't foget the ATM bridging.  This sets up br2684ctl automatically (as long as you're using build 7024 or newer).
Have another look at https://dev.openwrt.org/browser/trunk/t … ig/network

For PPPoE you will need the following:

## Example for ATM bridging.
## Useful for PPPoE or IP over ATM. Will create 'nas${unit}'
#
 config atm-bridge
    option unit      0
    option encaps    llc
    option vpi       8
    option vci       35


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

Great, thanks!  Because I had a customized file in files/etc/config/network, I never saw this revised default with the comments showing how to use it, even though I have checked out the more recent code...

The discussion might have continued from here.