Computer/VMware

VMware 상의 Windows IP가 APIPA IP(169.254.x.x)로 변경되는 현상

B급찍사 2023. 10. 10. 10:36

업무상 Windows 가상머신을 대량으로 배포하게 되는데

그러다 보면 별의별 기상천외한 이슈를 만나게 된다.

 

그 중에 하나가 Windows IP 가 자동으로 DHCP로 전환되는 현상이다. 

 

네트워크쟁이가 아니라, 일목요연하게 설명하기는 어렵지만...

네트워크 상에서는 Gratuitous ARP(이하 GARP)가 동작하는데 

이 GARP는 자기를 타겟으로 해서 ARP요청을 보낸다. 

 

목적은 IP 충돌 감지(자신의 IP를 타겟으로 해서 요청을 보냈는데 다른 놈이 응답하면 아 이놈이구나... 하고 충돌을 감지)

및 ARP 갱신인데

이 부분은 전문가의 도움을...

www.netmanias.com/ko/post/blog/5402/arp-ethernet-ip-ip-routing-network-protocol/arp-and-garp-gratuitous-arp

 

ARP와 GARP(Gratuitous ARP)

IPoE(IP over Ethernet) 환경에서(현재 우리 모두가 사용하고 있는 환경이죠... L3 = IP, L2 = Ethernet) 상대방 호스트(PC/서버) 혹은 라우터의 MAC 주소를 알기 위해, 해당 노드(호스트/라우터)의 IP 주소를 타

www.netmanias.com

 

모 사이트에서 이게 대량으로 발생해서 한참을 헤매다가 겨우 해결을 했었는데

막상 얼마전에 또 다른 사이트에서 발생하니 기억만 가물하고 도저히 찾을 수가 없더란...

사용하던 노트 어플이 바뀌고 계정이 바뀌고 해서 결국 블로그에 적어두는게 현재까지는 최고인 것 같아 다시 써둔다. 

 

community.spiceworks.com/topic/446922-static-ip-devices-receiving-169-address-after-reboot

 

Static IP devices receiving 169 address after reboot

Hello community, I've got a pretty strange 'ghost in the system' here lately.  I originally thought this was happening only to my Vmware VMs, but turns out even statically assigned workstations are seeing the issue. If a server/workstation/device has a st

community.spiceworks.com

Gratuitous Arp Problem: Resolved

Root Cause: Upgraded IOS on all 3750x Cisco Switch Stacks because of known bug to cause intermittent switch reboots.

1. Upgraded to IOS Version 15.2(1)E1

2.   IOS 15.2(1)E1 Introduced new code into the switch configuration

-IP DEVICE TRACKING

IP DEVICE TRACKING: Windows Vista/2008/7 client probes for a tentative IP address at the same 
time the switch is probing for device status. This is usually triggered by rebooting which results in a duplicate ip address. To prevent the duplicate ip address on the network the windows system assigns an apipa address to the client adapter. (ie. 169.254.*.*)

Workaround: Disable gratuitous ARP on the Windows device.
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]
Set ArpRetryCount (32-bit DWORD) to 0

Solution: Configure the switch in order to send a non-RFC compliant ARP Probe to source the probe from the Switch Virtual Interface (SVI) in the VLAN where the PC resides.

ip device tracking probe use-svi

This configuration currently does not trigger the duplicate address detection error message in Microsoft Windows. The caveat to this method is that an SVI must exist on every switch in every VLAN where Microsoft Windows clients who run DHCP reside. This method is difficult to scale, so Cisco recommends that you use the IP device-tracking probe delay as the primary method. SVI is not currently available on the 6500 Series Switch platform. This command was implemented in Version 12.2(55)SE on 2900, 3500, and 3700 Series Switch platforms, and in Version 15.1(1)SG on the 4500 Series Switch platform.

 

위 사이트에서 제시하는 것은 Cisco IOS 업그레이드인데, 

스위치 IOS 업데이트를 좋아하는 사이트는... 아마 없을거다. 

얼마나 크리티컬하게 터질지 모르기 때문에, 

이 경우에는 OS에서 변경하는 것이 나 역시 맞다고 보고. 

 

HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters /t DWORD /v ArpRetryCount /d 0

Local Machine 레지스트리라서 그나마 다행이랄까...

 

2021년 2월 현재 APIPA IP로 빠지는 현상과는 조금 다르게 

아예 어댑터 자체가 DHCP로 변경되는 현상이 터져서 

찾아보는 중인데 위 이슈와 동일한 건인지 아닌지에 대해서는 확인 진행중이다. 

 

환경 :

vSphere 6.7, VxRail

vCenter 6.7

ESXi 6.7

VMware Horizon 7.12

VMware 상의 인프라에서 발생한 내용이지만, 

물리PC에서도 동일하게 일어나는 현상으로 추정. 

 

 

참고 1: kb.vmware.com/s/article/1028373

참고 2: community.spiceworks.com/topic/446922-static-ip-devices-receiving-169-address-after-reboot

 

Static IP devices receiving 169 address after reboot

Hello community, I've got a pretty strange 'ghost in the system' here lately.  I originally thought this was happening only to my Vmware VMs, but turns out even statically assigned workstations are seeing the issue. If a server/workstation/device has a st

community.spiceworks.com

참고 3: www.netmanias.com/ko/post/blog/5402/arp-ethernet-ip-ip-routing-network-protocol/arp-and-garp-gratuitous-arp

 

ARP와 GARP(Gratuitous ARP)

IPoE(IP over Ethernet) 환경에서(현재 우리 모두가 사용하고 있는 환경이죠... L3 = IP, L2 = Ethernet) 상대방 호스트(PC/서버) 혹은 라우터의 MAC 주소를 알기 위해, 해당 노드(호스트/라우터)의 IP 주소를 타

www.netmanias.com

참고 4: kb.vmware.com/s/article/2012646

반응형