Thursday 5 January 2012

VmWare Networking Configuration

Networking Configuration - vSwitches and Port Groups with 2 Physical NICs

When configuring networking on an ESX/ESXi server it is important that you plan and configure it correctly.
Doing so will ensure you get the best reliability, performance and security within your virtual network.

Depending on your requirements the configuration will vary slightly. For example if network storage such and iSCSI and NFS will be used the setup will need to plan for this.
I will explain the different setups for these needs.
The following setup is the best for a server with 2 physical networks cards. As most servers typically come with 2 onboard NICs this is a common initial configuration in test or small setups.

To ensure the most reliable configuration it is best to use both physical network cards for one vSwitch.
This configuration has sacrificed performance for reliability.

Configuration for a server without network based IP storage:
Physical NIC        Virtual Switch        Port Group(s)
vmnic0                        vSwitch0                      Service Console + vMotion + VM Network
vmnic1                        vSwitch0                      Service Console + vMotion + VM Network

Configuration using network based IP storage:
Physical NIC        Virtual Switch        Port Group(s)
vmnic0                        vSwitch0                      Service Console + vMotion + VM Network + VMkernel (IP Storage)
vmnic1                        vSwitch0                      Service Console + vMotion + VM Network + VMkernel (IP Storage)


Alternativley the opposite could be done. To get the best performance configuration have two vSwitches and a NIC to each as follows.
This configuration has sacrificed reliability for performance.

Configuration for a server without network based IP storage:
Physical NIC        Virtual Switch        Port Group(s)
vmnic0                        vSwitch0                      Service Console + vMotion
vmnic1                        vSwitch1                      VM Network

Configuration using network based IP storage:
Physical NIC        Virtual Switch        Port Group(s)
vmnic0                        vSwitch0                      Service Console + vMotion + VMkernel (IP Storage)
vmnic1                        vSwitch1                      VM Network


Ideally VLANs should be used to seperate these networks.

No comments:

Post a Comment