
On 01/10/2012, at 8:12, James Harper <james.harper@bendigoit.com.au> wrote:
I want my regular eth0 interface to have an MTU of 1500, and have eth0.12 with an MTU of 9000, but Linux seems to want to keep the MTU consistent across all VLAN interfaces.
Has anyone done this before? I don't know if it's a limitation of my Ethernet hardware or of Linux. In theory, as long as Linux only transmits <=1500 byte packets it shouldn't matter what the underlying hardware is set to, so I don't know why this restriction exists.
The base interface needs to have an MTU at least that of any vlan interface, but you should be able to set each vlan interface MTU to any value. However each vlan interface MTU will need to be set explicitly, else it will inherit the MTU on creation. What distro are you using? On Debian my interfaces file is similar to: iface eth0 inet manual up ip link set $DEV up mtu 1540 iface eth0.10 inet static ... mtu 1500