OpenWrt Forum Archive

Topic: up and running... Help with DSL badly needed

The content of this topic has been archived between 12 Apr 2018 and 23 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Hi everyone

I have netgear dg834g v2 on which i installed http://downloads.openwrt.org/snapshots/ … uashfs.bin. I can telnet the box and the ethernet works perfectly but the problem is that I don't know how to configure DSL on this. I am now stuck as i cant come online (currently at some other computer).

I am a newbie as far as openwrt is concerned so pleeeeeeeeeeeeeease....... help me out of this trouble.

Any help is deeply appreciated.

Awais

I have an ar7 I get my net up using Network ---> ppp ---> ppp-mod-pppoa and Kernel modules ---> Network Devices ---> annex A when compiling, then this in config/network

config interface wan
        option ifname   ppp0
        option unit     0
        option proto    pppoa
        option encaps   vc
        option vpi      0
        option vci      38
        option username (your username here)
        option password (your password here)

And then edit /etc/init.d/network in the boot() section replace /sbin/wifi up with start and I'm away.

Thankyou very much Wipster for quick reply.

My dsl provider uses pppoe not pppoa. Can i use the same setting and just replace pppoa with pppoe?

Ah I'm not sure about pppoe try Network ---> ppp ---> ppp-mod-pppoe and Base system ---> br2684ctl with with something like

config atm-bridge
        option unit     0
        option encaps   vc
        option vpi      0
        option vci      38

config interface wan
        option ifname   nas0
        option proto    pppoe
        option username (your username here)
        option password (your password here)

I just edited the /etc/config/network file and added the config options for pppoe and now my router is neither pinging nor accepting ssh or telnet requests.

Do you know how to reset the router. The pin button method doesnt seem to work.

(Last edited by symbiansucks on 17 Oct 2008, 16:42)

Reflashing via ADAM2 if nothing else works, there is a wiki for the dg834g I'm afraid I dont know about pppoe.

Thanks again for reply

I have reflashed the firmware via adam2.

What I want to do is to use the builtin modem in the netgear DSL router. Is it possible to use the builtin modem?

(Last edited by symbiansucks on 18 Oct 2008, 10:42)

symbiansucks wrote:

What I want to do is to use the builtin modem in the netgear DSL router. Is it possible to use the builtin modem?

Yes, of course.  Do you have the modulation variable set in ADAM2?
What Annex is included in the image, and is it correct for your location in the world?

If your modulation mode is set correctly and you're using the proper VCI/VPI settings for your ISP, you should end up with the word SHOWTIME using the following command:

# cat /proc/avalanche/avsar_modem_training

Once your modem is trained, DSL stats can be found using the following command:

# cat /proc/avalanche/avsar_modem_stats

I think you might have made a mistake when editing the network config file before and that is why all networking was broken afterwards.  it would be best to be logged in via the serial console in order to be able to fix this sort of thing.

(Last edited by Wodin on 18 Oct 2008, 22:19)

Thankyou for your reply

@KillaB
I didnot set any modulation variable in ADAM2. How can I do it?

I donot know what annex the image is for but my router is annex-A.
I used this image http://downloads.openwrt.org/snapshots/ … uashfs.bin

Is it the correct one?

Also there is no /proc/avalanche/ directory. Is this because the modem is setup as yet

symbiansucks wrote:

I didnot set any modulation variable in ADAM2. How can I do it?

There may be another way to do it, but I like to hard code it in ADAM2 the same as setting the my_ipaddress variable.
From the ADAM2 FTP prompt, use:

quote "SETENV modulation,GDMT"

Other common modes:
MMODE
T1413
GDMT
GLITE
AD2MOD (ADSL2)
A2PMOD (ADSL2+, used by my ISP)

symbiansucks wrote:

I donot know what annex the image is for but my router is annex-A.
I used this image http://downloads.openwrt.org/snapshots/ … uashfs.bin

I would imagine that image is using AnnexA (DSL over POTS).  You can check by running:

# opkg list_installed

AnnexB is used for DSL over ISDN (eg. Germany)

symbiansucks wrote:

Also there is no /proc/avalanche/ directory. Is this because the modem is setup as yet

Hmmm, again, better check that kmod-sangam-atm-annex-a is installed.

Thanks again for reply

Yes i am using DSL over POTS so it is Annex-a.

I checked opkg list_installed but there is no package named kmod-sangam-atm-annex-a. My isp is using PPPoE and not PPPoA so is there some different package for this.

Moreover now the ftp server of bootloader is not showing up as it used to. Before flashing openwrt firmware i did set the ip address for the bootloader. Now in kamikaze there seems to be no option to set the ip-address for the bootloader the guides on the net are suggesting to use the nvram command but it is not available on 2.6 kernel.

(Last edited by symbiansucks on 19 Oct 2008, 11:20)

symbiansucks wrote:

I checked opkg list_installed but there is no package named kmod-sangam-atm-annex-a. My isp is using PPPoE and not PPPoA so is there some different package for this.

Well, this would be the reason you're missing the /proc/avalanche/ directory.

Better install it using the following command:

# opkg install http://downloads.openwrt.org/snapshots/ar7/packages/kmod-sangam-atm-annex-a_2.6.26.5+D7.03.01.00-ar7-R2_mipsel.ipk
symbiansucks wrote:

Moreover now the ftp server of bootloader is not showing up as it used to. Before flashing openwrt firmware i did set the ip address for the bootloader. Now in kamikaze there seems to be no option to set the ip-address for the bootloader the guides on the net are suggesting to use the nvram command but it is not available on 2.6 kernel.

Yes, the ADAM2 FTP window is a very short one and can be very tricky to get into.  Things are way easier if you have a serial console connection.

You also cannot modify environment variables from Kamikaze as you've stated.  I already have a ticket open on that one: https://dev.openwrt.org/ticket/1654

Thankyou so much killaB. You have helped me alot.

I have installed kmod-sangam-annex-a package and also set the enviornment variable. The avalanche directory is here but it cant seem to load the wan interface. below is the output of ifup wan.

 
root@OpenWrt:/etc# ifup wan
/usr/sbin/pppd: unrecognized option 'nic-nas0'
pppd version 2.4.3
Usage: /usr/sbin/pppd [ options ], where options are:
    <device>    Communicate over the named device
    <speed>        Set the baud rate to <speed>
    <loc>:<rem>    Set the local and/or remote interface IP
            addresses.  Either one may be omitted.
    asyncmap <n>    Set the desired async map to hex <n>
    auth        Require authentication from peer
        connect <p>     Invoke shell command <p> to set up the serial line
    crtscts        Use hardware RTS/CTS flow control
    defaultroute    Add default route through interface
    file <f>    Take options from file <f>
    modem        Use modem control lines
    mru <n>        Set MRU value to <n> for negotiation
See pppd(8) for more options.

below is the log output from syslog.

Jan  1 00:00:06 OpenWrt syslog.info syslogd started: BusyBox v1.11.2
Jan  1 00:00:06 OpenWrt user.notice kernel: klogd started: BusyBox v1.11.2 (2008-10-18 12:28:54 CDT)
Jan  1 00:00:08 kernel: br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Jan  1 00:00:08 kernel: device eth0 entered promiscuous mode
Jan  1 00:00:09 kernel: br-lan: port 1(eth0) entering learning state
Jan  1 00:00:09 kernel: br-lan: topology change detected, propagating
Jan  1 00:00:09 kernel: br-lan: port 1(eth0) entering forwarding state
Jan  1 00:00:09 kernel: PHY: 0:10 - Link is Down
Jan  1 00:00:10 kernel: NET: Registered protocol family 8
Jan  1 00:00:10 kernel: NET: Registered protocol family 20
Jan  1 00:00:10 kernel: PPP generic driver version 2.4.2
Jan  1 00:00:11 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 00:00:12 kernel: nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
Jan  1 00:00:13 kernel: registered device TI Avalanche SAR
Jan  1 00:00:13 kernel: Sangam detected
Jan  1 00:00:13 kernel: requesting firmware image "ar0700xx.bin"
Jan  1 00:00:13 kernel: firmware: requesting ar0700xx.bin
Jan  1 00:00:17 kernel: avsar firmware released
Jan  1 00:00:17 kernel: tn7dsl_set_modulation : Setting mode to 0x3
Jan  1 00:00:17 kernel: Creating new root folder avalanche in the proc for the driver stats 
Jan  1 00:00:17 kernel: Texas Instruments ATM driver: version:[7.03.01.00]
Jan  1 00:00:18 OpenWrt user.info : Loading defaults
Jan  1 00:00:19 OpenWrt user.info : Loading synflood protection
Jan  1 00:00:19 OpenWrt user.info : Adding custom chains
Jan  1 00:00:20 OpenWrt user.info : Loading zones
Jan  1 00:00:21 OpenWrt user.info : Loading rules
Jan  1 00:00:21 OpenWrt user.info : Loading forwarding
Jan  1 00:00:21 OpenWrt user.info : Loading redirects
Jan  1 00:00:21 OpenWrt user.info : Loading includes
Jan  1 00:00:22 OpenWrt user.notice root: adding br-lan to firewall zone lan
Jan  1 00:00:23 OpenWrt authpriv.info dropbear[647]: Running in background
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: started, version 2.45 cachesize 150
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: compile time options: IPv6 GNU-getopt ISC-leasefile no-DBus no-I18N TFTP
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: DHCP, IP range 192.168.0.100 -- 192.168.0.250, lease time 12h
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: using local addresses only for domain lan
Jan  1 00:00:28 OpenWrt daemon.warn dnsmasq[673]: no servers found in /tmp/resolv.conf.auto, will retry
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: read /etc/hosts - 1 addresses
Jan  1 00:00:28 OpenWrt daemon.err dnsmasq[673]: failed to read /etc/ethers:No such file or directory
Jan  1 00:00:29 kernel: ar7_wdt: enabling watchdog timer
Jan  1 00:00:39 OpenWrt authpriv.info dropbear[722]: Child connection from 192.168.0.4:37336
Jan  1 00:00:44 OpenWrt authpriv.notice dropbear[722]: password auth succeeded for 'root' from 192.168.0.4:37336
Jan  1 00:01:55 kernel: NET: Registered protocol family 24
Jan  1 00:01:55 OpenWrt daemon.info pppd[763]: Plugin rp-pppoe.so loaded.
Jan  1 00:01:55 OpenWrt daemon.err pppd[763]: unrecognized option 'nic-nas0'
Jan  1 00:04:37 OpenWrt daemon.info pppd[804]: Plugin rp-pppoe.so loaded.
Jan  1 00:04:37 OpenWrt daemon.err pppd[804]: unrecognized option 'nic-nas0'

Here is my /etc/config/network file

root@OpenWrt:/etc# 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 'interface' 'lan'
    option 'type' 'bridge'
    option 'ifname' 'eth0'
    option 'proto' 'static'
    option 'netmask' '255.255.255.0'
    option 'nat' '1'
    option 'macaddr' ''
    option 'ip6addr' ''
    option 'gateway' ''
        option 'gateway' ''             
        option 'ip6gw' ''               
        option 'ipaddr' '192.168.0.1'   
                                        
config 'atm-bridge'                     
        option 'unit' '0'               
        option 'payload' 'bridged'      
                                        
config 'interface' 'wan'                
        option 'ifname' 'nas0'          
        option 'proto' 'pppoe'          
        option 'encaps' 'vc-mux'        
        option 'vpi' '0'             
        option 'vci' '103'           
        option 'username' ''     
        option 'password' ''  
        option 'type' 'bridge'       
        option 'macaddr' ''          
        option 'mtu' ''            
        option 'keepalive' ''      
        option 'defaultroute' '1'  
        option 'ppp_redial' 'persist'
        option 'ipaddr' ''           
        option 'ip6addr' ''          
        option 'netmask' ''          
        option 'gateway' ''          
        option 'ip6gw' ''

(Last edited by symbiansucks on 20 Oct 2008, 06:11)

No problem, I'm glad to help.

Do you have the br2684ctl package?  It's needed for PPPoE.
Please see my post here: http://forum.openwrt.org/viewtopic.php?id=17161

By the looks of all the extra "blank" settings I'm assuming you're using X-Wrt?
Make sure you have the proper VCI/VPI and encapsulation settings.  These can usually be found on DSLReports if you're unsure (google VPI and your ISP).

You should see the following in syslog once successful.

Oct 19 12:36:53 192.168.1.1 : br2684ctl[753]: Interface "nas0" created sucessfully
Oct 19 12:37:03 192.168.1.1 : br2684ctl[753]: Communicating over ATM 0.0.33, encapsulation: LLC
Oct 19 12:37:13 192.168.1.1 : br2684ctl[753]: Interface configured
Oct 19 12:37:23 192.168.1.1 : br2684ctl[757]: RFC 1483/2684 bridge daemon started

Don't forget to check /proc/avalance/avsar_modem_training for SHOWTIME.

(Last edited by KillaB on 20 Oct 2008, 06:31)

Yes i have just installed br2684ctl package.

nas0 is showing up. but it can't seem to connect.

Yes i am using x-wrt

This is the /proc/avalanche/avsar_modem_stats

root@OpenWrt:/# cat /proc/avalanche/avsar_modem_stats 

AR7 DSL Modem Statistics:
--------------------------------
[DSL Modem Stats]
    US Connection Rate:    896    DS Connection Rate:    4096
    DS Line Attenuation:    49    DS Margin:        14
    US Line Attenuation:    25    US Margin:        9
    US Payload :        0    DS Payload:        384
    US Superframe Cnt :    8084    DS Superframe Cnt:    8084
    US Transmit Power :    12    DS Transmit Power:    18
    LOS errors:        0    SEF errors:        0
    Errored Seconds:    0    Severely Err Secs:    0
    Frame mode:        3    Max Frame mode:        0
    Trained Path:        1    US Peak Cell Rate:    2113
    Trained Mode:        3    Selected Mode:        3
    ATUC Vendor Code:    4753504E    ATUC Revision:    1
    Hybrid Selected:    1    Trellis:        1
    Showtime Count:        3    DS Max Attainable Bit Rate: 6304 kbps
    BitSwap:        1    US Max Attainable Bit Rate:    n/a
    Annex:             AnxA    psd_mask_qualifier: 0x0000
    Power Management Status: L0    DS HLINSC: 0
    US ACTPSD:         -345    DS ACTPSD: -372
    Total init. errors:     0    Total init. timeouts: 0
    Showtime init. errors:     0    Showtime init. timeouts: 0
    Last showtime init. errors: 0    Last showtime init. timeouts: 0
    ATUC ghsVid:  ff b5 47 53 50 4e 00 08
    T1413Vid: 00 00        T1413Rev: 00        VendorRev: 00
    ATUR ghsVid:  b5 00 54 53 54 43 00 00
    T1413Vid: 00 00    T1413Rev: 00    VendorRev: 00

    [Upstream (TX) Interleave path]
    CRC:     1    FEC:     0    NCD:     0
    LCD:     0    HEC:     68

    [Downstream (RX) Interleave path]
    CRC:     0    FEC:     897    NCD:     0
    LCD:     0    HEC:     0

    [Upstream (TX) Fast path]
    CRC:     0    FEC:     0    NCD:     1
    LCD:     0    HEC:     0

    [Downstream (RX) Fast path]
    CRC:     0    FEC:     0    NCD:     0
    LCD:     0    HEC:     0

[ATM Stats]
    [Upstream/TX]
    Good Cell Cnt:    0
    Idle Cell Cnt:    290413

    Tx Packets Dropped Count:    0
    Tx Bad Packets Count:    0

    [Downstream/RX)]
    Good Cell Cnt:    8
    Idle Cell Cnt:    1327433
    Bad Hec Cell Cnt:    0
    Overflow Dropped Cell Cnt:    0
    Rx Packets Dropped Count:    0
    Rx Bad Packets Count:    0


[SAR AAL5 Stats]
    Tx PDU's:    0
    Rx PDU's:    0
    Tx Total Bytes:    0
    Rx Total Bytes:    0
    Tx Total Error Counts:    0
    Rx Total Error Counts:    0


[OAM Stats]
    Near End F5 Loop Back Count:    0
    Near End F4 Loop Back Count:    0
    Far End F5 Loop Back Count:    0
    Far End F4 Loop Back Count:    0
    SAR OAM Ping Response Drop Count=0

When i start br2684ctl via /etc/init.d/br2684ctl restart. It says encapsulation LLC but i have set encaps as vc. Can this be the problem

root@OpenWrt:/# /etc/init.d/br2684ctl restart
br2684ctl[1593]: Interface "nas0" created sucessfully
br2684ctl[1593]: Communicating over ATM 0.8.35, encapsulation: LLC
br2684ctl[1593]: Interface configured

Do you see both nas0 and ppp0 interfaces when running "ifconfig"?

Are you running bridged or routed mode?  bridged mode is standard.

There is nas0 but no ppp0.

I am using brigded mode.

config 'atm-bridge'                     
        option 'unit' '0'               
        option 'payload' 'bridged'

Ok, whats pppd saying now that you've installed br2684ctl?

Your previous output looked wrong:
Jan  1 00:01:55 OpenWrt daemon.info pppd[763]: Plugin rp-pppoe.so loaded.
Jan  1 00:01:55 OpenWrt daemon.err pppd[763]: unrecognized option 'nic-nas0'
Jan  1 00:04:37 OpenWrt daemon.info pppd[804]: Plugin rp-pppoe.so loaded.
Jan  1 00:04:37 OpenWrt daemon.err pppd[804]: unrecognized option 'nic-nas0'

Jan  1 00:00:06 OpenWrt syslog.info syslogd started: BusyBox v1.11.2
Jan  1 00:00:06 OpenWrt user.notice kernel: klogd started: BusyBox v1.11.2 (2008-10-18 12:28:54 CDT)
Jan  1 00:00:08 kernel: br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Jan  1 00:00:08 kernel: device eth0 entered promiscuous mode
Jan  1 00:00:09 kernel: br-lan: port 1(eth0) entering learning state
Jan  1 00:00:09 kernel: br-lan: topology change detected, propagating
Jan  1 00:00:09 kernel: br-lan: port 1(eth0) entering forwarding state
Jan  1 00:00:09 kernel: PHY: 0:10 - Link is Down
Jan  1 00:00:10 kernel: NET: Registered protocol family 8
Jan  1 00:00:10 kernel: NET: Registered protocol family 20
Jan  1 00:00:10 kernel: PPP generic driver version 2.4.2
Jan  1 00:00:11 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 00:00:12 kernel: nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
Jan  1 00:00:14 kernel: registered device TI Avalanche SAR
Jan  1 00:00:14 kernel: Sangam detected
Jan  1 00:00:14 kernel: requesting firmware image "ar0700xx.bin"
Jan  1 00:00:14 kernel: firmware: requesting ar0700xx.bin
Jan  1 00:00:17 kernel: avsar firmware released
Jan  1 00:00:17 kernel: tn7dsl_set_modulation : Setting mode to 0x3
Jan  1 00:00:17 kernel: Creating new root folder avalanche in the proc for the driver stats 
Jan  1 00:00:17 kernel: Texas Instruments ATM driver: version:[7.03.01.00]
Jan  1 00:00:18 OpenWrt user.info : Loading defaults
Jan  1 00:00:19 OpenWrt user.info : Loading synflood protection
Jan  1 00:00:19 OpenWrt user.info : Adding custom chains
Jan  1 00:00:20 OpenWrt user.info : Loading zones
Jan  1 00:00:21 OpenWrt user.info : Loading rules
Jan  1 00:00:21 OpenWrt user.info : Loading forwarding
Jan  1 00:00:21 OpenWrt user.info : Loading redirects
Jan  1 00:00:21 OpenWrt user.info : Loading includes
Jan  1 00:00:22 OpenWrt user.notice root: adding br-lan to firewall zone lan
Jan  1 00:00:23 OpenWrt authpriv.info dropbear[648]: Running in background
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[674]: started, version 2.45 cachesize 150
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[674]: compile time options: IPv6 GNU-getopt ISC-leasefile no-DBus no-I18N TFTP
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[674]: DHCP, IP range 192.168.0.100 -- 192.168.0.250, lease time 12h
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[674]: using local addresses only for domain lan
Jan  1 00:00:28 OpenWrt daemon.warn dnsmasq[674]: no servers found in /tmp/resolv.conf.auto, will retry
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[674]: read /etc/hosts - 1 addresses
Jan  1 00:00:28 OpenWrt daemon.err dnsmasq[674]: failed to read /etc/ethers:No such file or directory
Jan  1 00:00:29 kernel: ar7_wdt: enabling watchdog timer
Jan  1 00:04:07 OpenWrt authpriv.info dropbear[723]: Child connection from 192.168.0.4:40274
Jan  1 00:04:11 OpenWrt authpriv.notice dropbear[723]: password auth succeeded for 'root' from 192.168.0.4:40274
Jan  1 00:06:11 OpenWrt local2.notice br2684ctl[798]: Interface "nas0" created sucessfully
Jan  1 00:06:11 OpenWrt local2.notice br2684ctl[798]: Communicating over ATM 0.0.103, encapsulation: VC mux
Jan  1 00:06:11 OpenWrt local2.info br2684ctl[798]: Interface configured
Jan  1 00:06:11 OpenWrt local2.info br2684ctl[802]: RFC 1483/2684 bridge daemon started
Jan  1 00:06:12 kernel: br-wan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Jan  1 00:06:12 kernel: device nas0 entered promiscuous mode
Jan  1 00:06:12 kernel: br-wan: port 1(nas0) entering learning state
Jan  1 00:06:12 kernel: br-wan: topology change detected, propagating
Jan  1 00:06:12 kernel: br-wan: port 1(nas0) entering forwarding state
Jan  1 00:08:39 kernel: DSL in Sync
Jan  1 00:08:47 kernel: tn7atm_close: closing 0.0.103.5
Jan  1 00:08:47 kernel: tn7sar_teardown_complete called for channel 0
Jan  1 00:08:47 kernel: ChannelTeardown returned rc = 0
Jan  1 00:08:47 OpenWrt local2.info br2684ctl[802]: Killed by a signal
Jan  1 00:08:47 OpenWrt local2.notice br2684ctl[802]: Daemon terminated
Jan  1 00:08:47 kernel: br-wan: port 1(nas0) entering disabled state
Jan  1 00:08:47 kernel: device nas0 left promiscuous mode
Jan  1 00:08:47 kernel: br-wan: port 1(nas0) entering disabled state
Jan  1 00:08:48 OpenWrt local2.notice br2684ctl[1266]: Interface "nas0" created sucessfully
Jan  1 00:08:48 OpenWrt local2.notice br2684ctl[1266]: Communicating over ATM 0.0.103, encapsulation: VC mux
Jan  1 00:08:48 OpenWrt local2.info br2684ctl[1266]: Interface configured
Jan  1 00:08:48 OpenWrt local2.info br2684ctl[1270]: RFC 1483/2684 bridge daemon started
Jan  1 00:08:49 kernel: device nas0 entered promiscuous mode
Jan  1 00:08:49 kernel: br-wan: port 1(nas0) entering learning state
Jan  1 00:08:49 kernel: br-wan: topology change detected, propagating
Jan  1 00:08:49 kernel: br-wan: port 1(nas0) entering forwarding state
Jan  1 00:09:39 kernel: DSL out of sync

Now that i removed the rj11 pin log says dsl out of sync so atleast it has properly started the nas0 interface but i think the problem lies with pppd because there is no auth going on with isp (just a thought).

Is there someway i can manually run pppd? Also there is no ppp0 interface


I have the following packages installed. Is some package missing to run pppd

root@OpenWrt:/etc/config# opkg list_installed
base-files-ar7 - 13-r13003 - 
br2684ctl - 20040226-1 - 
bridge - 1.4-1 - 
busybox - 1.11.2-1 - 
dnsmasq - 2.45-1 - 
dropbear - 0.51-2 - 
firewall - 1-1 - 
haserl - 0.9.24-1 - 
hotplug2 - 0.9+r102-2 - 
iptables - 1.4.0-1 - 
iptables-mod-conntrack - 1.4.0-1 - 
iptables-mod-nat - 1.4.0-1 - 
kernel - 2.6.26.5-ar7-1 - 
kmod-atm - 2.6.26.5-ar7-1 - 
kmod-ipt-conntrack - 2.6.26.5-ar7-1 - 
kmod-ipt-core - 2.6.26.5-ar7-1 - 
kmod-ipt-nat - 2.6.26.5-ar7-1 - 
kmod-ipt-nathelper - 2.6.26.5-ar7-1 - 
kmod-ppp - 2.6.26.5-ar7-1 - 
kmod-pppoe - 2.6.26.5-ar7-1 - 
kmod-sangam-atm-annex-a - 2.6.26.5+D7.03.01.00-ar7-R2 - 
libgcc - 4.1.2-13 - 
libuci - 0.6.2-1 - 
linux-atm - 2.4.1-1 - 
mtd - 8 - 
opkg - 4564-1 - 
ppp - 2.4.3-10 - 
ppp-mod-pppoe - 2.4.3-10 - 
uci - 0.6.2-1 - 
uclibc - 0.9.29-13 - 
udevtrigger - 106-1 - 
webif - 0.3-4520 -

(Last edited by symbiansucks on 20 Oct 2008, 07:36)

Not sure how to help beyond this point.  Sure you can run pppd manually, but I wouldn't bother.

The only things I can stress are proper VPI/VCI settings and that all other options in "/etc/config/network" are correct.  You may also want to try changing the payload to routed.

Working PPPoE config on my fathers DG834:

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    pppoe
    option username "my_username"
    option password "my_password"

I was just contacted by my ISP and they told me that they changed the Modulation setting to G.DMT.BIS and the Encaps to LLC.

I changed them in the /etc/network/config file and restarted the init scripts but it still doesnot connect.

Below is the ps aux output. It may show you the options the commands are using.

root@OpenWrt:/# ps aux
  PID USER       VSZ STAT COMMAND
    1 root      1956 S    init       
    2 root         0 SW<  [kthreadd]
    3 root         0 SW<  [ksoftirqd/0]
    4 root         0 SW<  [events/0]
    5 root         0 SW<  [khelper]
   27 root         0 SW<  [kblockd/0]
   49 root         0 SW   [pdflush]
   50 root         0 SW   [pdflush]
   51 root         0 SW<  [kswapd0]
   52 root         0 SW<  [aio/0]
   68 root         0 SW<  [mtdblockd]
  255 root         0 SWN  [jffs2_gcd_mtd4]
  267 root      1956 S    logger -s -p 6 -t  
  268 root      1956 S    init       
  277 root      1968 S    /sbin/syslogd -C16 -S 
  279 root      1948 S    /sbin/klogd 
  288 root      1968 S    syslogd -C16 
  290 root      1948 S    klogd 
  302 root      1128 S    /sbin/hotplug2 --override --persistent --max-children
  647 root      1932 S    /usr/sbin/dropbear -p 22 
  652 root      1956 S    /usr/sbin/httpd -p 80 -h /www -r OpenWrt 
  673 nobody    1272 S    /usr/sbin/dnsmasq -D -y -Z -b -E -s lan -S /lan/ -l /
  717 root      1948 S    watchdog -t 5 /dev/watchdog 
  722 root      1988 R    /usr/sbin/dropbear -p 22 
  723 root      1972 S    -ash 
  848 root      1668 S    br2684ctl -b -c 0 -e 0 -p 1 -a 0.103 
 1113 root      2552 S    /usr/sbin/pppd plugin rp-pppoe.so mtu 1492 mru 1492 n
 1134 root      1956 R    ps aux

The PPP interface is also not appearing in ifconfig

PPPD is still saying unable to connect

Jan  1 00:00:06 OpenWrt syslog.info syslogd started: BusyBox v1.11.2
Jan  1 00:00:06 OpenWrt user.notice kernel: klogd started: BusyBox v1.11.2 (2008-10-18 12:28:54 CDT)
Jan  1 00:00:08 kernel: br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Jan  1 00:00:08 kernel: device eth0 entered promiscuous mode
Jan  1 00:00:09 kernel: br-lan: port 1(eth0) entering learning state
Jan  1 00:00:09 kernel: br-lan: topology change detected, propagating
Jan  1 00:00:09 kernel: br-lan: port 1(eth0) entering forwarding state
Jan  1 00:00:09 kernel: PHY: 0:10 - Link is Down
Jan  1 00:00:10 kernel: NET: Registered protocol family 8
Jan  1 00:00:10 kernel: NET: Registered protocol family 20
Jan  1 00:00:10 kernel: PPP generic driver version 2.4.2
Jan  1 00:00:11 kernel: ip_tables: (C) 2000-2006 Netfilter Core Team
Jan  1 00:00:12 kernel: nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
Jan  1 00:00:13 kernel: registered device TI Avalanche SAR
Jan  1 00:00:13 kernel: Sangam detected
Jan  1 00:00:13 kernel: requesting firmware image "ar0700xx.bin"
Jan  1 00:00:13 kernel: firmware: requesting ar0700xx.bin
Jan  1 00:00:17 kernel: avsar firmware released
Jan  1 00:00:17 kernel: tn7dsl_set_modulation : Setting mode to 0x0
Jan  1 00:00:17 kernel: Creating new root folder avalanche in the proc for the driver stats 
Jan  1 00:00:17 kernel: Texas Instruments ATM driver: version:[7.03.01.00]
Jan  1 00:00:18 OpenWrt user.info : Loading defaults
Jan  1 00:00:19 OpenWrt user.info : Loading synflood protection
Jan  1 00:00:19 OpenWrt user.info : Adding custom chains
Jan  1 00:00:20 OpenWrt user.info : Loading zones
Jan  1 00:00:21 OpenWrt user.info : Loading rules
Jan  1 00:00:21 OpenWrt user.info : Loading forwarding
Jan  1 00:00:21 OpenWrt user.info : Loading redirects
Jan  1 00:00:21 OpenWrt user.info : Loading includes
Jan  1 00:00:22 OpenWrt user.notice root: adding br-lan to firewall zone lan
Jan  1 00:00:23 OpenWrt authpriv.info dropbear[647]: Running in background
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: started, version 2.45 cachesize 150
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: compile time options: IPv6 GNU-getopt ISC-leasefile no-DBus no-I18N TFTP
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: DHCP, IP range 192.168.0.100 -- 192.168.0.250, lease time 12h
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: using local addresses only for domain lan
Jan  1 00:00:28 OpenWrt daemon.warn dnsmasq[673]: no servers found in /tmp/resolv.conf.auto, will retry
Jan  1 00:00:28 OpenWrt daemon.info dnsmasq[673]: read /etc/hosts - 1 addresses
Jan  1 00:00:28 OpenWrt daemon.err dnsmasq[673]: failed to read /etc/ethers:No such file or directory
Jan  1 00:00:29 kernel: ar7_wdt: enabling watchdog timer
Jan  1 00:00:43 OpenWrt authpriv.info dropbear[722]: Child connection from 192.168.0.4:39015
Jan  1 00:00:48 OpenWrt authpriv.warn dropbear[722]: bad password attempt for 'root' from 192.168.0.4:39015
Jan  1 00:00:52 OpenWrt authpriv.notice dropbear[722]: password auth succeeded for 'root' from 192.168.0.4:39015
Jan  1 00:01:07 OpenWrt local2.notice br2684ctl[734]: Interface "nas0" created sucessfully
Jan  1 00:01:07 OpenWrt local2.notice br2684ctl[734]: Communicating over ATM 0.0.103, encapsulation: VC mux
Jan  1 00:01:07 OpenWrt local2.info br2684ctl[734]: Interface configured
Jan  1 00:01:07 OpenWrt local2.info br2684ctl[738]: RFC 1483/2684 bridge daemon started
Jan  1 00:01:08 kernel: NET: Registered protocol family 24
Jan  1 00:01:08 OpenWrt daemon.info pppd[771]: Plugin rp-pppoe.so loaded.
Jan  1 00:01:08 OpenWrt daemon.notice pppd[772]: pppd 2.4.3 started by root, uid 0
Jan  1 00:01:23 OpenWrt daemon.warn pppd[772]: Timeout waiting for PADO packets
Jan  1 00:01:23 OpenWrt daemon.err pppd[772]: Unable to complete PPPoE Discovery
Jan  1 00:01:45 OpenWrt daemon.info pppd[772]: Terminating on signal 15
Jan  1 00:01:45 OpenWrt daemon.info pppd[772]: Exit.
Jan  1 00:01:47 OpenWrt daemon.info pppd[813]: Plugin rp-pppoe.so loaded.
Jan  1 00:01:47 OpenWrt daemon.notice pppd[814]: pppd 2.4.3 started by root, uid 0
Jan  1 00:02:02 OpenWrt daemon.warn pppd[814]: Timeout waiting for PADO packets
Jan  1 00:02:02 OpenWrt daemon.err pppd[814]: Unable to complete PPPoE Discovery
Jan  1 00:02:47 OpenWrt daemon.warn pppd[814]: Timeout waiting for PADO packets
Jan  1 00:02:47 OpenWrt daemon.err pppd[814]: Unable to complete PPPoE Discovery
Jan  1 00:03:32 OpenWrt daemon.warn pppd[814]: Timeout waiting for PADO packets
Jan  1 00:03:32 OpenWrt daemon.err pppd[814]: Unable to complete PPPoE Discovery
Jan  1 00:04:17 OpenWrt daemon.warn pppd[814]: Timeout waiting for PADO packets
Jan  1 00:04:17 OpenWrt daemon.err pppd[814]: Unable to complete PPPoE Discovery
Jan  1 00:05:02 OpenWrt daemon.warn pppd[814]: Timeout waiting for PADO packets
Jan  1 00:05:02 OpenWrt daemon.err pppd[814]: Unable to complete PPPoE Discovery
Jan  1 00:05:47 OpenWrt daemon.warn pppd[814]: Timeout waiting for PADO packets
Jan  1 00:05:47 OpenWrt daemon.err pppd[814]: Unable to complete PPPoE Discovery
Jan  1 00:06:18 kernel: tn7atm_close: closing 0.0.103.5
Jan  1 00:06:18 kernel: tn7sar_teardown_complete called for channel 0
Jan  1 00:06:18 kernel: ChannelTeardown returned rc = 0
Jan  1 00:06:18 OpenWrt local2.info br2684ctl[738]: Killed by a signal
Jan  1 00:06:18 OpenWrt local2.notice br2684ctl[738]: Daemon terminated
Jan  1 00:06:18 OpenWrt daemon.err pppd[814]: receivePacket: recv: Network is down
Jan  1 00:06:18 OpenWrt daemon.info pppd[814]: Exit.
Jan  1 00:06:20 OpenWrt local2.notice br2684ctl[846]: Interface "nas0" created sucessfully
Jan  1 00:06:20 OpenWrt local2.notice br2684ctl[846]: Communicating over ATM 0.0.103, encapsulation: LLC
Jan  1 00:06:20 OpenWrt local2.info br2684ctl[846]: Interface configured
Jan  1 00:06:20 OpenWrt local2.info br2684ctl[848]: RFC 1483/2684 bridge daemon started
Jan  1 00:06:21 OpenWrt daemon.info pppd[881]: Plugin rp-pppoe.so loaded.
Jan  1 00:06:21 OpenWrt daemon.notice pppd[882]: pppd 2.4.3 started by root, uid 0
Jan  1 00:06:29 OpenWrt daemon.info pppd[918]: Plugin rp-pppoe.so loaded.
Jan  1 00:06:29 OpenWrt daemon.notice pppd[919]: pppd 2.4.3 started by root, uid 0
Jan  1 00:06:44 OpenWrt daemon.warn pppd[919]: Timeout waiting for PADO packets
Jan  1 00:06:44 OpenWrt daemon.err pppd[919]: Unable to complete PPPoE Discovery
Jan  1 00:07:29 OpenWrt daemon.warn pppd[919]: Timeout waiting for PADO packets
Jan  1 00:07:29 OpenWrt daemon.err pppd[919]: Unable to complete PPPoE Discovery
Jan  1 00:08:14 OpenWrt daemon.warn pppd[919]: Timeout waiting for PADO packets
Jan  1 00:08:14 OpenWrt daemon.err pppd[919]: Unable to complete PPPoE Discovery
Jan  1 00:08:51 kernel: br-lan: port 1(eth0) entering disabled state
Jan  1 00:08:51 kernel: device eth0 left promiscuous mode
Jan  1 00:08:51 kernel: br-lan: port 1(eth0) entering disabled state
Jan  1 00:08:52 kernel: br-lan: Dropping NETIF_F_UFO since no NETIF_F_HW_CSUM feature.
Jan  1 00:08:52 kernel: device eth0 entered promiscuous mode
Jan  1 00:08:52 kernel: br-lan: port 1(eth0) entering learning state
Jan  1 00:08:52 kernel: br-lan: topology change detected, propagating
Jan  1 00:08:52 kernel: br-lan: port 1(eth0) entering forwarding state
Jan  1 00:08:56 OpenWrt daemon.info pppd[1111]: Plugin rp-pppoe.so loaded.
Jan  1 00:08:56 OpenWrt daemon.notice pppd[1113]: pppd 2.4.3 started by root, uid 0
Jan  1 00:09:11 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:09:11 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:09:56 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:09:56 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:10:41 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:10:41 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:11:26 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:11:26 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:12:11 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:12:11 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:12:56 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:12:56 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:13:41 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:13:41 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:14:26 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:14:26 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:15:11 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:15:11 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:15:56 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:15:56 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:16:41 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:16:41 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:17:26 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:17:26 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:18:12 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:18:12 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:18:57 OpenWrt daemon.warn pppd[1113]: Timeout waiting for PADO packets
Jan  1 00:18:57 OpenWrt daemon.err pppd[1113]: Unable to complete PPPoE Discovery
Jan  1 00:18:57 OpenWrt daemon.info pppd[1113]: Terminating on signal 15
Jan  1 00:18:57 OpenWrt daemon.info pppd[1113]: Exit.
Jan  1 00:19:12 OpenWrt daemon.err pppd[1137]: unrecognized option '-c'
Jan  1 00:19:47 OpenWrt daemon.err pppd[1139]: unrecognized option '-c'
Jan  1 00:24:08 OpenWrt authpriv.info dropbear[722]: exit after auth (root): Exited normally
Jan  1 00:24:10 OpenWrt authpriv.info dropbear[1142]: Child connection from 192.168.0.4:50529
Jan  1 00:24:14 OpenWrt authpriv.notice dropbear[1142]: password auth succeeded for 'root' from 192.168.0.4:50529
Jan  1 00:29:36 kernel: br2684_create: register_netdev failed
Jan  1 00:29:36 OpenWrt local2.info br2684ctl[1154]: Interface "nas0" could not be created, reason: File exists
Jan  1 00:29:36 OpenWrt local2.notice br2684ctl[1154]: Communicating over ATM 0.0.103, encapsulation: LLC
Jan  1 00:29:36 OpenWrt local2.err br2684ctl[1154]: Fatal: failed to connect on socket; Address already in use
Jan  1 00:29:40 kernel: tn7atm_close: closing 0.0.103.5
Jan  1 00:29:40 kernel: tn7sar_teardown_complete called for channel 0
Jan  1 00:29:40 kernel: ChannelTeardown returned rc = 0
Jan  1 00:29:40 OpenWrt local2.info br2684ctl[848]: Killed by a signal
Jan  1 00:29:40 OpenWrt local2.notice br2684ctl[848]: Daemon terminated
Jan  1 00:29:41 OpenWrt local2.notice br2684ctl[1178]: Interface "nas0" created sucessfully
Jan  1 00:29:41 OpenWrt local2.notice br2684ctl[1178]: Communicating over ATM 0.0.103, encapsulation: LLC
Jan  1 00:29:41 OpenWrt local2.info br2684ctl[1178]: Interface configured
Jan  1 00:29:41 OpenWrt local2.info br2684ctl[1180]: RFC 1483/2684 bridge daemon started
Jan  1 00:29:42 OpenWrt daemon.info pppd[1213]: Plugin rp-pppoe.so loaded.
Jan  1 00:29:42 OpenWrt daemon.notice pppd[1214]: pppd 2.4.3 started by root, uid 0
Jan  1 00:29:57 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:29:57 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:30:42 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:30:42 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:31:27 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:31:27 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:32:12 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:32:12 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:32:57 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:32:57 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:33:42 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:33:42 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:34:27 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:34:28 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:35:13 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:35:13 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:35:58 OpenWrt daemon.warn pppd[1214]: Timeout waiting for PADO packets
Jan  1 00:35:58 OpenWrt daemon.err pppd[1214]: Unable to complete PPPoE Discovery
Jan  1 00:36:08 OpenWrt daemon.info pppd[1214]: Terminating on signal 15
Jan  1 00:36:08 OpenWrt daemon.info pppd[1214]: Exit.
Jan  1 00:36:10 OpenWrt daemon.info pppd[1606]: Plugin rp-pppoe.so loaded.
[b] Jan  1 00:36:10 OpenWrt daemon.notice pppd[1607]: pppd 2.4.3 started by root, uid 0
Jan  1 00:36:25 OpenWrt daemon.warn pppd[1607]: Timeout waiting for PADO packets
Jan  1 00:36:25 OpenWrt daemon.err pppd[1607]: Unable to complete PPPoE Discovery
Jan  1 00:37:10 OpenWrt daemon.warn pppd[1607]: Timeout waiting for PADO packets
Jan  1 00:37:10 OpenWrt daemon.err pppd[1607]: Unable to complete PPPoE Discovery [/b]


Jan  1 00:36:10 OpenWrt daemon.info pppd[1606]: Plugin rp-pppoe.so loaded.
Jan  1 00:36:10 OpenWrt daemon.notice pppd[1607]: pppd 2.4.3 started by root, uid 0
Jan  1 00:36:25 OpenWrt daemon.warn pppd[1607]: Timeout waiting for PADO packets
Jan  1 00:36:25 OpenWrt daemon.err pppd[1607]: Unable to complete PPPoE Discovery
Jan  1 00:37:10 OpenWrt daemon.warn pppd[1607]: Timeout waiting for PADO packets
Jan  1 00:37:10 OpenWrt daemon.err pppd[1607]: Unable to complete PPPoE Discovery

(Last edited by symbiansucks on 20 Oct 2008, 12:45)