Problem with VLAN tagging on DIR-860L (MT7530)

Hi aufhaxer,

I'm sorry to tell you that with the current snapshot, deleting all VLANs from 3 to 6 still brings me back to the old problem:

Sat Mar 18 20:51:30 2017 daemon.warn pppd[1510]: Timeout waiting for PADO packets
Sat Mar 18 20:51:30 2017 daemon.err pppd[1510]: Unable to complete PPPoE Discovery
Sat Mar 18 20:51:30 2017 daemon.info pppd[1510]: Exit.

I'll stick with your workaround for now. Let me know if you need more logs or if you want me to test some more for you, i'll be happy to do so. Thanks so far anyway!

Hi molocho,

thank you for your results. This input is very helpful.

I have to withdraw my results from last post. The issue like in your case still seems to be broken in the latest snapshot of LEDE. But still glad to hear, that the workaround does his job. :slight_smile:

We are currently discussing this issue in two separate threads. Since the problem of yours has been fixed for the moment, I would like you to participate, if possible, in the other thread to limit it to only one. Mt7621 DIR-860L does not support VLAN's

Having to deal with a couple of different ISPs, working with different protocols and different VLAN IDs, i just found out, that the current stable LEDE Release 17.01.4 has some fixes for a part of the issue. Using VLAN 7 (Germany's Telekom ISP via VDSL), there is no problem having VLAN IDs 1, 2, 7 present, using PPPoE.
Dealing with a PPPoE FTTB Connection from a different ISP (Germany M-Net) which requires to use VLAN 40, it is only possible to get a connection when again inserting VLANs 3-39 in between.
The issue seems to be persistent for higher numbered tags.

Having different LEDE routers at hand, a direct comparison with the same build for different platforms does not show this issue on other devices which use different Hardware.

Could we try and upvote the issue on the bug tracker? Hopefully a fix will be found sooner then :slight_smile:

https://bugs.lede-project.org/index.php?do=details&task_id=1147

Managed to pinpoint the issue. Not sure yet where a fix should be applied. Please view the bug tracker for more details.

I noticed that we have a similar discussion going on in Mt7621 DIR-860L does not support VLAN's

Can we safely close the linked topic, in order to follow up with this issue in only one thread?

I am fine with that. Would it maybe be possible to merge the topics instead though?

I could move the other thread over to this one, but this would result in all messages being appended to this thread, breaking the chronological order. I don't think that this would be a good idea.

I can close the other thread and attach a note that discussion of this topic will go on in this thread here.

Sounds good to me, thank you. :slight_smile:

Please test my fix at https://git.openwrt.org/?p=openwrt/staging/jow.git;a=commitdiff;h=0ecf301acb3bc78423056b868d22f8b755b74e31

I only have limited experience with compiling my own firmware, so just to make sure this is the proper way to do it:

  1. I simply clone the master branch of your staging tree and then compile as usual?
  2. Or: I apply this commit to the regular Lede master branch (how?) and then compile that?

Either way should work; to just apply the patch; use a command like:

wget -O - "https://git.openwrt.org/?p=openwrt/staging/jow.git;a=patch;h=0ecf301acb3bc78423056b868d22f8b755b74e31" | git am

To later revert this patch, use git reset --hard origin/master to reset your cloned master branch to its vanilla upstream state.

After applying the branch you can build as usual. Please only flash the resulting image if you're familiar with the recovery procedures and/or if you have TTL serial access.

Perfect. The girlfriend will be back in an hour, so not enough time to go playing around with our internet now :wink: But I will test the patch and report back tomorrow :slight_smile: Thank you very much for your effort trying to fix this issue!

Compiling now. Running on a laptop inside a VM, so it's going to take a while. Will report back once I have tested it.

Thank you very much for your effort. Unfortunately, the issue remains. My home network is using VLANs 1, 2, 4 and 6. My old configuration had a dummy VLAN at 3 and 5 to fix the issue.

I just compiled and flashed from your staging tree, however, when adding VLAN 8 this new VLAN is nonfunctional. Changing it to VLAN 7 (the next in line) instantly fixes this. Changing it back to VLAN 8 breaks it again. And so on, so forth.

If you have any other ideas, I would be more than willing to help in testing. Thanks again! :slight_smile:

Please provide the output of swconfig dev switch0 show in the non functional state.

root@LEDE:~# swconfig dev switch0 show
Global attributes:
	enable_vlan: 1
	mib: Switch MIB counters
PPE_AC_BCNT0: 0
PPE_AC_PCNT0: 0
PPE_AC_BCNT63: 0
PPE_AC_PCNT63: 0
PPE_MTR_CNT0: 0
PPE_MTR_CNT63: 0
GDM1_TX_GBCNT: 0
GDM1_TX_GPCNT: 0
GDM1_TX_SKIPCNT: 0
GDM1_TX_COLCNT: 0
GDM1_RX_GBCNT1: 0
GDM1_RX_GPCNT1: 0
GDM1_RX_OERCNT: 0
GDM1_RX_FERCNT: 0
GDM1_RX_SERCNT: 0
GDM1_RX_LERCNT: 0
GDM1_RX_CERCNT: 0
GDM1_RX_FCCNT: 0
GDM2_TX_GBCNT: 0
GDM2_TX_GPCNT: 0
GDM2_TX_SKIPCNT: 0
GDM2_TX_COLCNT: 0
GDM2_RX_GBCNT: 0
GDM2_RX_GPCNT: 0
GDM2_RX_OERCNT: 0
GDM2_RX_FERCNT: 0
GDM2_RX_SERCNT: 0
GDM2_RX_LERCNT: 0
GDM2_RX_CERCNT: 0
GDM2_RX_FCCNT: 0

Port 0:
	mib: Port 0 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 94495
TxMulti    : 13
TxBroad    : 5
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 1877
Tx65Byte   : 61612
Tx128Byte  : 26595
Tx256Byte  : 1395
Tx512Byte  : 1296
Tx1024Byte : 1738
TxByte     : 12825891
RxDrop     : 0
RxFiltered : 683
RxUni      : 113277
RxMulti    : 861
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 1837
Rx65Byte   : 32281
Rx128Byte  : 37934
Rx256Byte  : 3357
Rx512Byte  : 1896
Rx1024Byte : 36833
RxByte     : 66000359
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 0
	link: port:0 link:up speed:1000baseT full-duplex 
Port 1:
	mib: Port 1 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 358
TxMulti    : 550
TxBroad    : 239
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 231
Tx65Byte   : 371
Tx128Byte  : 389
Tx256Byte  : 91
Tx512Byte  : 20
Tx1024Byte : 45
TxByte     : 221810
RxDrop     : 0
RxFiltered : 8
RxUni      : 482
RxMulti    : 3133
RxBroad    : 14
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 160
Rx65Byte   : 185
Rx128Byte  : 5
Rx256Byte  : 3200
Rx512Byte  : 10
Rx1024Byte : 69
RxByte     : 1640872
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:1 link:up speed:100baseT full-duplex 
Port 2:
	mib: Port 2 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 30127
TxMulti    : 367
TxBroad    : 230
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 950
Tx65Byte   : 441
Tx128Byte  : 290
Tx256Byte  : 786
Tx512Byte  : 271
Tx1024Byte : 27986
TxByte     : 42953082
RxDrop     : 0
RxFiltered : 304
RxUni      : 13191
RxMulti    : 618
RxBroad    : 484
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 2
Rx64Byte   : 11759
Rx65Byte   : 701
Rx128Byte  : 448
Rx256Byte  : 361
Rx512Byte  : 223
Rx1024Byte : 803
RxByte     : 2335486
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 7
	link: port:2 link:up speed:1000baseT full-duplex 
Port 3:
	mib: Port 3 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 31000
TxMulti    : 3650
TxBroad    : 240
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 1260
Tx65Byte   : 14184
Tx128Byte  : 15841
Tx256Byte  : 3225
Tx512Byte  : 159
Tx1024Byte : 221
TxByte     : 5331992
RxDrop     : 0
RxFiltered : 34
RxUni      : 31330
RxMulti    : 58
RxBroad    : 19
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 795
Rx65Byte   : 17951
Rx128Byte  : 12346
Rx256Byte  : 178
Rx512Byte  : 92
Rx1024Byte : 45
RxByte     : 3232901
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:3 link:up speed:100baseT full-duplex 
Port 4:
	mib: Port 4 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 29974
TxMulti    : 3646
TxBroad    : 240
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 213
Tx65Byte   : 12768
Tx128Byte  : 17306
Tx256Byte  : 3229
Tx512Byte  : 151
Tx1024Byte : 193
TxByte     : 5279766
RxDrop     : 0
RxFiltered : 16
RxUni      : 30362
RxMulti    : 62
RxBroad    : 19
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 59
Rx65Byte   : 18479
Rx128Byte  : 11570
Rx256Byte  : 187
Rx512Byte  : 105
Rx1024Byte : 43
RxByte     : 3069063
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 1
	link: port:4 link:up speed:100baseT full-duplex 
Port 5:
	mib: Port 5 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 0
	link: port:5 link:down
Port 6:
	mib: Port 6 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 187905
TxMulti    : 4565
TxBroad    : 395
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 2
Tx64Byte   : 1851
Tx65Byte   : 82101
Tx128Byte  : 61450
Tx256Byte  : 7390
Tx512Byte  : 2317
Tx1024Byte : 37758
TxByte     : 76389996
RxDrop     : 0
RxFiltered : 140
RxUni      : 186053
RxMulti    : 429
RxBroad    : 393
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 141
Rx64Byte   : 4338
Rx65Byte   : 88660
Rx128Byte  : 59647
Rx256Byte  : 2294
Rx512Byte  : 1904
Rx1024Byte : 30173
RxByte     : 63679161
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 0
	link: port:6 link:up speed:1000baseT full-duplex 
Port 7:
	mib: Port 7 MIB counters
TxDrop     : 0
TxCRC      : 0
TxUni      : 0
TxMulti    : 0
TxBroad    : 0
TxCollision: 0
TxSingleCol: 0
TxMultiCol : 0
TxDefer    : 0
TxLateCol  : 0
TxExcCol   : 0
TxPause    : 0
Tx64Byte   : 0
Tx65Byte   : 0
Tx128Byte  : 0
Tx256Byte  : 0
Tx512Byte  : 0
Tx1024Byte : 0
TxByte     : 0
RxDrop     : 0
RxFiltered : 0
RxUni      : 0
RxMulti    : 0
RxBroad    : 0
RxAlignErr : 0
RxCRC      : 0
RxUnderSize: 0
RxFragment : 0
RxOverSize : 0
RxJabber   : 0
RxPause    : 0
Rx64Byte   : 0
Rx65Byte   : 0
Rx128Byte  : 0
Rx256Byte  : 0
Rx512Byte  : 0
Rx1024Byte : 0
RxByte     : 0
RxCtrlDrop : 0
RxIngDrop  : 0
RxARLDrop  : 0

	pvid: 0
	link: port:7 link:down
VLAN 1:
	vid: 0
	ports: 1 3 4 6t 
VLAN 2:
	vid: 0
	ports: 6t 
VLAN 4:
	vid: 0
	ports: 0t 6t 
VLAN 6:
	vid: 0
	ports: 0t 6t 
VLAN 8:
	vid: 0
	ports: 2 6t

Maybe this is also useful information, the setup of my switch in the nonfunctional state:

Thanks; can you provide me with the corresponding /etc/config/network as well?

root@LEDE:~# cat /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 globals 'globals'
	option ula_prefix 'fd76:7412:3e5b::/48'

config interface 'lan'
	option type 'bridge'
	option ifname 'eth0.1'
	option igmp_snooping '1'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'
	option broadcast '192.168.1.255'

config interface 'wan'
	option _orig_ifname 'eth0.2'
	option _orig_bridge 'false'
	option proto 'pppoe'
	option ifname 'eth0.6'
	option username 'SomeUserName'
	option password 'SomePassword'
	option ipv6 'auto'

config interface 'iptv'
	option proto 'dhcp'
	option ifname 'eth0.4'
	option classlessroute '1'
	option vendorid 'IPTV_RG'
	option defaultroute '0'
	option peerdns '0'
	option gateway '0'

config interface 'GuestLan'
	option type 'bridge'
	option igmp_snooping '1'
	option proto 'static'
	option ifname 'eth0.2'
	option ipaddr '192.168.2.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

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

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

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

config switch_vlan
	option device 'switch0'
	option vlan '3'
	option vid '3'

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

config switch_vlan
	option device 'switch0'
	option vlan '5'
	option vid '5'

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

config interface 'vpn0'
	option ifname 'tun0'
	option proto 'none'
	option auto '1'

config switch_vlan
	option device 'switch0'
	option vlan '7'
	option ports '2 6t'
	option vid '8'

config interface 'testinterface'
	option proto 'static'
	option ipaddr '192.168.200.1'
	option netmask '255.255.255.0'
	option ifname 'eth0.8'