Separate MTU for IPv4 and IPv6 on Linux

1

Is it possible to define MTU on an interface with different values for IPv4 and IPv6 on a Linux machine? It seems that command ifconfig MTU defines the same MTU for both IPv4 and IPv6.
Any help is appreciated.

Gaston

Posted 2018-07-18T12:10:11.940

Reputation: 111

What distribution are you on? – Fanatique – 2018-07-18T12:19:19.560

Answers

2

This might help you. Setting a higher value in

 /proc/sys/net/ipv6/conf/eth0/mtu 


command sudo sh -c "echo 0 > /proc/sys/net/ipv6/conf/eth0/mtu

But turns out it can be reset regularly by the router. Quote from a comment in this link. How to configure a large mtu (linux)

This value gets updated/reset regularly through Router Advertisement. RA can be disabled by writing 0 to accept_ra in the same folder under /proc.

Ugur Akgul

Posted 2018-07-18T12:10:11.940

Reputation: 21

1Of course if you don't accept RA you might not even get an IPv6 address or route. – Michael Hampton – 2018-07-18T13:55:25.040