Hi,
For testing purposes I need to change mtu of interface multiple times on the fly using either ip or ifconfig. I am experiencing a delay in the used value, meaning:
1. Set mtu to 3000 on interface
2. Run 'ping <client_ip> -s 8700 -M do' which will fail (expected) with:
Code:
From 3.0.0.14 icmp_seq=1 Frag needed and DF set (mtu = 3000)
From 3.0.0.14 icmp_seq=1 Frag needed and DF set (mtu = 3000)
From 3.0.0.14 icmp_seq=1 Frag needed and DF set (mtu = 3000)
3. Set mtu to 9000 on same interface
4. Run 'ping <client_ip> -s 8700 -M do' which will fail again (unexpected) with same output as above:
Code:
From 3.0.0.14 icmp_seq=1 Frag needed and DF set (mtu = 3000)
From 3.0.0.14 icmp_seq=1 Frag needed and DF set (mtu = 3000)
From 3.0.0.14 icmp_seq=1 Frag needed and DF set (mtu = 3000)
After some time (~5 or more minutes) the ping will fix itself and start passing. My question: is there some sort of cache for mtu value in the system? Can it be cleared?


Thanks