MTU setting won't take on TX2

I am attempting to set MTU size to 9000 on a TX2 and the following works:

sudo ifconfig eth0 mtu 9000 up

but when I change my /etc/network/interfaces.d/myconfig to:

auto eth0
iface eth0 inet static
  address 192.168.10.81
  netmask 255.255.255.0
  gateway 192.168.10.1
  mtu 9000

ifconfig before the command:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.10.81  netmask 255.255.255.0  broadcast 192.168.10.255
        ether 00:04:4b:8d:34:a2  txqueuelen 1000  (Ethernet)
        RX packets 1255  bytes 178127 (178.1 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 683  bytes 187108 (187.1 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 40

and after:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 9000
        inet 192.168.10.81  netmask 255.255.255.0  broadcast 192.168.10.255
        ether 00:04:4b:8d:34:a2  txqueuelen 1000  (Ethernet)
        RX packets 1522  bytes 211713 (211.7 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 826  bytes 225817 (225.8 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 40  

it just refuses to take the mtu 9000 in the interfaces file. I confirmed it is loading the interfaces file by changing the static IP back and forth and rebooting, but it won’t take the 9000. any thoughts?

This topic might help.

Thanks! That seems super silly but I suppose it is a solution.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.