Skip to content

Commit 70cabee

Browse files
authored
Merge pull request #1034 from dariomws306/patch-1
Update set-vmnetworkadaptervlan.md
2 parents 04e7b42 + d6831ce commit 70cabee

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

docset/windows/hyper-v/set-vmnetworkadaptervlan.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ PS C:\> Set-VMNetworkAdapterVlan -VMName Redmond -Access -VlanId 121
7171
```
7272

7373
Sets the virtual network adapter(s) in virtual machine Redmond to the Access mode.
74-
Traffic sent by this virtual machine is tagged with VLAN ID 121.
74+
Traffic sent by this virtual machine is tagged with VLAN ID 121.
7575

7676
### Example 2
7777
```
@@ -103,11 +103,18 @@ PS C:\> Get-VM Redmond | Set-VMNetworkAdapterVlan -Untagged
103103

104104
Gets virtual machine Redmond and sets the virtual network adapters in the virtual machine to the untagged mode.
105105

106+
### Example 5
107+
```
108+
PS C:\> Set-VMNetworkAdapterVlan -ManagementOS -Access -VlanID 20
109+
```
110+
111+
Sets the virtual switch in the management OS to the Access mode.
112+
Traffic sent by this virtual switch is tagged with VLAN ID 20.
113+
106114
## PARAMETERS
107115

108116
### -Access
109-
Specifies **Access** mode for the virtual machine network adapter.
110-
This parameter must be specified in conjunction with parameter **VlanId**.
117+
Specifies **Access** mode for the virtual machine network adapter. This parameter configures an untagged virtual port with the VLANId (port based VLAN), so it must be specified together with **VlanId**.
111118

112119
```yaml
113120
Type: SwitchParameter
@@ -350,7 +357,7 @@ Accept wildcard characters: False
350357
```
351358
352359
### -Trunk
353-
Specifies **Trunk** mode for the virtual machine network adapter.
360+
Specifies **Trunk** mode for the virtual machine network adapter. This parameter configures a tagged virtual port that passes all allowed VLANId tags to the VM adapter. Traffic with the NativeVLANId is passed untagged to the VM adapter.
354361
This parameter must be used in conjunction with parameters **AllowedVlanIdList** and **NativeVlanId**.
355362
356363
```yaml
@@ -488,4 +495,4 @@ If **-PassThru** is specified.
488495
## NOTES
489496
490497
## RELATED LINKS
491-
498+
[Configure and View VLAN Settings on Hyper-V Virtual Switch Ports](https://docs.microsoft.com/windows-server/virtualization/hyper-v-virtual-switch/configure-and-view-vlan-settings-on-hyper-v-virtual-switch-ports)

0 commit comments

Comments
 (0)