VMware Cloud Community
maniee
Enthusiast
Enthusiast

VLAN

I got a request from Application team that they need a server basically running with SQL DB, which will require 3 network VLAN, eg – Backup, end user and replication. What you will ask your network team to configure their physical switch and what configuration you will made on VC ( networking level). Please explain




Regards

Maniee.


2 Replies
BenLiebowitz
Expert
Expert

We typically have the network team create a TRUNK group and they can configure the ports to use multiple vlans.  However, keep in mind that making this change will take your host down until you set the proper VLAN ID for the VMKernel & VM network port groups.

Ben Liebowitz, VCP vExpert 2015, 2016, & 2017 If you found my post helpful, please mark it as helpful or answered to award points.
RyanH84
Expert
Expert

Hello,

Within your hosts you will have either vSwitches or DvSwitches configured depending on your license and how your VMware environment is configured.

These vSwitches will have  network adapters connected to them which is the physical networking. (EG vmnic1 and vmnic2 which are the physical host network cards plugged into a physical switch switch via CAT6 ports GE1/1 and GE2/1).

For your SQL DB VM, you will need to create 3 VMware Virtual Machine port groups on the vSwitch. (You need to repeat this on each host if you use vSwitches, or create them ONCE on your DvSwitch).

These port groups will be named and have the relevant VLAN ID assigning them them that the network team create. These VLANs will be assigned a specific network subnet.


A very simple example:

VLAN 100 = BACKUP - 192.168.100.1 /24

VLAN 150 = REPLICATION - 192.168.150.1 /24

VLAN 200 = USER (This is likely to be your default server vlan , possibly named "VM Network" already).  192.168.200.1 /24

The network team need to create the networks for you and then trunk them, as Brian said, to the physical switch ports that your ESXi hosts are connected to - via the network adapters that are used on the vSwitch for the traffic.


EG
Network switch port GE1/1 = Trunk  VLAN 100,150,200

Network switchport GE2/1  = Trunk VLAN 100,150,200

You can create three network cards for the VM and assign each of the above port groups on each virtual network adapter.

------------------------------------------------------------------------------------------------------------------------------------------------- Regards, Ryan vExpert, VCP5, VCAP5-DCA, MCITP, VCE-CIAE, NPP4 @vRyanH http://vRyan.co.uk