Hyper-V 가상머신 Ubuntu의 IP 고정 시키기
- 윈도우가 부팅될때 마다 Hyper-V에서 사용되는 랜카드의 IP가 달라짐
- Hyper-V가상머신의 IP도 변경됨
- 이런 현상에 대한 대응 방법
* Hyper-V 가상머신 설정 (그냥 확인만)
네크워크 어댑터 -> 고급 기능 -> MAC 주소 -> 정적 
* 가상머신 Ubuntu 설정
    - 우분투 리눅스 IP 고정 시키기
https://itectec.com/superuser/how-to-configure-static-ip-address-for-a-hyper-v-vm-ubuntu-19-10-quick-create-to-avoid-updating-ssh-config-after-each-reboot/ 
  
# cd /etc/netplan/ 
    - 파일 수정 
# nano 01-network-manager-all.yaml 
network: 
  version: 2 
  renderer: networkd   
  ethernets: 
    eth0: 
      addresses: 
      - 192.168.0.2/24 
      gateway4: 192.168.0.1 
      nameservers: 
        addresses: 
        - 8.8.8.8 
        - 8.8.4.4 
      dhcp4: no 
    - 수정내용 적용 
# netplan apply 
# ifconfig -a 
//-------------------------------------
< 윈도우 설정 >
* Hyper-V에서 사용된 "vEthernet (Default Switch)" NIC에 IP 추가 
    - 윈도우 부팅시 IP 추가 명령어 실행 
    - IP 추가 명령어 
netsh interface ip add address name="vEthernet (Default Switch)"  192.168.0.1 255.255.255.0 
//------------------------------------- 
< 참고 >  
    - IP 변경 설정 
netsh interface ip set address name="vEthernet (Default Switch)" static 192.168.0.1 255.255.255.0 none