I'm not sure.. Under normal circumstances, pppoe-wan
is set to MTU 1492 automatically, and the pppd
command line also shows mtu 1492 mru 1492
.
I did not enable VLAN tagging on the DrayTek modem. My router does this as well. So the DrayTek is already passing larger packets (MTU 1492 + 8 bytes PPPoE overhead + 4 bytes 801.2Q overhead = MTU 1504).
I actually tried something that at least claimed to set everything correctly:
config interface 'switch'
option ifname 'eth0'
option mtu '1508'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option mtu '1500'
...
config interface 'wan_dev'
option ifname 'eth0.6'
option mtu '1508'
config interface 'wan'
option ifname '@wan_dev'
option mtu '1500'
option proto 'pppoe'
...
This set all interfaces correctly:
eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508
br-lan: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
eth0.1@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508
eth0.6@eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1508
pppoe-wan: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500
wlan1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500
And it set the pppd
command line correctly:
/usr/sbin/pppd nodetach ipparam wan ifname pppoe-wan lcp-echo-interval 1 lcp-echo-failure 5 lcp-echo-adaptive +ipv6 set AUTOIPV6=1 nodefaultroute usepeerdns maxfail 1 user xs4all password xs4all ip-up-script /lib/netifd/ppp-up ipv6-up-script /lib/netifd/ppp6-up ip-down-script /lib/netifd/ppp-down ipv6-down-script /lib/netifd/ppp-down ipv6-down-script /lib/netifd/ppp-down mtu 1500 mru 1500 plugin rp-pppoe.so nic-eth0.6
But it didn't work. I still got the black hole situation of connections breaking after the handshake.
According to the internet, DrayTek Vigor devices like the 130 and 165 should support baby jumbo frames, but no official documentation exists. So I guess I'll have to wait for DrayTek's reply to my e-mail asking them about it.