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
interfaces_vswitches_and_port_groups [2017/07/18 10:30] walkeradmininterfaces_vswitches_and_port_groups [2023/03/09 22:35] (current) – external edit 127.0.0.1
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> - <color #ff7f27>Port 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>.
 +\\ 
 +\\ 
 +<color #22b14c>vmnic</color> - This is the name VMWare has assigned to each of your physical interfaces. So on my server I have <color #22b14c>vmnic0</color> to <color #22b14c>vmnic11</color> (<color #22b14c>vmnic0</color> is my connected to my management switch, vmnic7 is connected to my data switch).
 +\\ 
 +\\ 
 +{{ :vmware_interfaces.jpg?550 |}}
 +\\ 
 +----
 +==== Graphical Overview ====
 +As a picture paints a thousand words, let us look at what we are dealing with graphically.
 +\\ 
 +\\ 
 +Imagine for simplicity, you wanted each Physical Interface to map to an interface in your VM. Lets say you have 3 Interfaces in your VM, you would have something like this.
 +\\ 
 +\\ 
 +{{ :single_int.jpg?450 |}}
 +\\ 
 +Now while this is valid, consider that I am passing data from VM1 to VM2, I would need, with 2 data ports per VM, four data ports. What would be better is if I put the data out of VM1 and data in of VM 2 in a port group, that shared a single interface.
 +\\ 
 +\\ 
 +In the example below we can see that the third physical interface is connected to both VMs (the yellow lines) and both of these interfaces are in the same Port Group. This means we shared data between the two VMs using only a single port.
 +\\ 
 +\\ 
 +{{ :shared_interface.jpg?450 |}}
 +\\ 
 +\\ 
 +
 +----
 +
 +==== Three Server Example ====
 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 29: Line 68:
 \\  \\ 
 \\  \\ 
-{{ :esxi_virtual_switch_and_port_groups_port_group_members_and_adapters.jpg?500 |}}+{{ :esxi_virtual_switch_and_port_groups_port_group_members_and_adapters.jpg?450 |}}
 \\  \\ 
 Above we can see the following: Above we can see the following:
Line 66: Line 105:
 {{ ::vm_interfaces_01.jpg?600 |}} {{ ::vm_interfaces_01.jpg?600 |}}
 \\  \\ 
-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.+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?450 |}}
  
  
interfaces_vswitches_and_port_groups.1500370259.txt.gz · Last modified: 2023/03/09 22:35 (external edit)