How to setup binary IP addess on Windows Server 2019?

Shay Matityahu 0 Reputation points
2023-07-02T18:23:34.1833333+00:00

Hi

I need to setup windows server 2019 to work with 2 IP Addesses, The second IP Addess is for a VIP.

Normaly it is easy to do, but the problem started when I discovered that the traffic goes through the main IP address and not through the VIP IP address.

I contacted the manufacturer and they said that a binary IP should be defined and then I can be select which address will forward the traffic.

I did not find anywhere a guide or an article on how to setup binary IP address on a windows server.

here is the manufacturer article, I would appreciate a clear guide for this

Outbound communication from the HA pool, such as WMI or SNMP polling requests, may be sent by the primary or secondary server's IP address. All inbound communication goes through the VIP address. The active pool member has a minimum of two IP addresses available: the IP address of the server and the VIP address for the pool. Because there are multiple IP addresses bound to a single NIC, Windows chooses which IP address is used as the originating IP address. The IP address with the most high order bits that match the destination of the next hop is used as the source IP address for all outbound polling activity. You can determine the source IP address by doing the following:

  1. Convert the IP addresses to binary.
  2. From left to right, compare how many bits in the IP addresses match the default gateway's IP address.

The IP address with the most consecutive, matching bits is used for the HA pool's source IP address. In general, choose an IP address that is close to the default gateway's IP address so outbound communication comes from the VIP address, like in the first example. While this VIP selection method is not guaranteed to work, most environments are able to use this method. All local (same subnet as the SolarWinds Platform server) traffic will source from the "first" address or native. Examples of matching the binary bits The following is an example where the VIP is used as the outbound IP address. || | -------- | | |IP address|IP address converted to binary|# of matching bits| |Default Gateway (first hop)|10.199.15.1|__00001010-11000111-00001111-000__00001| | |VIP|10.199.15.20|__00001010-11000111-00001111-000__10100|27| |Primary pool member|10.199.15.61|__00001010-11000111-00001111-00__111101|26| |Secondary pool member|10.199.15.62|__00001010-11000111-00001111-00__111110|26|

The longest match in the example above is the VIP. It has 27 consecutive matching high order bits to the default gateway.

Thanks in advance

Shay

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2023-07-02T18:32:22.24+00:00

    Something here could help.

    https://learn.microsoft.com/en-us/troubleshoot/windows-server/remote/remote-desktop-ip-virtualization

    --please don't forget to upvote and Accept as answer if the reply is helpful--

    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.