IT Consultant Everyday Notes

Just some problems/solutions storage

Monthly Archives: May 2015

Networking: How to control source IP on multi-IP adapter

In some cases I need to bind multiple IP addresses to a single adapter.

 

like this:

SNAGHTML3f24e8bc

How to control which of them will be used as a source? It can be necessary let say for firewall rules.

The matter in fact there is RFC 3484 describing set of rules.

Since Server 2008 SP2 Microsoft offers a mechanism of control. Instead of adding additional IPs via GUI you need to use NETSH command and skipassource flag like this:

Netsh int add address <Inetrface name> <IP address> skipassource=true

IP addresses left can be used as a source as per RFC.

I found this advice here