No connection via ethernet after setting up a static IP

Hi all,

I want to start by saying I’m new to networking and TrueNAS, but I’m really excited to be here.

Onto the issue I’ve been having difficulty with:

Versions

  • TrueNAS-SCALE-24.04.2
  • Windows 11

Goal

  • Set up a direct connection from my Windows PC to my NAS.
  • Access my SMB folder with the fastest possible transfer speeds.

Issue

I can’t seem to ping/connect-to my TrueNAS server via Ethernet.

Steps I’ve taken

  1. Plug in a CAT6 ethernet cable from my NAS to my PC.
  2. Configure a network interface in TrueNAS with a static IP that is not in use by any other device.
  3. Configure my Windows PC ethernet network connection with the same static IP, subnet mask, and default gateway.

Screenshots of my configuration


windows_network_settings

Please let me know if I missed anything. Thank you!

You can’t use 192.168.8.130 in two places. In the screenshots it’s assigned to one of the TrueNAS box interfaces as well as the Windows PC.

3 Likes

is your subnet mask 255.255.255.0 if so change that adapter on pc and trunenas from 192.168.8.x to 192.168.x.x .change 8 to any number thats not in use on your network. See if that works.

1 Like

Actually let’s go further. You said “with a static IP that is not in use by any other device”.

Is this is a direct connection between the machines, and they also have connections to your regular network?

If so, be sure it’s also a different subnet than you use elsewhere, too. And don’t set gateways on this point-to-point network.

Hey, thanks for the reply.

To (attempt to) answer your question, yes, this is a direct connection between machines. However, they both are connected to my regular network as I use my TrueNAS for Syncthing.

I was completely lost before, but I feel a little like I’m understanding this basic concept a little more.

  1. Assigning the same static IP to two devices makes no sense because then they aren’t differentiable. I don’t know how this one went past my head.
  2. I don’t need the gateway because I am connecting them directly, rather than through my regular network.
  3. I should use a different subnet to separate the direct connection from my regular network?

I went ahead and changed my PC static IP to something different, used a different subnet (/25 or 255.255.255.128), and removed the gateway. After changing the subnet on TrueNAS, I was able to connect to the TrueNAS Scale Web UI via Ethernet (192.168.8.130) for a second. I think it reverted midway because I lost connection to the Web UI via home network (192.168.8.129).

Now all of the sudden, my Ethernet cable isn’t detected by my PC anymore. I’m going to debug this for now, but I think I’m on the right track thanks to you.

Hey Brandon,

Thanks for replying. I’m going to try out volts’s suggestions first and see how that goes.

Thanks @volts and @brandon_evans.

Solution:

  1. Use different IPs for each device.
  2. Use a different subnet and change the last byte of the network ID (192.168.8.x → 192.168.x.x).
  • I think I was grouping subnet with subnet masks for the majority of reading, which caused problems.

Now my speeds went from peak 10mb/s to a whopping 300mb/s!

Red herring. There’s nothing wrong with using 192.168.8.#/24 i.e. subnet mask 255.255.255.0.

What caused this issue is likely that you had two ports connected to the same subnet on your TrueNAS system. That’s an invalid configuration. Also, assigning the same IP 192.168.8.130 to both your TrueNAS and the Windows system is obviously incorrect.

1 Like

You should use a different subnet because having two interfaces on the same subnet is just not a valid configuration. Windows permits it anyway, but TrueNAS generally does not.

1 Like

Two interfaces on the same subnet is valid in a variety of scenarios, SMB Multichannel is probably the most obvious one supported by TrueNAS.

I agree that it’s usually a sign of some “how does networking work” confusion. There’s usually “I want certain traffic to only use this interface” magical thinking.

Woot!

No, in that scenario you would put one on a different subnet, like so:
Interface 1: 192.168.0.10/24
Interface 2: 192.168.1.10/24

SMB Multichannel will discover the paths and use them as needed.

1 Like

Does SCALE still prevent multiple interfaces from being assigned addresses in the same subnet?

I’ve done smb multichannel on bare linux in the same subnet, probably added more-specific routes, I don’t remember.

I wonder what Synology and QNAP and others are doing, since it “just works” on them, just like Windows. I want to go test some things. I’ll start a thread if I figure out what they’re doing.