[SOLVED] Simple question for you guys about WAN port & SQM

Activating SQM and ipban and it asks for the WAN port, i saw in the wiki that it says its normally eth0 but to check, so i looked on my system and its shown as PPPOE-WAN which is an option on the adblock menu, but i also see in the config files below its also classed as eth0.2 for the PPPOE-WAN and the WAN6 so do i set it to eth0.2??

root@OpenWrt:~# uci show /etc/config/network
network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd83:1ca8:5bfd::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth1.1'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='pppoe'
network.wan.password='123456789'
network.wan.ipv6='auto'
network.wan.username='xxxxxxxxxccc@idnet'
network.wan6=interface
network.wan6.ifname='eth0.2'
network.wan6.proto='dhcpv6'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='1 2 3 4 6t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='5 0t'
root@OpenWrt:~#

Sorry for the silly questions.

So I would run ifstatus wan and then pick the device designates as l3_device. Here is a snippet from my system:

{
	"up": true,
	"pending": false,
	"available": true,
	"autostart": true,
	"dynamic": false,
	"uptime": 11481,
	"l3_device": "pppoe-wan",
	"proto": "pppoe",
	"device": "eth1.7",
	"updated": [
		"addresses",
		"routes"
	],
	"metric": 0,
	"dns_metric": 0,
	"delegation": true,
	"ipv4-address": [

I selected pppoe-wan to instantiate sqm. PPP, the Point to Point Protocol, allows to build essentially a tunnel between two computers, and many ISP use such a tunnel to provision IP addresses to their end customers, often over ethernet (-> PPPoE, PPP over Ethernet).
My rationale for prefering pppoe-wan over eth1.7 is that the pppoe-wan device itself does not see the PPP LCP (link control protocol) Packets and hence will never drop them, while a shaper on eth1.7 will see these packets and might drop them (which if one is unlucky and enough consecutive of these are dropped can make the PPPoE server tear down the connection). LCP traffic typically is quite sparse and will not take up a lot of space, but it is still important ;). (With the recommendations to not set SQM at 100% of the link rate, sqm on pppeo-wan will also leave enough room for the LCP traffic).

1 Like

I went with PPPoE-Wan and my l3 device says that too so I'm good to go :slight_smile: thanks for the help and the time taken to reply! Much appriciated.

root@OpenWrt:~# ifstatus wan
{
        "up": true,
        "pending": false,
        "available": true,
        "autostart": true,
        "dynamic": false,
        "uptime": 19023,
        "l3_device": "pppoe-wan",
        "proto": "pppoe",
        "device": "eth0.2",
        "updated": [
                "addresses",
                "routes"
2 Likes

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.