Voici un script qui vous permettra de créer vos PVLANs au sein de votre environnement Hyper-V.
# Création d'un VLAN de type isoléSet-VMNetworkAdapterVlan -VMName SRV-1 -Isolated -PrimaryVlanId 2 -SecondaryVlanId 4# Création d'un VLAN de type PromiscuousSet-VMNetworkAdapterVlan -VMName SRV-3 -Promiscuous -PrimaryVlanId 2 -SecondaryVlanIdList 4-5# Création d'un VLAN de type communitySet-VMNetworkAdapterVlan -VMName SRV-4 -community -PrimaryVlanId 2 -SecondaryVlanId 5
# Création Vlan TrunkSet-VMNetworkAdapterVlan -ManagementOS -AllowedVlanIdList "2-4-5" -NativeVlanId 0 -Trunk -VMNetworkAdapterName "LAN-SORTIE"Bon script et bon VLAN :)
@bientôt Seyfallah Tagrerout