User Tools

Site Tools


interfaces_vswitches_and_port_groups

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
interfaces_vswitches_and_port_groups [2017/07/18 10:03] walkeradmininterfaces_vswitches_and_port_groups [2017/07/18 11:05] walkeradmin
Line 5: Line 5:
  
 ---- ----
 +==== Overview ====
 If you are like me, and used earlier versions of VMWare (ver4) then version 6 might be a little confusing when it comes to the networking architecture. When I used to use older versions of VMWare (never used vCenter) you just as signed a physical interface to a VM. While you can still do this, it's not as obvious how to do it. If you are like me, and used earlier versions of VMWare (ver4) then version 6 might be a little confusing when it comes to the networking architecture. When I used to use older versions of VMWare (never used vCenter) you just as signed a physical interface to a VM. While you can still do this, it's not as obvious how to do it.
 \\  \\ 
 \\  \\ 
 +==== Terminology ====
 +When considering how networking functions in VMWare (6.5.0 is what i am using) it can seem very confusing, however once you have configured it once it makes a lot of sense, it's just a little confusing at first. Before we look at configuration, lets consider some common terms that we will be using.
 +\\ 
 +<color #00a2e8>vSwitch</color> - This is a virtual switch, this just allows a user to assign virtual ports (called port groups) to a virtual switch. A <color #00a2e8>vSwitch</color> contains one or more port groups and is associated with a physical interface.
 +\\ 
 +\\ 
 +<color #ff7f27>Port Groups</color> - P<color #ff7f27>ort Groups</color> are a bit like Cisco VLANs. You create a <color #ff7f27>Port Group</color>, and in each Virtual Machine you can assign each of your VM interfaces to a <color #ff7f27>Port Group</color>.
 +\\ 
 +\\ 
 +vmnic - This is the name VMWare has assigned to each of your physical interfaces. So on my server I have vmnic0 to vmnic11 (vmnic0 is my connected to my management switch, vmnic7 is connected to my data switch).
 +\\ 
 +\\ 
 +
 +----
 +==== Graphical Overview ====
 +As a picture paints a thousand words, let us look at what we are dealing with graphically.
 +\\ 
 +
 +
 +
 +
 Consider my example below, I three servers, all connected to a switch, and I am passing multicast traffice between them, that is being processed in a particular way at each stage. Basically I want an input, two processing stages, a storage device and an output. Consider my example below, I three servers, all connected to a switch, and I am passing multicast traffice between them, that is being processed in a particular way at each stage. Basically I want an input, two processing stages, a storage device and an output.
 \\  \\ 
Line 21: Line 43:
 Look at the diagram below. Look at the diagram below.
 \\  \\ 
 +\\ 
 +{{ :example_vmware_layout_02.jpg?800 |}}
 +Above we can see that there are four port groups (in Orange) and they are in a virtual switch, and there are three management interfaces in vSwitch0.
 +\\ 
 +\\ 
 +From the ESXi application (not the Web UI) we can see the following (you can get this in the Web UI, i prefer this layout).
 +\\ 
 +\\ 
 +{{ :esxi_virtual_switch_and_port_groups_port_group_members_and_adapters.jpg?500 |}}
 +\\ 
 +Above we can see the following:
 +\\ 
 +\\ 
 +There are two virtual switches (vSwitch0 is created by default)\\ 
 +vSwitch0\\ 
 +DATA SW\\ 
 +\\ 
 +\\ 
 +vSwitch0 is associated with the physical interface vmnic0\\ 
 +vSwitch DATA SW is associated with the physical interface vmnic7\\ 
 +\\ 
 +\\ 
 +vSwitch0 contains a Port Group called VM Network (created by default)  and has the following interfaces from the VMs.
 +\\ 
 +MFEL_7\\ 
 +MFP_7\\ 
 +Origin\\ 
 +\\ 
 +\\ 
 +vSwitch DATA SW contains the following Port Groups
 +\\ 
 +IPSource\\ 
 +MFEL2PKG\\ 
 +PKG2Origin\\ 
 +IPOut\\ 
 +\\ 
 +\\ 
 +Each of these Port Groups contains a data interface from each VM.
 +\\ 
 +\\ 
 +Below we can see the page in VMWare that is used to configure the VM options. 
 +\\ 
 +\\ 
 +{{ ::vm_interfaces_01.jpg?700 |}}
 +\\ 
 +There are three Network Adapters that have been added to each VM (this is for the MFEL VM). Each network has then been assigned to a Port Group (so you need to create your Port Groups and Switches before your VMs).
 +\\ 
 +\\ 
 +For example Network Adapter 2 is assigned to Port Group MFEL2PKG. We know the Port Group MFEL2PGK is assigned to vSwitch DATA SW, and that vSwitch DATA SW is assigned to physical interface vmnic7. So any traffic to or from this port will be via the vmnic7 physical port.
 +\\ 
 +\\ 
 +Below is a visualisation of the relationship between Physical Interfaces, vSwitches, Port Groups and Virtual Machines.
 +\\ 
 +\\ 
 +{{ :vswitch_diagram.png?600 |}}
  
  
interfaces_vswitches_and_port_groups.txt · Last modified: 2023/03/09 22:35 by 127.0.0.1