FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
483 views 14 comments
by anonymous
Hi,

we are changing the mtu size from Wifi via Custom Script to 2300.
After Update to FW 00.07.03.1 this does not work any more.

The changed MTU is also forgotten after a restart.

3 Answers

0 votes
by anonymous
Hello,

Could you provide more details on how did you set up MTU?

Which firmware did it work previously?

How is your WiFi interface configured: as an access point or a client station?

Best regards,
by anonymous
Hi,

in System -> Custom Scripts we got the following entries:

ifconfig qmimux0 mtu 9000

ifconfig wlan0 mtu 2300

ifconfig eth0 mtu 9000

ifconfig eth1 mtu 9000

ifconfig br-config mtu 9000

exit 0

This does not change anything in the new fw.

When I change the values with ssh, its working but not persistent after restart.

Previous FW was RUTX_R_00.07.02.7

WiFi is configured as an access point
by anonymous

What firmware did you have installed before?

Did you update with Keep settings option set to on? I have attempted the command you used with a fresh install of 7.3, placed it in System -> Custom scripts, but the change was executed and it remained after device reboot. That is the purpose of data in custom scripts.

Could you try resetting your device to factory default settings?

Also, could you check if interface names, listed by ifconfig command, match the names you use in the script? 

by anonymous
As spoken we used 00.07.02.7 before.

Keep settings options was on

Resetting to factory default is not an option, our project is kinda complex... i will try to restore it from backup and try again.
by anonymous
already testing with 07.03.2

The script gets executed on startup, but the

ifconfig wlan0 mtu 2300 command does nothing.

I try it via cli and it works.
by anonymous

I added a  "sleep 5" to the beginning of the script and removed the ifconfig qmimux0 mtu 9000 (because its not available anymore). 

Now it works! Even after startup

Maybe the startup time from the wifi is longer with the new fw version, so the script does not know the controller?

0 votes
by anonymous

A Teltonika guy told me this trick for setting the MTU via CLI. This is permanently and survives a reboot:

uci add network device
uci set network.@device[-1].name=eth0
uci set network.@device[-1].mtu=9000

by anonymous
Updated an two other devices via the same way

On the first device the mtu was saved

on the second device the mtu was not saved.

all have the same configuration and previous fw
by anonymous
When you do "uci commit" and a "/etc/init.d network restart", then with "uci show network" the MTU setting will be shown. But the GUI doesnt know anything of!

In my tests, the MTU creates a lote of trouble, special case, with a webserive at port 80, just a oneway communication could be "established". For me, it seem like the RUTOS packet split isnt working properly. So, there semms to be a really narrwo band of situations, where it works properly.

Meanwhile, I removed all MTU changes everywhere.
by anonymous
unfortunately i need the mtu because some devices send large packets.

I still dont have any solution :(

i could swear that there was a possibility to change the wlan mtu directly via the gui before. with this fw its not possible anymore, maybe this is the problem?
by anonymous

Could you try if the following works:

  • ip link set dev wlan0 mtu 2300
by anonymous
Not persistent after reboot :(
by anonymous

Append the /etc/config/network configuration file with the following lines at the end:

config device
        option name 'wlan0'
        option mtu '2300'

As in the example below(I used 1800). It remained after device reboot:

by anonymous
Does not work :(

The only working trick at the moment is to add a sleep 10 to the custom script..
0 votes
by anonymous
so the 00.07.03.3 is the fix for it? :D
by anonymous
Have you tried it and did it solve the issue?
by anonymous
don't have the time at the moment. :(