How to disable IP autoconfiguration in Core server

If you add a static IP in a core server, you may see that the auto configuration is on and giving a 169.0.0.0 number as the preferred address and the new static IP as the duplicate address. This will not work. When using a Core server, use the following steps to fix the issue.

4 Steps total

Step 1: Run > cmd > ipconfig /all

Looks to see which IP is the preferred and if autoconfiguration is on.

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) 82567LM-3 Gigabit Network Connection
Physical Address. . . . . . . . . : 00-23-24-08-30-57
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::8508:6cb9:5112:f8c9 (Preferred)
Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 192.168.1.1
DNS Servers . . . . . . . . . . . : 192.168.1.1
NetBIOS over Tcpip. . . . . . . . : Enabled

Step 2: netsh interface ipv4 show inter

After running this command. Look for your index number:

result as:

Idx Met MTU State Name
— ———- ———- ———— —————————
1 50 4294967295 connected Loopback Pseudo-Interface 1
11 10 1500 connected Local Area Connection

11: <=Keep it in mind

Step 3: netsh interface ipv4 set interface 11 dadtransmits=0 store=persistent

run this command to fix the correct index (interface).
Replace “11” with your index number.

Step 4: services.msc

Disable the DHCP Client service. If you ever go back to DHCP from static, remember to set this back to automatic.

Restart your computer.

Archives