On some networks the MTU ( Maximum transmitting unit ) is not the default value.
This is important to be aware of as this means the site does not conform to standard MTU Protocol.
In these cases, we can configure some custom settings to bypass this issue.


This issue will result in messages and configuration not going to and from the edge device, as the mtuon the devices is larger than the mtu on the network. These packets of larger mtu will be dropped by the network. 


To fix this check what the devices physical interface name is ( ifconfig ) you should get an eth0 or eno Interface name. 

Use that name to immediately set the MTU on the physical interface and also set the mtu on the vpn_ame interface.

pi@123:~$  sudo ip link set dev eth0 mtu 1300


pi@123:~$  sudo ip link set dev vpn_ame mtu 1300


Then CD to the amedevices directory. 

pi@123:~$ cd amedevices


Next we will replace the contents on the Docker network file. 

pi@123:~amedevices$  nano ame.sh

remove all lines and paste this line. 


docker network create --subnet=192.168.147.0/24 -o "com.docker.network.driver.mtu"=1300 ame


Then we cd to videodevices

pi@123:~amedevices$  cd videodevices


Stop the AME Containers 

pi@123:~amedevices/videodevices$  ./stop.sh


After stopping the containers , we need to remove the ame / docker network. 

pi@123:~amedevices/videodevices$   sudo docker network rm ame


Then we run a start again to recreate the network with the new specification. 

pi@123:~amedevices/videodevices$ ./start.sh


Finnally we go to crontab and make sure that we tell the device to set the Interfaces MTU's at reboot. 


pi@123:~$  sudo crontab -e


Copy and paste these two lines. 

@reboot sleep 60 && sudo ip link set dev vpn_ame mtu 1300 

@reboot sleep 60 && sudo ip link set dev eth0 mtu 1300