Changing network configuration

Hello,

What’s the recommended approach for persistently changing network settings?

We’d like to set the MTU size:

sudo ifconfig eth0 down
sudo ifconfig eth0 mtu 8164
sudo ifconfig eth0 up

We’d like these to be applied on startup, I believe the correct way is to edit the network config files. I wasn’t able to find evidence of netplan or networkmanager cfg files in the obvious spots. Where’s the correct place to edit this? I’m mindful of not conflicting or interrupting any built-in farm ng network settings.

Thanks,
Steven

Hey @spark_res,

these will not persist because we rebuild the image every time we reboot to recover from possible problems introduced during the dev cycle. Any particular reason you need that packet size?

Thanks for responding @MScatolin.

It’s the recommended settings for some of the devices we’re using (eBUS Cameras) . In practice we’ve noticed it makes a huge improvement to the performance of these devices.

https://supportcenter.pleora.com/s/article/Configuring-Your-Computer-and-Network-Adapters-for-Best-Performance-KBase

One option we are considering is running a shell script as part of our apps initialisation but it does seem a bit messy/risky to reset network adapters when launching an app.

Thanks,
Steven

gotcha… Have you experienced issue with our current setup? I did look at another Brain and i saw 9000 byte packages, so I assumed this value would be okay for your application.