VMware vSphere: Configuring VLAN and PVLAN Settings

Definitions:

VLAN (Virtual Local Area Network): Segment the physical network connections, to provide better performance, reduce congestion and isolate devices.

A logical grouping of devices on a network, separated from other VLANs by a unique VLAN ID (VID). VLANs allow multiple IP subnets to coexist on the same physical network.

PVLAN (Private VLAN): A PVLAN is a further segmentation of a VLAN, allowing you to isolate devices within the same VLAN. PVLANs use a combination of primary and secondary VLANs to provide isolation.

Subnet: Layer 3, seperate networks physically. Subnets are created by using routers.

VLAN: Layer 2, seperate networks virtually. VLANs created on a VLAN enabled switch.

VLAN Trunking: VLAN trunking allows multiple Virtual Local Area Networks (VLANs) to share a single physical link


VLAN Steps

1. Go to vSphere > Network

2. Select a Switch (We selected the "Storage" Switch)

3. Select a Port Group (We selected the "Management-Storage" Switch)

4. Go to Configure > Settings > Properties

5. Click on the "Edit" button




6. Go to VLAN > VLAN types

7. In the drop down, select "VLAN"




8. Enter in the VLAN ID

Note: VMs need to have the correct IP address and subnet that corresponds to the VLAN.




Once this is configured at the Port Group level, you also wanna configure VLANs, on the DV switch uplinks.

9. Go to vSphere > Network

10. Select a Switch (We selected the "Storage" Switch)

11. Go to Configure > Settings > Topology

12. Click on the 3 dots and select "Edit Settings"




On our DV uplink group

13. This is where you would configure VLAN trunking

and that's because these are the uplinks that are connecting to the physical network. You'd wanna make sure that the VLAN trunk is configured to accept all the VLANs that are configrued across all of the Port Groups. Because those VLAN IDs would be sent up to the physical switches. With the uplinks serving as the VLAN trunks.

You'd also need to configure VLANs and VLAN trunking on the physical switches where the uplinks connect.




Configure VLANs on a per port basis

1. Go to vSphere > Network

2. Select a Switch (We selected the "Storage" Switch)

3. Select a Port Group (We selected the "Management-Storage" Switch)

4. Go to Configure > Settings > VLAN

5. Pick "Allowed"




6. Go to vSphere > Network

7. Select a Switch (We selected the "Storage" Switch)

8. Select a Port Group (We selected the "Management-Storage" Switch)

9. Go to Ports > Three Dots > Edit




10. Click on "VLAN"

11. Click [✓] Override

12. Select which VLAN you want from the drop down.




PVLAN Steps

1. COMMING SOON!