The system defaults to 1280 unless you configure it. The number you provided is the suggestion for DS-LITE over PPPoE. This information is available in other locations.
It's not clear why you linked this thread for your inquiry. Although, there are posts that should answer your inquiry in the thread.
And then any IPv4 ping test performed in OpenWRT stops working:
PING openwrt.org (64.226.122.113): 56 data bytes
ping: sendto: Network unreachable
though IPv6 ping tests are still to working.
when MTU is at 1280 and i run ping test on my PC it looks like this:
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1252
PING 8.8.8.8 (8.8.8.8) 1252(1280) bytes of data.
1260 bytes from 8.8.8.8: icmp_seq=1 ttl=120 time=5.91 ms
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1253
PING 8.8.8.8 (8.8.8.8) 1253(1281) bytes of data.
From 192.168.1.1 icmp_seq=1 Frag needed and DF set (mtu = 1280)
ping: sendmsg: Message too long
Your orginal post showed you added -M do. So I surmise that you realize that option wasn't available on the OpenWrt version of ping.
This says you used a ping packet containing only 56 bytes. This indeed indicates some issue (perhaps user error), but it's not related to altering MTU on the DS-LITE interface.
when its not at 1280 but at 1452 for example the internet stops working, any ping test returns destination unreachable.
so setting it to 1452 doesnt seem to work even though i was told that this is supposed to the correct value. or did i set the mtu for the wrong device?
im basically just rying to figure out whats the correct MTU configuration for me (pppoe+ds-lite) but reading the existing docs and posts is confusing me. from my understanding from what i read i was supposed to set ds-wan6_4 to mtu of 1452 but that stops my internet from working.
OK. Please note this is on the OpenWrt, without using the -M settings. It says Network unreachable.
Your test results from the Debian are unrelated.
Try setting your router to the desired MTU and perform the ping test for MTU only from the Debian machine.
(I assume this issue on the OpenWrt is related to your admission in another thread that your WAN interface has no IPv4 address. But that would be off-topic. Also posting different outputs and describing them as somehow related to DS-LITE - continually thru multiple threads, unnecessary. I understand this may be new, but that seems to keep occurring.)
Please let us know the proper test results when you setup your DS-LITE interface as desired.
If you mean the OpenWrt output, you haven't shown evidence that your Internet stopped working. I Private Messaged you regarding the information you posted, and some suggestions on how to post an issue in general.
In any case, I assure you that you're not supposed to keep following documentation (some unrelated to your configuration) and past forum discussions after a successful setup - to then stop your working internet setup. The general goal is not to break your setup. It's especially poor taste to have others guess why.
You can determine the correct MTU number from the test, or
Ask your ISP
That link was provided in another thead because of your inquiry on how to know DS-LITE is configured. It identified the interface your now altering.
Thank you, yeah that makes sense, sorry i constantly did that. Got everything working now, and would now only want to set the optimal MTU if possible.
Ok so i have now set the MTU of ds-wan6_4 to 1452 and run a ping test on my debian machine, results:
user@Debian-PC:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1252
PING 8.8.8.8 (8.8.8.8) 1252(1280) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1253
PING 8.8.8.8 (8.8.8.8) 1253(1281) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
Is 'ds-wan6_4' the only interface where i would need to change the MTU?
Or do i also need to touch other interfaces?
Does this test only work if i have a mtu of 1452 set in openwrt because a mtu of 1280 would limit the test results to around 1232? or does the test work not matter what mtu is currently set?
Ok so i now got rid of the error 'destination unreachable', by simply restarting OpenWRT's network interface after setting the MTU to 1452, now the internet connection is working, BUT i still cant send larger MTU's over the ping test:
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1253
PING 8.8.8.8 (8.8.8.8) 1253(1281) bytes of data.
From 192.168.1.1 icmp_seq=1 Frag needed and DF set (mtu = 1280)
ping: sendmsg: Message too long
So the MTU is set to 1452 but behaves as if its still at 1280. ?
changed MTU of 'ds-wan6_4' to 1452, rebooted OpenWRT, performed ping test on my debian machine:
user@Debian-PC:~$ ping 8.8.8.8
PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1252
PING 8.8.8.8 (8.8.8.8) 1252(1280) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
user@Debian-PC:~$ ping 8.8.8.8 -M do -s 1253
PING 8.8.8.8 (8.8.8.8) 1253(1281) bytes of data.
From 192.168.1.1 icmp_seq=1 Destination Net Unreachable
I guess i can leave it at 1280, i just hoped it would work because i read on the forum that its supposed to be at 1452 for pppoe+dslite because lower numbers cause performance impact.
To be clear, can you describe how the MTU changed between these 2 tests - or were you just repeating that you undertook the steps?
No, it's different behavior:
(I'll re-review this thread again when I have more opportunity. As we discussed in PM, it's very confusing when the provided outputs don't match the user's commentary.)
Mutuple users advised you to leave it at default
We already discussed you must have misunderstood the thread you read - breaking your router based on a thread is not the expected outcome of reading (and comprehending) a forum
The thread you mentioned reading was provided as a link to an inquiry unrelated to your new MTU curiosity
I (and other users) discussed a few times - that only your ISP can tell you what MTU "it's supposed to be" - "reading" a forum thread won't accomplish this
yes same steps as before but this time rebooting openwrt instead of restarting openwrt's networks interface.
(set mtu to 1452 and rebooted, and then performed the ping test)
yes youre right, this time the error was there again. very weird. shouldn't rebooting also restart the network interface? i could try restarting the interface first and then rebooting, maybe this would do something, would confuse me though, because why wouldnt a reboot be enough.
.
.
anyway, maybe i'll just leave it at 1280.
I'll just review the thread when I have opportunity - because I don't understand why/how you've posted 2 different results with the same configuration.
All you had to do was reboot (and no "setting"), as you stated you already made the configuration change. I specifically inquired about the steps you undertook because of the different results you purported to receive - despite having the same configuration.
I understand you're a new user, so you probably don't understand why (again) your posted results must be considered with caution.
(In PM, I mentioned providing your configs after each change - that would have provided clarity. We can only assume your configs still match those in a previous thread.)
I agree
Or ask the only entity with first-hand knowledge of what your real MTU setting should be - your ISP