Skip to content

Instantly share code, notes, and snippets.

@ofaurax
Last active June 16, 2021 09:56
Show Gist options
  • Save ofaurax/0d1ca0a989da9f9208c46c97f0aadbcd to your computer and use it in GitHub Desktop.
Save ofaurax/0d1ca0a989da9f9208c46c97f0aadbcd to your computer and use it in GitHub Desktop.
Tips on Synology NAS

Synology NAS DS1817 loses connection after a while

We have a synology NAS, and we use a SMB share to store data downloaded from another source.

However, after a while, the network become slow, then stop to work.

We tested:

  • access to the SMB share
  • ping the NAS
  • ssh to the NAS

The SMB share become unavailable.
The ping is erratic: sometimes packes are lost, sometimes it takes 2.5s or 3s on the local network.
SSH to the NAS works but is slow: you need to wait a while to see what you type.

Quick fix

unplug/replug the ethernet cable: by magic all is available as before.

Real fix to simulaire unplug/replug

In the configuration panel, choose the "Task launcher" (not sure the real name in english). Add a script (executed by root) launched every 15min with these lines (for the first ethernet plug):

ifconfig eth0 down
sleep 1
ifconfig eth0 up

This simulates a plug/unplug and then the scripts are excuted.

There is second of interrupted communication. This shouldn't be a problem for the SMB share, as it is based on TCP and ther should be a correct handling of packet/connection loss.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment