How to force win to set up an smb connection to only one of the two possible routes?
Given: two machines with win server with two possible communication paths
1) directly with a cable subnet 192.168.99.0/24
2) through the router to the subnet 172.16.1.0/24
When one machine tries to connect to another via smb at the network 192.168.99.0/24 is actually installed and the network 172.16.1.0/24.
Both machines are in domain, netbios is completely disabled, the DNS knows nothing about the network 192.168.99.0/24.
Stat net in the following picture:
TCP 172.16.1.17:49224 %servername%:microsoft-ds ESTABLISHED
TCP 172.16.1.17:49225 %servername%:microsoft-ds ESTABLISHED
TCP 172.16.1.17:49226 %servername%:microsoft-ds ESTABLISHED
TCP 192.168.99.3:49219 192.168.99.1:microsoft-ds ESTABLISHED
TCP 192.168.99.3:49220 192.168.99.1:microsoft-ds ESTABLISHED
TCP 192.168.99.3:49221 192.168.99.1:microsoft-ds ESTABLISHED
TCP 192.168.99.3:49222 192.168.99.1:microsoft-ds ESTABLISHED
Why win does that, and how to avoid it?
%servername% resolvida, of course, as an address from the network 172.16.1.0/24.
All connections are of the form 172.16.1.0/24 -> 172.16.1.0/24 and 192.168.99.0/24 -> 192.168.99.0/24; compounds of kind 172.16.1.0/24 -> 192.168.99.0/24 or in the opposite direction is not. That is, there are not routing issues.
Win somehow determines that the target server is available at a different address than the one directly specified as the target address of the smb connection. How?
Your two servers don't know anything about each other (netbios off), all they know is the fact that it gives the DNS server and as I understand he gives them 172ю get hooked.
Use for smb tamest names, specific addresses 192й subnet or a pointer in the hosts explicitly bind to the address of 192й subnet.
In General, it is not clear what for such perversion.
earl.Weissnat answered on June 3rd 19 at 19:21
If you contact SBM server address from the subnet in which you are, the traffic will go directly.
If it doesn't directly means you are probably called by their first name, and the name gives a different IP address, the traffic goes through the default route on the router.
Conclusion - go via IP address or follow the mapping of names and addresses - who is involved in these DNS or WINS