OpenWrt Forum Archive

Topic: Configure pppoe vlan

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

Hello all,

I seem to be unable to configure such a seemingly basic thing than a vlan.

In fact I want to set up a pppoe-connection to my fiber modem, and the requirement from the ISP is to use vlan 35.

I want to do so with two different routers, having one as backup.

One is a TL-WDR4300 running 15.05.1 (r48532), and the other one a GL-MT300A running Designated Driver (Bleeding Edge, 50108).

Could someone post (ideally a complete) /etc/config/network with what I have to to.

Thanks in advance!

1 - Configure a VLAN on the WAN port with ID 35.
2 - Configure the WAN interface as a PPPoE on that VLAN.

Details depend on your device, post your default network config file for more info.

Devices where the WAN port is connected directly to one of the CPU eth ports, just add the VLAN number to the interface designation under wan in /etc/config/network.  E.g change eth0 to eth0.35.

When the WAN traffic passes through a switch, change the VLAN number to the one you need, and make it tagged on the external port.  Switch confirmation is easier to understand through LUCI.

(Last edited by mk24 on 26 Sep 2017, 20:48)

I managed to get it work, /etc/config/network looks like this now for the GL-MT300A:

config interface 'wan'
        option ifname 'eth0.35'
        option proto 'pppoe'
        option username 'xxxxxxxx'
        option password 'yyyyyyyy'
        option mtu '1492'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '1 2 3 4 6t'
        option vid '1'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0t 6t'
        option vid '35'

(Last edited by yglodt on 26 Sep 2017, 21:17)

The discussion might have continued from here.