#author("2020-03-15T04:42:31+09:00","default:egashira","egashira") #author("2020-03-15T04:45:47+09:00","default:egashira","egashira") [[Windows TIPS]] *Hyper-V ネットワーク [#ufcdfe5a] #ref(./hyperv-7-638.jpg,100%); **GUIとの関係 [#d2eafe12] #ref(./hyperv-8-638.jpg,100%); #hr #ref(./hyperv-9-638.jpg,100%); #hr #ref(./hyperv-10-638.jpg,100%); **NAT仮想SW 作成例 [#cfcd7d61] #ref(./hyperv-41-638.jpg,100%); -仮想SW(内部ネットワーク)作成 --New-VMSwitch -SwitchName "NAPT Network" -SwitchType Internal -Ifindex取得 --$NIC = Get-NetAdapter | ? Name -eq "vEthernet (NAPT Network)" --$IfIndex = $NIC.IfIndex -NAPT内側のGateway(ホストマウント仮想NIC)のIPアドレス設定 --New-NetIPAddress -IPAddress 192.168.1.254 -PrefixLength 24 -InterfaceIndex $IfIndex -NATレンジ指定 --New-NetNat -Name "192.168.1.0/24" -InternalIPInterfaceAddressPrefix 192.168.1.0/24 #hr #ref(./hyperv-42-638.jpg,100%);