ESX Server 3 Configuration Guide : Advanced Networking : Virtual Switch Properties and Policies : Virtual Switch Policies

Virtual Switch Policies
You can apply a set of vSwitch-wide policies by selecting the vSwitch at the top of the Ports tab and clicking Edit.
To override any of these settings for a port group, select that port group and click Edit. Any changes to the vSwitch-wide configuration are applied to any of the port groups on that vSwitch, except for the configuration options that are overridden by the port group.
The vSwitch policies consist of:
Layer 2 Security Policy
Layer 2 is the data link layer. The three elements of the Layer 2 Security policy are promiscuous mode, MAC address changes, and forged transmits.
In nonpromiscuous mode, a guest adapter listens to traffic only on its own MAC address. In promiscuous mode, it can listen to all the packets. By default, guest adapters are set to non-promiscuous mode.
For further information on security, see Securing Virtual Switch Ports.
To edit the Layer 2 Security policy
1
Log into the VMware VI Client and select the server from the inventory panel.
The hardware configuration page for this server appears.
2
Click the Configuration tab, and click Networking.
3
Click Properties for the vSwitch whose Layer 2 Security policy you want to edit.
4
In the Properties dialog box for the vSwitch, click the Ports tab.
5
6
By default, Promiscuous Mode is set to Reject, MAC Address Changes, and Forced Transmits are set to Accept.
The policy here applies to all virtual adapters on the vSwitch except where the port group for the virtual adapter specifies a policy exception.
7
In the Policy Exceptions pane, select whether to reject or accept the Layer2 Security policy exceptions:
Reject — Placing a guest adapter in promiscuous mode has no effect on which frames are received by the adapter.
Accept — Placing a guest adapter in promiscuous mode causes it to detect all frames passed on the vSwitch that are allowed under the VLAN policy for the port group that the adapter is connected to.
Reject — If you set the MAC Address Changes to Reject and the guest operating system changes the MAC address of the adapter to anything other than what is in the .vmx configuration file, all inbound frames are dropped.
If the Guest OS changes the MAC address back to match the MAC address in the .vmx configuration file, inbound frames are passed again.
Accept — Changing the MAC address from the Guest OS has the intended effect: frames to the new MAC address are received.
Reject — Any outbound frame with a source MAC address that is different from the one currently set on the adapter are dropped.
Accept — No filtering is performed and all outbound frames are passed.
8
Traffic Shaping Policy
ESX Server 3 shapes traffic by establishing parameters for three outbound traffic characteristics: average bandwidth, burst size, and peak bandwidth. You can set values for these characteristics through the VI Client, establishing a traffic shaping policy for each port group.
Average Bandwidth establishes the number of bits per second to allow across the vSwitch averaged over time—the allowed average load.
Burst Size establishes the maximum number of bytes to allow in a burst. If a burst exceeds the burst size parameter, excess packets are queued for later transmission. If the queue is full, the packets are dropped. When you specify values for these two characteristics, you indicate what you expect the vSwitch to handle during normal operation.
Peak Bandwidth is the maximum bandwidth the vSwitch can absorb without dropping packets. If traffic exceeds the peak bandwidth that you establish, excess packets are queued for later transmission after traffic on the connection returns to the average and enough spare cycles are available to handle the queued packets. If the queue is full, the packets are dropped. Even if you have spare bandwidth because the connection has been idle, the peak bandwidth parameter limits transmission to no more than peak until traffic returns to the allowed average load.
To edit the Traffic Shaping policy
1
Log in to the VI Client and select the server from the inventory panel.
The hardware configuration page for this server appears.
2
Click the Configuration tab, and click Networking.
3
4
In the vSwitch Properties dialog box, click the Ports tab.
5
6
Click the Traffic Shaping tab.
When traffic shaping is disabled, the tunable features are dimmed. You can selectively override all traffic-shaping features at the port group level if traffic shaping is enabled.
This policy is applied to each individual virtual adapter attached to the port group, not to the vSwitch as a whole.
Status — If you enable the policy exception in the Status field, you are setting limits on the amount of networking bandwidth allocation for each virtual adapter associated with this particular port group. If you disable the policy, services have a free, clear connection to the physical network by default.
The remaining fields define network traffic parameters:
Average Bandwidth is a value measured over a particular period of time.
Peak Bandwidth is a value that is the maximum bandwidth allowed and that can never be smaller than average bandwidth. This parameter limits the maximum bandwidth during a burst.
Burst Size is a value that specifies how large a burst can be in kilobytes (KB). This parameter controls the amount of data that can be sent in one burst.
Load Balancing and Failover Policy
Load Balancing and Failover policies allow you to determine how network traffic is distributed between adapters and how to re-route traffic in the event of an adapter failure by configuring the following parameters:
Load Balancing policy determines how outgoing traffic is distributed among the network adapters assigned to a vSwitch.
 
Failover Detection: Link Status and Beacon Probing
Network Adapter Order (Active or Standby)
To edit the failover and load balancing policy
1
Log in to the VI Client and select the server from the inventory panel.
The hardware configuration page for this server appears.
2
Click the Configuration tab, and click Networking.
3
4
In the vSwitch Properties dialog box, click the Ports tab.
5
To edit the Failover and Load Balancing values for the vSwitch, select the vSwitch item and click Properties.
6
Click the NIC Teaming tab.
You can override the failover order at the port group level. By default, new adapters are active for all policies. New adapters carry traffic for the vSwitch and its port group unless you specify otherwise.
7
In the Policy Exceptions group:
Load Balancing — Specify how to choose an uplink.
Route based on the originating port ID — Choose an uplink based on the virtual port where the traffic entered the virtual switch.
Route based on ip hash — Choose an uplink based on a hash of the source and destination IP addresses of each packet. For non-IP packets, whatever is at those offsets is used to compute the hash.
Route based on source MAC hash — Choose an uplink based on a hash of the source Ethernet.
Use explicit failover order — Always use the highest order uplink from the list of Active adapters which passes failover detection criteria.
 
Note IP-based teaming requires that the physical switch be configured with etherchannel. For all other options, etherchannel should be disabled.
Network Failover Detection — Specify the method to use for failover detection.
Link Status only – Relies solely on the link status that the network adapter provides. This option detects failures, such as cable pulls and physical switch power failures, but not configuration errors, such as a physical switch port being blocked by spanning tree or that is misconfigured to the wrong VLAN or cable pulls on the other side of a physical switch.
Beacon Probing – Sends out and listens for beacon probes on all NICs in the team and uses this information, in addition to link status, to determine link failure. This detects many of the failures previously mentioned that are not detected by link status alone.
Notify Switches — Select Yes or No to notify switches in the case of failover.
If you select Yes, whenever a virtual NIC is connected to the vSwitch or whenever that virtual NIC’s traffic would be routed over a different physical NIC in the team because of a failover event, a notification is sent out over the network to update the lookup tables on physical switches. In almost all cases, this process is desirable for the lowest latency of failover occurrences and migrations with VMotion.
 
Note Do not use this option when the virtual machines using the port group are using Microsoft Network Load Balancing in unicast mode. No such issue exists with NLB running in multicast mode.
Failback — Select Yes or No to disable or enable failback. (See Update)
This option determines how a physical adapter is returned to active duty after recovering from a failure. If failback is set to No, the adapter is returned to active duty immediately upon recovery, displacing the standby adapter that took over its slot, if any. If failback is set to Yes (default), a failed adapter is left inactive even after recovery until another currently active adapter fails, requiring its replacement.
Failover Order — Specify how to distribute the work load for adapters. If you want to use some adapters but reserve others for emergencies in case the adapters in use fail, set this condition by using the drop-down menu to place them into the two groups:
Active Adapters — Continue to use the adapter when the network adapter connectivity is up and active.
Standby Adapters — Use this adapter if one of the active adapter’s connectivity is down.
Unused Adapters — Not to be used.