OpenWrt Forum Archive

Topic: ifup wan fails with dsl

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

Hello,

I installed openwrt-brcm-2.4-squashfs.trx on a asus wl 500g.

I configured:
ppp_passwd=xxx
ppp_idletime=5
ppp_username=xxx
ppp_redialperiod=30
pppoe_ifname=eth0
pppoe_passwd=xxx
pppoe_idletime=5
pppoe_username=xxx
ppp_mtu=1492

root@OpenWrt:~# nvram get wan_proto
pppoe
root@OpenWrt:~# nvram get wan_ifname
ppp0

As described in http://openwrt.org/cgi-bin/viewcvs.cgi/ … ADME.pppoe

But now, when I restart the networt or do a ifup wan:
root@OpenWrt:~# ifup wan
### ifup wan: ignored wan_proto="pppoe" (not supported)

What is missing?
root@OpenWrt:~# ipkg list
bridge - 1.0.6-1 -
busybox - 1.00-2 -
dnsmasq - 2.22-1 -
dropbear - 0.45-3 -
ipkg - 0.99.149-1 -
iptables - 1.3.1-1 -
kernel - 2.4.30-brcm-1 -
kmod-brcm-et - 2.4.30-brcm-1 -
kmod-brcm-wl - 2.4.30-brcm-1 -
kmod-diag - 2.4.30-brcm-1 -
kmod-ppp - 2.4.30-brcm-1 -
kmod-pppoe - 2.4.30-brcm-1 -
kmod-wlcompat - 2.4.30-brcm-1 -
openwrt-utils - 1 -
ppp - 2.4.3-4 -
ppp-mod-pppoe - 2.4.3-4 -
wificonf - 1 -
wireless-tools - 28.pre7-1 -
zlib - 1.2.2-1 -
Successfully terminated.


Kind regards
Cornelius

You used the instructions for the stable  version of openwrt. I think that you're using the experimental version, because you have installed ppp-mod-pppoe package, that is the pppoe plugin for pppd, used in the experimental version of openwrt to connect via pppoe.
So read this:
http://wiki.openwrt.org/OpenWrtFaq?high … 0b43ed3064

If you have the stable version, then you have to install pppoecd package.

HEllo,

that's exactly what I did in a second attemp.

I used
pppoe_ifname=eth0
for my asus.

Nothing happend. Can not connect via DSL.

Regards
Cornelius

(Last edited by cornelinux on 10 Jul 2005, 18:51)

I am having exactly the same problem, although I am using the wireless interface:

pppoe_ifname=eth1

and receive the error: 'ignored wan_proto="pppoe"  (not supported)', even though the S50pppoe script appears to be looking for that value....

I am using White Russian, and have tried every configuration that I can find or think of.  I actually require the use of MPPE encryption over the PPPoE connection(after I get it working without MPPE, I'm just trying a simple non-encrypted connect, for now), so maybe I am using the wrong client in the first place......

Does anyone know how to get PPPoE working in White Russian????

Hitek

I have gotten it partially working. The error seemed to be related to a parent interface misconfiguration.  Still working on the encryption.....

Hitek

Hi hitek,

what was this "a parent interface misconfig"?
Could you please be a bit more precise. It might help me, using my problem...

Kind regards
Cornelius

Edit:  after rereading this, I thought I might add that:  "AC" = Access Concentrator, or "PPPoE server"....
------------------------------------------

I don't know how much help I can be, since I never used Linux until about 3 days ago... big_smile   What I discovered is this:

I cannot get the wireless interface to connect unless I use "wl ap 0" and "wl join xxxxx"....  Putting the SSID and mode into the "wl0" nvram variables does nothing for me at all.  I suppose there may be a script somewhere that uses those variables to initiate a connection, but since the documentation says almost nothing about scripts or startup procedure, I cannot find out how most of the system's configuration is being set.  It seems there are many things happening at startup that I do not see reflected in any of the scripts that I can find under the /etc directory.  This being the case, I have been forced to connect by placing the "wl" commands into a script in the init.d directory, along with the other settings that I needed made, but could not be done by setting NVRAM variables alone.  After the scripts have executed at startup, my VLAN 2 interface has been created for the wireless interface, leaving VLAN1 for the WAN(int. ports 0 and 5) and VLAN0 for the other four ports.  My wireless interface connecting to the AP is then the last thing scripted in the init.d directory.  This leaves me after startup with 3 VLANs and a wireless connection to the AP, at which point the PPPoE client does start to connect.  I should note that I used the "wifi_xxxx" NVRAM variables for the wireless, leaving the "wan_xxxx" variables to their original use.  I changed the "S50pppoe" script to look at the "wifi_proto" variable instead of the "wan_proto" variable so the PPPoE client tries to connect on the correct interface.

Now that I have partially explained my configuration, you may see that by "parent interface misconfiguration", I meant that the wifi interface was not working properly, and this was causing my error.  I am still getting the error, but not all of the time.  When the unit boots up, the wireless connects to the AP as it is supposed to, and then the PPPoE starts to connect over the wifi interface, as it should.  The error appears when I try to connect with PPPoE when there is no connection to the AC.  This happened to me because of a problem with the wifi interface that I have not identified yet.  My original problem was that the ifup wifi command was being issued in a script after the wireless had already connected to the AP.  This, apparently, is a big issue for my installation, as executing a "ifup wifi" command after the interface is already connected literally kills the wireless connection, and this is where I was getting the PPPoE errors.

Here is what would happen:
The unit would boot up, and the wireless would automatically connect.  This placed an entry in the access concentrator's (AP's) log that told me the client was connected.  Somehow, immediately after the successful connection, the "ifup wifi" command was being executed again, essentially killing the wifi session.  It is still a problem for me that once my initial wireless connection has been established, I cannot reconnect again without rebooting the router, and this is a huge issue.....  When the second instance of the "ifup wifi" was executed, the wireless connection was killed, and this then caused the "ignored wan_proto=pppoe" error.  As soon as I removed the second "ifup wifi" statement, the wireless would stay connected after startup, and then the PPPoE client would dial and connect(without encryption) properly.  Unfortunately, as soon as the wireless link is gone, I am unable to re-establish it, and the PPPoE error appears again.  Basically, the "ifup wifi" command is useless to me once it has already been executed at startup.  I don't know if any of this will help you, or not, but in my case the problem is because the link I am trying to PPPoE over is invalid at the immediate time that it is attempting to connect.

I was also getting "eth1" invalid errors along with the "ignored wan_proto=pppoe" errors....

Does anyone reading this know any of the answers to any of the questions I asked above?  Anyone know what scripts I am not seeing?  At what point is this OS creating the VLAN0 and VLAN1 interfaces?  I cannot find alot of things being done at startup....  I also see alot of packages installed that seem to be different versions of the same thing...  How many PPP packages are there, and which one(s) is/are being used???  How can I tell this?  What do I need to do to use the "kmod" packages?  Is simply installing them all I have to do?  All of the Linux documentation I have seen seems to be fairly consistant between between different distributions, but OpenWRT seems to be different from all of the others, with the differences not clearly stated anywhere....  For example, why is there no networking.sh file?  Is a user just supposed to "know" what to do if things are not in the standard places?  My installation has no S50pptp script, but I see others have it...  How and where would that file be generated, and why do others have it when i don't(not that I need it)?  MPPE....  Anyone...  Anyone....

Sorry to have asked so many of my own questions... big_smile  If there are anymore questions you have for me, cornelinux, feel free to ask....

Hitek

(Last edited by hitek146 on 18 Jul 2005, 21:40)

I have gotten it to work.  Apparently, installing the packages is not enough, they need to be registered(yes, I can hear the collective "duh!".... smile ), but I still do not understand how you know which packages are needed or used....  Finding the one, single reference to the "logread" command helped greatly.....

Hitek

The discussion might have continued from here.