[OpenWrt-Users] help with PPPOE please?

David Nedved david_nedved at yahoo.com
Mon Jan 14 20:01:51 CET 2008


Hi All,

If anyone can help me get my WRT54GL running Kamikaze 7.07 switched
from a normal DHCP connection through a router to a direct PPPOE
connection through a modem I would be very grateful.

Everything works just fine when I use DHCP with my crufty old router,
and my Powerbook works great as a PPPOE client using my shiny new
Draytek Vigor 100 as a PPPOE connection, so I know the Draytek is
configured and working correctly with the only issue the config on the
openwrt device.

I followed the instructions at:
http://wiki.openwrt.org/Faq#head-79c4af5e5f9cd88484c5f3934aa0a21acc03e903

after looking up my correct interface name at:
http://wiki.openwrt.org/OpenWrtDocs/Configuration#NetworkInterfaceNames

So here's the simplified diff showing the NVRAM changes I made (leaving
out idletime and redial tweaks for simplicity):

< ppp_passwd=
> ppp_passwd=(yes it's correct)
< ppp_username=
> ppp_username=(yes it's correct)
< pppoe_ifname=
> pppoe_ifname=vlan1
> wan_device=vlan1
< wan_ifname=vlan1
> wan_ifname=ppp0
< wan_proto=dhcp
> wan_proto=pppoe

The first problem seems to be that since I'd never tweaked any NVRAM
settings before (I think I configured absolutely everything via config
files) the settings for wan device and ifname in my /etc/config/network
file seem to be overriding the NVRAM settings.  I've tried changing
this file as well (can't leave that paragraph out or ifup wan doesn't
know what to do) since it seems to be what the scripts read and found
no settings that work.  Here's the relevant section of that file:

#### WAN configuration
config interface        wan
### normal double NAT
        option ifname   "eth0.1"
        option proto    dhcp
### attempting PPPOE
#       option ifname   "eth0.1"
#       option ifname   "vlan1"
#       option ifname   "ppp0"
#       option proto    pppoe

I commented out the dhcp section and tried uncommenting the ifname
lines one at a time with proto pppoe.  With ifname eth0.1 it seems like
it's trying to connect but it never gets a connection, no new
interfaces show up with ifconfig (nothing ppp* and nothing with my
public IP).  With both vlan1 and ppp0 it gives the following error:

root at OpenWrt:/etc/config# ifup wan
ifconfig: SIOCGIFFLAGS: No such device
Plugin rp-pppoe.so loaded.
/usr/sbin/pppd: unrecognized option 'nic-vlan1'
pppd version 2.4.3
Usage: /usr/sbin/pppd [ options ], where options are:

That was with vlan1, the error is the same with ppp0.  I feel like I'm
so close but obviously confused a bit between the NVRAM settings and
/etc/config/network settings.  Something is missing that tells the ifup
script to bring up the new ppp0 virtual interface maybe?  What should
my wan device be anyway?  I'd really like to do as much config as
possible in the /etc/config files for simplicity and transparency sake.

Anyone help?

Thanks in advance,

David

david_nedved at yahoo.com


      ____________________________________________________________________________________
Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs


More information about the openwrt-users mailing list