Windows server 2019 disabling DHCP

This instruction is useful for ESXI virtual machines that have the IP address of the real machine.

A situation is possible when the machine, after starting, automatically receives an address from the 169. *. *. * This address ultimately prevents the machine from connecting to the network, while the manually set address is ignored. You can see this situation in the screenshot.

In order to correct this situation, it is necessary to disable DHCP address acquisition option on the server.

To do this, you need to start the command line and type the following command.

ipconfig /all

In the output, note the following lines:

Autoconfiguration IPv4 Address. . : 169.254.248.201(Preferred) Subnet Mask . . . . . . . . . . . : 255.255.0.0 IPv4 Address. . . . . . . . . . . : 192.168.1.136(Duplicate)

As you can see, the preferred address is 169.254.248.201, with which the connection will fail.

Please, enter the following command:

netsh interface ipv4 show inter

The output will show a list of active system interfaces

Idx Met MTU State Name --- ---------- ---------- ------------ --------------------------- 1 75 4294967295 connected Loopback Pseudo-Interface 1 2 1 1500 disconnected VPN - VPN Client 12 25 1500 connected Ethernet 2

The latter is the index of the interface that is connected to the network. Further, we will indicate that index as a preferable one for the system.

netsh interface ipv4 set interface 12 dadtransmits=0 store=persistent

Instead of 12, you may have a different number. Next, go to "Control Panel - Administrative Tools - Services" and disable the autostart of the DHCP service.

How useful was this article?

VAT

  • Other

    Other

    0%
  • austria

    Austria

    20%
  • Belgium

    Belgium

    21%
  • Bulgaria

    Bulgaria

    20%
  • Croatia

    Croatia

    25%
  • Cyprus

    Cyprus

    19%
  • Czech Republic

    Czech Republic

    21%
  • Denmark

    Denmark

    25%
  • Estonia

    Estonia

    22%
  • France

    France

    20%
  • Finland

    Finland

    24%
  • Germany

    Germany

    19%
  • Greece

    Greece

    24%
  • Hungary

    Hungary

    27%
  • Ireland

    Ireland

    23%
  • Italy

    Italy

    22%
  • Latvia

    Latvia

    21%
  • Lithuania

    Lithuania

    21%
  • Luxembourg

    Luxembourg

    17%
  • Malta

    Malta

    18%
  • Netherlands

    Netherlands

    21%
  • Poland

    Poland

    23%
  • Portugal

    Portugal

    23%
  • Romania

    Romania

    19%
  • Slovakia

    Slovakia

    20%
  • Slovenia

    Slovenia

    %
  • Spain

    Spain

    21%
  • Sweden

    Sweden

    25%
  • USA

    USA

    0%
european
states
  • Other
  • canada
  • poland
  • european-union
  • france
  • germany
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria
  • austria