Thursday, October 19, 2023

get rid of 169.254.x.x ip address resolution in windows server 2016-2019 and win 10

169.254.x.x ip address resolution in windows server 2016-2019 :-

---------------------------------------------------------------------------------------------------

 let mine ip address is : 169.254.31.112

step 1 :

cmd : as admin : fire this command :

promt > netsh interface ipv4 show inter

this will show all network adapters.

step 2 :
prompt >  netsh interface ipv4 set interface * dadtransmits=0 stor=persistent


Here " * " is number of interface as mine is 3 that i want to change. so command will be :

prompt >  netsh interface ipv4 set interface 3 dadtransmits=0 stor=persistent
step 3 :

run -> ncpa.cpl <-|( press enter )
set static ip address :

192.168.6.1 ( this is mine server's static ip address )

mask : 255.255.255.0
gateway :
preferred DNS : 192.168.6.1 ( mine server's ip address, do not enter 127.0.0.1 )

step 4 :

go to services.msc
go to DHCP Client and stop it permanently.
if it does not stops, set start up type to "disabled".
and stop it.

step 5 :
Reboot System.

check details of network adapter. It's got fixed.

 For windows 10 :-

----------------------

cmd : as admin : fire this command :

promt > netsh interface ipv4 show inter

this will show all network adapters.

step 2 :
prompt >  netsh interface ipv4 set interface * dadtransmits=0 stor=persistent
Here "*" is number of interface as mine is 3 that i want to change. so command will be :

prompt >  netsh interface ipv4 set interface 3 dadtransmits=0 stor=persistent
step 3 :

run -> ncpa.cpl <-|( press enter )
set static ip address :
as mine

192.168.2.8

192.168.6.1 ( this is mine server's static ip address )

mask : 255.255.255.0
gateway :
preferred DNS : 192.168.6.1 ( mine server's ip address, do not enter 127.0.0.1 )

for example :-
--------------
Microsoft Windows [Version 10.0.10240]
(c) 2015 Microsoft Corporation. All rights reserved.

C:\Windows\system32>netsh interface ipv4 show inter

Idx     Met         MTU          State                Name
---  ----------  ----------  ------------  ---------------------------
  1          50  4294967295  connected     Loopback Pseudo-Interface 1
  3          10        1500  connected     Ethernet0

Here mine " * " is 3 i.e. Idx 3 display output of above command.

Then fire this command :-


C:\Windows\system32>netsh interface ipv4 set interface 3 dadtransmits=0 stor=persistent


Ok.

Now change ip address of your host as given above. Or you may use DHCP server to get IP Address.

Its now Solved.