Hyper-V VM 의 스위치에 고정 IP 부여하기
Hyper-V 에서 기본으로 제공하는 Default Switch 는 NAT 와 DHCP 를 모두 지원하지만, 스위치의 IP 가 재부팅때마다 변경되어 일부의 경우에 매우 불편함을 초래함. Hyper-V 가상 스위치 관리자에서 내부 스위치 생성( 예) 이름 => "Internal Switch" ) 해당 가상 스위치는 DHCP 를 지원하지 않기 때문에 VM에 직접 IP를 지정해야 한다. VM 에서 게이트웨이를 192.168.100.1, 자신의 IP 를 192.168.100.10 등으로 지정한다. PowerShell New-VMSwitch -SwitchName "Internal Switch" -SwitchType Internal New-NetIPAddress -IPAddress 192.168.100.1 -PrefixLength 24 -InterfaceAlias "Internal Switch" New-NetNat -Name "Internal Switch" -InternalIPInterfaceAddressPrefix 192.168.100.0/24

Hyper-V 에서 기본으로 제공하는 Default Switch 는 NAT 와 DHCP 를 모두 지원하지만, 스위치의 IP 가 재부팅때마다 변경되어 일부의 경우에 매우 불편함을 초래함.
- Hyper-V 가상 스위치 관리자에서 내부 스위치 생성( 예) 이름 => "Internal Switch" )
해당 가상 스위치는 DHCP 를 지원하지 않기 때문에 VM에 직접 IP를 지정해야 한다.
- VM 에서 게이트웨이를 192.168.100.1, 자신의 IP 를 192.168.100.10 등으로 지정한다.
PowerShell
New-VMSwitch -SwitchName "Internal Switch" -SwitchType Internal
New-NetIPAddress -IPAddress 192.168.100.1 -PrefixLength 24 -InterfaceAlias "Internal Switch"
New-NetNat -Name "Internal Switch" -InternalIPInterfaceAddressPrefix 192.168.100.0/24