HyperV Vlan tagging for Mikrotik Firewall

HyperV Vlan tagging for Mikrotik Firewall

When you want to activate multiple VLAN on Mikrotik Interface Through Powershell  

This command is for OT vLAN's
Get-VMNetworkAdapter -VMName "_ Firewall TA Active" | where {$_.MacAddress -match "1517"} | Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList 199-230 -NativeVlanId 50  
Where:  -VMName "Name of Firewall"
Where: {$_.MacAddress -match "Mac Address of Interface that OT  Interface have"} 

This command is for Starlink to KVH-UL vLAN's
Get-VMNetworkAdapter -VMName "_ Firewall TA Active" | where {$_.MacAddress -match "A01C"}  | Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList 30-33 -NativeVlanId 30  
Where:  -VMName "Name of Firewall"
Where: {$_.MacAddress -match "Mac Address of Interface that KVH interface have"} 

This command is for DMZ Interface 
Get-VMNetworkAdapter -VMName "_iQ Marine Firewall VSAT ( Vecco )" | where {$_.MacAddress -match "A01D"}  | Set-VMNetworkAdapterVlan -Trunk -AllowedVlanIdList 21-22 -NativeVlanId 40
Where:  -VMName "Name of Firewall"
Where: {$_.MacAddress -match "Mac Address of Interface that KVH interface have"}