OpenWrt Forum Archive

Topic: Cannot get pppoe and lan working on same eth port on Fonera

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

Hi,

I have the Kamikaze 7.07 version on a Fonera and I'm trying to setup pppoe for internet connection with my provider over eth0 and at the same time use eth0 for my LAN. Wlan is bridged to lan.
I want to use the fonera as a router to my dsl provider and serve both the wired and wireless lan for my home hosts to access internet.

PPPoE is working fine with my provider and I can see the internet access via the wlan but when the pppoe is up the lan interface is no longer responding.
I tried to use different aliases for lan and wan (eht0.0, eht0.1) with no luck.

Anybody has tried a similar setup? I know that using the same eth0 port for both a lan connection and a wan with pppoe is working ok on a standard linux box, so I guess there must be a way to make it working with the Fonera.

I have the following /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

config interface wan
        option ifname   eth0
        option proto    pppoe
        option username "*******"
        option password "*******"

and /etc/config/wireless

config wifi-device  wifi0
        option type     atheros
        option channel  1

config wifi-iface
        option device   wifi0
        option network  lan
        option mode     ap
        option ssid     Openwrt
        option encryption none

Thanks

Hi

I don't know Fonera hardware but from your story I understand eth0 is the interface connected to the switch. In that case you can split up the interace into two vlans with the net work config. You will have to know which switch port is connected with the eth0 interface of your system. For my Asus that is port 5.

config switch eth0               
        option vlan0    "1 2 3 4 5*"
        option vlan1    "0 5"

The vlan aliases eth0.0 and eth0.1 are hereby created and with the aliases you configure the network. For example:

config interface lan                          
        option ifname   "eth0.0"              
        option proto    static
        option type     bridge       
        option ipaddr   192.168.1.1           
        option netmask  255.255.255.0

config interface        wan          
        option ifname   "eth0.1"     
        option proto    pppoe        
        option username "********"
        option password "********"

Thanks for that but Fonera only have one port. no switch! So cannot do Vlan

im trying to establish a pppoe-connection over a wireless link on my fonera. i have no idea how to set the outgoing interface fur the ppp connection and how to set the new ppp0 (like whiterussion on my wrt54gl) device.
i think its the same topic...

The discussion might have continued from here.