Two network cards: SMB (file share) connecting to wrong IP

roska rahkonen 0 Reputation points
2023-07-11T13:17:21.82+00:00

Hi,

The situation:

When a server is having two network cards, client tries to connect to secondary IP through gateway(firewall).

I can access the file share but trying to connect wrong network card will create timeouts because there it is wrong route.

This is how it should go without going to gateway, because they are in the same subnet.
Source 10.0.0.50 -> Destination: 10.0.0.49:445 (SMB).

This how it sometimes tries to go:
Source 10.0.0.50 -> Destination 192.168.0.15:445 (SMB)

Server: Windows Server 2016 (1607)

Network adapter 1:

IP: 10.0.0.49
Mask: 255.255.255.0
GW: 10.0.0.1
DNS: 10.0.0.21

Network adapter 2:

IP: 192.168.0.15
Mask: 255.255.255.0
GW: None
DNS: None

Client: Windows Server 2016 (1607)

IP: 10.0.0.50
Mask: 255.255.255.0
GW: 10.0.0.1
DNS: 10.0.0.21

I have tested with Server 2022 and Windows 10. It is the same situation.
If any would have some solution or hints, I would be grateful :)

BR,

Mr. Roska

Windows Server
Windows Server
A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.
13,348 questions
Windows 10 Network
Windows 10 Network
Windows 10: A Microsoft operating system that runs on personal computers and tablets.Network: A group of devices that communicate either wirelessly or via a physical connection.
2,366 questions
Windows Network
Windows Network
Windows: A family of Microsoft operating systems that run across personal computers, tablets, laptops, phones, internet of things devices, self-contained mixed reality headsets, large collaboration screens, and other devices.Network: A group of devices that communicate either wirelessly or via a physical connection.
782 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. roska rahkonen 0 Reputation points
    2023-11-16T16:44:57.1533333+00:00

    I found the reason. By default Windows uses MultiChannel. It is good for load balancing but when having network cards on totally different networks it can be disabled:

    Set-SmbServerConfiguration -EnableMultiChannel $false

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.