Hyper-V 가상머신 PVLAN 구성
서브넷의 단순화, 보안 등의 이유로 PVLAN을 구성하여 사용합니다.
PVLAN 모드
1. Community : 같은 PVLAN과 Promiscuous와 통신 가능
2. Isolated : Promiscuous와 통신 가능
3. Promiscuous : 모든 포트와 통신 가능
Hyper-V 가상머신에 적용할때 파워쉘을 통해 가능합니다.
Community 구성
Set-VMNetworkAdapterVlan -VMName <가상머신명> -PrimaryVlan <VlanID> -SecondaryVlanId <VlanID> -Community
Community 확인
Get-VMNetworkAdapterVlan -VMName <가상머신명>
Isolated 구성
Set-VMNetworkAdapterVlan -VMName <가상머신명> -PrimaryVlanId <VlanID> -SecondaryVlanId <VlanID> -Isolated
Isolated 확인
Get-VMNetworkAdapterVlan -VMName <가상머신명>
Promiscuous 구성
Set-VMNetworkAdapterVlan -VMName <가상머신명> -PrimaryVlanId <VlanID> -SecondaryVlanIdList <VlanID범위> -Promiscuous
Promiscuous 확인
Get-VMNetworkAdapterVlan -VMName <가상머신명>
Comunity와 Isolated는 마지막 옵션만 다르게 주면 되고 Promiscuous는 SecondaryVlanIDList옵션으로 범위 지정하면됩니다.
Vlan 관련 내용 초기화 및 확인
Set-VMNetworkAdapterVlan -VMName <가상머신명> -Untagged
Get-VMNetworkAdapterVlan -VMName <가상머신명>