Thursday, December 04, 2014

/31 aka netmask with Windows

Windows GUI prevents you from setting this with helpful error message of "All of the bits in the host address portion of the IP address are set to 0". IP stack seems to be fine with /31 networks so just set it from CLI.

netsh interface show interface

netsh interface ip set address name="Local Area Connection" source=static addr= mask= gateway=10.71l.219.239


  1. Thanks for the manual. CMD should ne runned as Administrator.

  2. Works perfectly on Windows 7 and higher.
    Wonder if there is option not to specify interface name itself (this may change or differ in Workstations) in Windows OS but rather some other parameter like ID etc.


Got something to say?!