OpenWrt Forum Archive

Topic: PPPoE not connecting - Kamikaze 8.09 Atheros

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

Hi,

I used LuCI in essential mode to setup a PPPoE connection.  I installed ppp-mod-pppoe and restarted but it wont connect.  pppd also isn't running or showing any information in logread.  The "essential" configuration didnt put a value in /etc/config/network under the wan 'ifname' field, so I entered eth0.  This is my configuration:

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 'interface' 'lan'
    option 'ifname' 'eth0'
    option 'type' 'bridge'
    option 'proto' 'static'
    option 'ipaddr' '192.168.1.1'
    option 'netmask' '255.255.255.0'

config 'interface' 'wan'
    option 'ifname' 'eth0'
    option 'peerdns' '1'
    option 'defaultroute' '1'
    option 'proto' 'pppoe'
    option 'username' 'me@isp.co.za'
    option 'password' 'passwd'
    option 'keepalive' '10'

I tried to start pppd from the command line but it dies with Timeout waiting for PADO packets.  I have other computers in the same switch using pppoe connections so I know my modem is working.

Why doesnt the pppoe connection get started at boot and why doesnt PADO packets arrive?  ANY ideas?

Thanks a lot

Hi.

I assume it's a Fonera or something like that? With only one ethernet port? In this case you would need to remove the lan interface. Because right now two logical interfaces share the same physical port (eth0).

~ JoW

The ifname of the WAN section is empty when OpenWrt is only aware of one ethernet-port on the device. Therefore Internet Access in "essentials" does only work for devices with one ethernet port when you set the wireless adaptor to client mode and connect to a wireless network in range and use this as your internet connection. If you want to use the ethernet-port of your one-ethernet-port device as WAN connection with PPP* or similar you have to use the Administration mode as the risks to lock oneself out of the device was to high to allow this in "essentials".
If your device however has more than one ethernet port then OpenWrt may have detected it incorrectly and you should open a ticket and / or try "eth1" instead of "eth0" as the ifname for wan.

Hi,

Yes this is a Fonera with one eth port.  If you say I have to remove the ethernet port, do you mean from the bridge or from the configuration file?  Certainly it must be possible to have eth0 get a dhcp address and make a pppoe connection over it, I do this all the time in ubuntu?

I have no problem with using the advanced config, or the command line for that matter, but how would I set it up?  I want the fonera to act like an AP which gives clients access to the internet and the local network, at the same time.

Thanks again guys.

Ok then: go to administration -> network -> wireless -> wifi0 / ath0, configure the wifi as you like and set the network to "lan". Hit Save (not Save & Apply). go to administration -> netwotk -> interfaces -> lan set the network interface to an empty string (= remove the eth0). Hit Save. Go to administration -> network -> interfaces -> wan set the network interface to eth0 and configure your PPP* connection. Hit Save & Apply
If you haven't changed anything else this should work. Be aware that after hitting "Save & Applky" you can only connect via wireless to your router.

Hi,

This makes pppoe work but still no wifi -> eth0.  Is this a bug in 8.09?  Not having PPPoE and Eth0 on at the same time?  I manage to set this up manually by using ifconfig and pppd, but not with standard configuration scripts.

It certainly seems to be a bug in 8.09. However with latest build from trunk I was able to get it working smile..
I am using dir-300 and have been trying to setup pppoe for last 2 days... I resisted asking questions and read forums relating to pppoe.. was really confused why did not work in 8.09 .. then tried trunk release and voila... it was working... so happy now !!

Hi indishark!
This is my first post in this forum.
I have the same Problem with my Fonera. I build the latest trunk and tried it again, but it still won't work.
Please let me know how you got this working.
Thanks!

indishark wrote:

It certainly seems to be a bug in 8.09. However with latest build from trunk I was able to get it working smile..
I am using dir-300 and have been trying to setup pppoe for last 2 days... I resisted asking questions and read forums relating to pppoe.. was really confused why did not work in 8.09 .. then tried trunk release and voila... it was working... so happy now !!

Did you use the patch for the switch in 8.09?

@bjo
actually I did apply switch patch....I was able to get pppoe connection up (in 8.09) after that..
but I was not able to connect to internet from wifi connection....
My setup was :
-----
config 'interface' 'loopback'
        option 'ifname' 'lo'
        option 'proto' 'static'
        option 'ipaddr' '127.0.0.1'
        option 'netmask' '255.0.0.0'

#Setup the swith
config 'switch' '0'
        option 'vlan1' '0 1 2 3 5*t'  #assign port 0 1 2 & 3 to VLAN1
        option 'vlan2' '4 5t'         #assign port 4 to VLAN2

#Create a local interface
config 'interface' 'lan'
        option 'ifname' 'eth0.1'
        option 'type' 'bridge'
        option 'proto' 'static'
        option 'ipaddr' '10.0.0.1'
        option 'netmask' '255.255.255.0'
       
#Create a WAN (internet) interface
config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'pppoe'
        option 'username' '<username>'
        option 'password' '<pwd>'
        option 'unit' '0'
-----

I was able to see ppp0 interface in ifconfig list after pppoe setup connection.
But seemed like packets were not getting transferred b/w br-lan and ppp0.
I fiddled around with iptables settings with no success..


With the latest trunk, I just set pppoe config in wan interface and everything worked like charm.
I cannot figure out what was wrong in 8.09

(Last edited by indishark on 4 May 2009, 23:26)

@Mosi
Are u able to see pppoe connection setup successfully established?
logread should show something like this :
---
Apr 30 21:12:58 OpenWrt daemon.info pppd[538]: PPP session is 1279
Apr 30 21:12:58 OpenWrt daemon.info pppd[538]: Using interface ppp0
Apr 30 21:12:58 OpenWrt daemon.notice pppd[538]: Connect: ppp0 <--> eth0.2
Apr 30 21:12:58 OpenWrt daemon.warn pppd[538]: Couldn't increase MTU to 1500
Apr 30 21:12:58 OpenWrt daemon.warn pppd[538]: Couldn't increase MRU to 1500
Apr 30 21:12:59 OpenWrt daemon.warn pppd[538]: Couldn't increase MRU to 1500
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: PAP authentication succeeded
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: PAP authentication succeeded
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: peer from calling number 00:90:1A:43:15:46 authorized
Apr 30 21:12:59 OpenWrt daemon.info dnsmasq[1224]: reading /tmp/resolv.conf.auto
Apr 30 21:12:59 OpenWrt daemon.info dnsmasq[1224]: using nameserver 203.145.184.40#53
Apr 30 21:12:59 OpenWrt daemon.info dnsmasq[1224]: using nameserver 203.145.184.32#53
Apr 30 21:12:59 OpenWrt daemon.info dnsmasq[1224]: using local addresses only for domain lan
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: local  IP address 122.169.146.149
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: remote IP address 122.169.128.1
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: primary   DNS address 203.145.184.32
Apr 30 21:12:59 OpenWrt daemon.notice pppd[538]: secondary DNS address 203.145.184.40
Apr 30 21:13:04 OpenWrt user.notice root: adding wan (ppp0) to firewall zone wan
---

Below is my network config
---
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 'proto' 'static'
        option 'ipaddr' '10.0.0.1'
        option 'netmask' '255.255.255.0'
        option 'ifname' 'eth0.1'

config 'interface' 'wan'
        option 'ifname' 'eth0.2'
        option 'proto' 'pppoe'
        option 'username' '<user>'
        option 'password' '<pwd>'
        option 'mtu' '1500'

config 'switch' 'eth0'
        option 'reset' '1'
        option 'enable_vlan' '1'

config 'switch_vlan' 'eth0_1'
        option 'device' 'eth0'
        option 'vlan' '1'
        option 'ports' '0 1 2 3 5t'

config 'switch_vlan' 'eth0_2'
        option 'device' 'eth0'
        option 'vlan' '2'
        option 'ports' '4 5t'
---

Only thing I modified was pppoe settings in wan config..
I made no changes in switch part of the config... it was set by default to these settings..
I dont know abt fonera but for dir-300 these settings work for sure..
Notice that these switch settings are different(atleast on face) from my manul settings in 8.09 with switch patch.

(Last edited by indishark on 4 May 2009, 23:26)

Thank you for the replies!
Yesterday i wanted to make the new trunk but in the make menuconfig i did not find any switch patch. the only things i remember are switch and switchconfig. are these right?

Hi indishark

I also have DIR-300 and cannot get Internet port to work properly.  Seems like you have the solution.  Would you be able to provide a download or email your compile of the trunk to me?

@Mosi
Yeah select swconfig in base install section...

@lenhamey
I have a compiled working image ... I have PMed you my email address.. Please reply back on that so that I would attach the image for you...however I would suggest you invest some time on getting to know how to build one for your selves... build process itself is very simple.

@indishark

Thanks!!!! I will try it.

@indishark:  You are right - it is easier than I thought to build from the svn sources.  THanks for the offer.

And now I have a problem...  wget does not work.

The box (DIR-300) operates like a router now, instead of acting like a switch. :-)

I can ping Internet IP addresses (e.g. downloads.openwrt.org) but wget hangs. 

I don't have Lau CI installed - I intend to install webif from x-wrt but I could not work out how to make it part of the
build.

@lenhamey

before you do a "make menuconfig" try this:

./scripts/feeds update -a
./scripts/feeds install -a

now you can select all available packages including webif

(Last edited by Mosi on 5 May 2009, 11:55)

The discussion might have continued from here.