4

I'm looking to purchase a portable NAS, say the Synology DS1019+ for example, to use as a shared storage drive between two workstations beside each other.

There is no wired network access anywhere close, so the workstations are connected to the network via Wi-Fi.

What I want to do is set the NAS up merely as a local storage drive between the two, without it being connected to the network - there's no need.

What are my options here? Can I simply buy a small 4 port switch, and hook up the two workstations and the NAS to the switch? Will the computers still being on the Wi-Fi cause any issues?

Dave M
  • 4,494

3 Answers3

4

It is quite simple to achieve, you just need to have an eye on the routing of the computers.

Say your WiFi Network has the Network 192.168.178.0/24, means the WiFi network has an address range from 192.168.178.1 - 192.168.178.255.

When you connect a computer via WiFi, the router will configure that machine via DHCP to send all packets from the 192.168.178.0/24 network to the router, and sets itself as a default gateway, that you talk to the router when you want to access a IP from the internet. That's all fine and we won't touch the WiFi network and it's configuration.

Now, you just make up a new network, configure all relevant Ethernet interfaces with it, lets say the 192.168.177.0/24 network.

Machine A's wired Ethernet configuration:
Static IP: 192.168.177.11
Netmask: 255.255.255.0
with no gateway!

Machine B's wired Ethernet configuration:
Static IP: 192.168.177.12
Netmask: 255.255.255.0
with no gateway!

NAS's wired Ethernet configuration
Static IP: 192.168.177.10
Netmask: 255.255.255.0
with no gateway!

Then your two computers can access the WiFi Network with internet access, and when you address the 192.168.177.0/24 Network, your computers will choose the cable to talk with each other or your NAS beside your coexisting WiFi network simultaneously - so both connects are active.

The easiest way to configure the NAS is to connect it once to an existing network like the WiFi router (with cable), then you can address it with one of your computers and configure the static IP - after you have done that, your NAS is not available in your WiFi network anymore, but when you have set up your Computers' Ethernet-Interfaces, you can continue talking to you NAS in your isolated, cable-bound network.

And if you are cool and use Linux, here is a sample Machine A's wired Ethernet network configuration in /etc/network/interfaces, assuming you're running a Debian based Linux (like Ubuntu and also Raspberry PI), assuming it's Ethernet interface is called eth0.

auto eth0
iface eth0 inet static
    address 192.168.177.11/24

Cheers

ahandi
  • 71
2

Most Synology devices have DHPC servers built in to the device. To build on what ahandi suggested.

NAS's Ethernet-Configuration
Static IP: 192.168.177.10
Netmask: 255.255.255.0
with no gateway!

DHCP Server configuration on Synology
Start IP: 192.168.177.11
End IP: 192.168.177.254
Subnet Mask: 255.255.255.0
DNS: 192.168.177.10 (The Synology)
No gateway

Adding the DHCP server means you can connect any computer that switch and it will get an IP address from the Synology and therefore get access to the NAS.

egas
  • 21
0

You don't need a switch, the NAS you are looking at has 2 ethernet ports. You can connect each one of the two PC's to one port on the NAS.

If the NAS wouldn't have enough ports, then you would need a switch (or if you need to connect more computers in the future).

As for configuring IP addresses - maybe you don't even need to configure anything, machines sometimes also have a link-local ip, in the 169.254.0.0/16 range (169.254.0.0 - 169.254.255.255), see this.

You could look up the IP of the NAS from the commandline on each of the PC's:

  • Windows:
    Open command line and issue the command: arp -a

  • Debian: Issue the command arp -a, make sure to have the net-tools package installed.

You will see a list like:

arp -a

Interface: 169.254.aaa.bbb --- 0xe
  Internet Address      Physical Address      Type
  169.254.xxx.yyy       00-11-22-33-44-55     dynamic
  224.0.0.22            01-00-5e-00-00-16     static
  224.0.0.251           01-00-5e-00-00-fb     static
  224.0.0.252           01-00-5e-00-00-fc     static
  239.255.255.250       01-00-5e-7f-ff-fa     static
  255.255.255.255       ff-ff-ff-ff-ff-ff     static

The machine at 169.254.xxx.yyy will be your NAS. It may be a different IP for the other PC.

You can then connect to this IP, as usual with your NAS software.

Do keep in mind that any WiFi drivers or software (or even Windows itself - group policies) might disable WiFi when ethernet is plugged in. You should disable that before performing any solutions mentioned here.

If this works - this is literally the easiest and "just plug and play" solution.

Whenever I need to transfer big files quickly between two machines (be it Windows or Linux OS based), I always just directly connect them, find the link-local address and access that address from the other machines. The only times this didn't work - the OS firewall needed to be configured to allow file sharing, after which this always worked.

Gizmo
  • 299