Virtual Kim

@Kim_Bottu … Virtually Gung Ho

PowerCLI: the easiest way to create Private VLANS

If you like to test PVLANs but don’t like clicking around in the webclient, try creating them from PowerCLI.

The Primary VLAN in each line is always the same one and in your first line, the primary and the secondary VLAN are the same VLAN. This is because the primary PVLAN will also serve as the Pormiscuous PVLAN. I have chosen 200.

On the next lines the Primary and Secondary VLANs are different from eachother.

$vds = Get-VDSwitch ‘Your vDS’

Get-VDSwitch $vds | New-VDSwitchPrivateVlan -PrimaryVlanId 200 -SecondaryVlanId 200 -PrivateVlanType Promiscuous

Get-VDSwitch $vds | New-VDSwitchPrivateVlan -PrimaryVlanId 200 -SecondaryVlanId 201 -PrivateVlanType Community

Get-VDSwitch $vds | New-VDSwitchPrivateVlan -PrimaryVlanId 200 -SecondaryVlanId 203 -PrivateVlanType Isolated

pvlan

pvlan1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Information

This entry was posted on September 24, 2015 by in PowerCLI, PVLAN and tagged , .
Follow Virtual Kim on WordPress.com

Blog Stats

  • 25,689 hits
%d bloggers like this: