Thursday, January 28, 2021

Windows DHCP and Static IP with dhcpstaticipcoexistence

 These Steps will setup a static IP address with DHCP as a default.

You can not do it from GUI

Open command prompt as Administrator

  1. Find out the interface name:

    netsh interface ipv4 show interface
    
  2. Enable dhcpstaticipcoexistence:

    netsh interface ipv4 set interface interface="interface name" dhcpstaticipcoexistence=enabled
    
  3. Add a static ip address to your interface

    netsh interface ipv4 add address "interface name" 192.168.x.xxx 255.255.255.0
    
  4. Use command 'ipconfig /all' to verify the static ip address is added. 



Ref: https://superuser.com/questions/679134/add-a-static-ip-alias-to-a-dhcp-interface-on-windows-8-and-above/1250941#1250941


No comments:

Post a Comment