Windows Server 2019 wyłączający DHCP

Ta instrukcja jest przydatna w przypadku maszyn wirtualnych ESXI, które mają adres IP rzeczywistej maszyny.

Możliwa jest sytuacja, w której maszyna po uruchomieniu automatycznie otrzymuje adres od 169. *. *. * Ten adres ostatecznie uniemożliwia maszynie połączenie się z siecią, podczas gdy ręcznie ustawiony adres jest ignorowany. Sytuację tę można zobaczyć na zrzucie ekranu.

Aby naprawić tę sytuację, konieczne jest wyłączenie opcji pozyskiwania adresów DHCP na serwerze.

Aby to zrobić, należy uruchomić wiersz poleceń i wpisać następujące polecenie.

ipconfig /all

Na wyjściu zwróć uwagę na następujące wiersze:

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

Jak widać, preferowany adres to 169.254.248.201, z którym połączenie nie powiedzie się.

Wprowadź następujące polecenie:

netsh interface ipv4 show inter

Wyjście pokaże listę aktywnych interfejsów systemowych:

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

Ten ostatni jest indeksem interfejsu, który jest podłączony do sieci. Ponadto wskażemy ten indeks jako preferowany dla systemu.

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

Zamiast 12, możesz mieć inną liczbę. Następnie przejdź do "Panel sterowania - Narzędzia administracyjne - Usługi" i wyłącz autostart usługi DHCP.

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