Vi Networking Adv Troubleshooting
Transcript of Vi Networking Adv Troubleshooting
-
8/2/2019 Vi Networking Adv Troubleshooting
1/79
vmware.com/go/networking
VI3 Networking:Advanced Troubleshooting
-
8/2/2019 Vi Networking Adv Troubleshooting
2/79
22 vmware.com/go/networkingvmware.com/go/networking
ESX Networking Architecture
Physical NICs
Virtual Switch
Virtual NICs
VMs Virtual NIC
Flexible
Enhanced
Virtual E1000
Vswif for the ServiceConsole
VMkernel uses vmknic
VMkernel TCP/IP Stack
PhysicalSwitches
Hardware
ESXServer
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
-
8/2/2019 Vi Networking Adv Troubleshooting
3/79
33 vmware.com/go/networkingvmware.com/go/networking
Agenda
Basic TroubleshootingHow to isolate problems?
What tools are available for troubleshooting?
Troubleshooting Scenarios
Step-by-step guide on how to troubleshoot some specificnetworking problems
-
8/2/2019 Vi Networking Adv Troubleshooting
4/79
vmware.com/go/networking
Basic Troubleshooting
Techniques
-
8/2/2019 Vi Networking Adv Troubleshooting
5/79
55 vmware.com/go/networkingvmware.com/go/networking
Isolate the problem
Troubleshoot one component at atime
Physical NICs
Virtual Switch
Virtual NICs
Physical Network
Tools for troubleshooting
VI
Command Line Utilities
Third party tools
Ping and traceroute
Traffic sniffers and Protocol Analyzers
Wireshark
Logs
Hardware
VMKernel
VSwitch
ESX Server
-
8/2/2019 Vi Networking Adv Troubleshooting
6/79
66 vmware.com/go/networkingvmware.com/go/networking
Isolating Network Problems: Physical NICs
PhysicalSwitches
Hardware
ESX
Server
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
What to look for?
Where to look?
-
8/2/2019 Vi Networking Adv Troubleshooting
7/79
77 vmware.com/go/networkingvmware.com/go/networking
Physical NICs: What to look for?
Does the device show up?
Is the driver loaded?
Physical properties of the link
Link State
Link Speed
Duplex Setting
MTU settings
Is the NIC connected to where you want itto be connected?
Is the NIC working?Is the NIC transmitting and receiving packets?
Is the NIC dropping any packets?
esxcfg-nics
ifconfig insideService Console
VI Client
Network Hints
Cisco DiscoveryProtocol (CDP)
ifconfig insideService Console
esxtop/resxtop
esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
8/79
88 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
VI Client provides basic information about the physicalNICs
Type of NIC Link Status Connections Network Hint
-
8/2/2019 Vi Networking Adv Troubleshooting
9/79
99 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
esxcfg-nics allows you to set or get physical NICsettings via the command line
-
8/2/2019 Vi Networking Adv Troubleshooting
10/79
1010 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
The - l option lists the nics in the system and theirsettings
Link State
Speed
Duplex
MTU
-
8/2/2019 Vi Networking Adv Troubleshooting
11/79
1111 vmware.com/go/networkingvmware.com/go/networking
Where is the physical NIC connected to?
Just follow the cable
OR
Use CDP and Network Hints
-
8/2/2019 Vi Networking Adv Troubleshooting
12/79
1212 vmware.com/go/networkingvmware.com/go/networking
Cisco Discovery Protocol
Periodic exchange ofinformation
Physical switch port a vmnic isconnected to
vSwitch a physical switch port is
connected toDuplex and speed settings
-
8/2/2019 Vi Networking Adv Troubleshooting
13/79
1313 vmware.com/go/networkingvmware.com/go/networking
Cisco Discovery Protocol
CDP is enabled by default in listening mode
On ESX Server 3.5, it is possible to configure CDP also inadvertising mode
Enabled/disabled only via command line with
esxcfg-vswitch B
States Listen
Advertise
Both
Down
Verify the setting with
esxcfg-vswitch b
-
8/2/2019 Vi Networking Adv Troubleshooting
14/79
1414 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
esxtop provides system-wide real-time trafficinformation
For ESXi use resxtop utility provided in the RCLI
Type n to switch to the network utilization screen
Output of esxtop
-
8/2/2019 Vi Networking Adv Troubleshooting
15/79
1515 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
On ESX Server 3.5, running ifconfig inside Service Console providesinformation valuable for troubleshooting
Output of ifconfig
-
8/2/2019 Vi Networking Adv Troubleshooting
16/79
1616 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
esxcfg-info provides detailed information about thesystem
Use esxcfg-infon for network information
Redirect the output of esxcfg-info to a file
Look for the Physical Nic section
-
8/2/2019 Vi Networking Adv Troubleshooting
17/79
1717 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
Output of esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
18/79
1818 vmware.com/go/networkingvmware.com/go/networking
Getting information about the physical NICs
Search for vmnicX in theoutput of esxcfg-info
Output of esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
19/79
1919 vmware.com/go/networkingvmware.com/go/networking
Summary: Getting information about the physical NICs
PhysicalSwitches
Hardware
ESX
Server
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
VI Client
esxcfg-nics
esxtop/resxtop
ifconfig
esxcfg-info
CDP
-
8/2/2019 Vi Networking Adv Troubleshooting
20/79
2020 vmware.com/go/networkingvmware.com/go/networking
Isolating Network Problems: Virtual Switch
PhysicalSwitches
Hardware
ESX
Server
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
-
8/2/2019 Vi Networking Adv Troubleshooting
21/79
2121 vmware.com/go/networkingvmware.com/go/networking
Virtual Switch: What to look for?
vSwitch and Portgroup ConfigurationUplinks
VLAN Setting
Layer 2 Security Policies
NIC Teaming Configuration
Is the traffic flowing through thevSwitch?
Is the vSwitch dropping any packets?
esxcfg-vswitch
esxcfg-info
VI Client
esxtop/resxtop
esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
22/79
2222 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vSwitch: VI
VI: Virtual SwitchConfiguration
VI: PortgroupProperties
-
8/2/2019 Vi Networking Adv Troubleshooting
23/79
2323 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vSwitch: esxcfg-vswitch
esxcfg-vswitchAn interface for adding, removing, and modifying virtual switchesand their settings
Output of esxcfg-vswitch -l
-
8/2/2019 Vi Networking Adv Troubleshooting
24/79
2424 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vSwitch: esxtop
esxtop provides system-wide real-time trafficinformation
For ESXi use resxtop utility provided in the RCLI
Type n to switch to the network utilization screen
Real Time TrafficInformation
Output of esxtop
-
8/2/2019 Vi Networking Adv Troubleshooting
25/79
2525 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vSwitch: esxtop
System Running FloodPing to the vmknic
Hardware
ESX
Server
VMKernel
ServiceConsole
VMkernel
PhysicalSwitch
vmnic3
vmnic4
vmknic traffic is goingthrough vmnic4
Output of esxtop
-
8/2/2019 Vi Networking Adv Troubleshooting
26/79
2626 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vSwitch: esxcfg-info
esxcfg-info provides information in greater detailConfiguration information
Output of esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
27/79
2727 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vSwitch: esxcfg-info
esxcfg-info provides information in greater detailCumulative traffic information for each port on the vSwitch
Information about VMkernelPort
Information about Uplink Port(vmnic4)
-
8/2/2019 Vi Networking Adv Troubleshooting
28/79
2828 vmware.com/go/networkingvmware.com/go/networking
Summary: Getting information about the vSwitch
PhysicalSwitches
Hardware
ESX
Server
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
VI Client
esxtop/resxtop
esxcfg-vswitch
esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
29/79
2929 vmware.com/go/networkingvmware.com/go/networking
Isolating Network Problems: Virtual NICs
PhysicalSwitches
Hardware
ESX
Server
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
-
8/2/2019 Vi Networking Adv Troubleshooting
30/79
3030 vmware.com/go/networkingvmware.com/go/networking
Virtual NICs: What to look for?
Does the device show up?
Is the driver loaded?
Physical properties of the link
Link State
MTU settings
Is the vNIC connected to the correctportgroup?
Portgroup using the correct uplink
Portgroup with the correct security properties
Is the NIC working?
Does the NIC have an IP address?Is the NIC transmitting and receiving packets?
Is the NIC dropping any packets?
esxcfg-vswif
esxcfg-vmknicGuest specific utilities
Linux
ifconfig
lspci
Windows
Device Manager
VI Client
.vmx file
esxcfg-info
Guest specific utilities
Linux
ifconfig
Windows
Network Connections
esxtop/resxtop
esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
31/79
3131 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vNIC
VI: Virtual Machine
Properties
.vmx file
VMs Connection Information
-
8/2/2019 Vi Networking Adv Troubleshooting
32/79
3232 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vNIC
esxcfg-vswif
An interface to configure Service Console NIC
esxcfg-vmknic
An interface to configure VMkernel NIC
Output of esxcfg-vswif -l
Output of esxcfg-vmknic -l
-
8/2/2019 Vi Networking Adv Troubleshooting
33/79
3333 vmware.com/go/networkingvmware.com/go/networking
Getting information about the vNIC
Output of esxtop
Output of esxcfg-info
Search for the portID of the vNIC inthe esxcfg-info
output
Look for Rx/Txinformation for the
vNIC you areinterested in
Cumulative Traffic
Information
Real time trafficinformation
-
8/2/2019 Vi Networking Adv Troubleshooting
34/79
3434 vmware.com/go/networkingvmware.com/go/networking
Summary: Getting information about the vNIC
PhysicalSwitches
Hardware
ESX
Server
VMKernel NICVSwitch
VMKernel
VMotion iSCSINFS
VMKernel TCP/IP Stack
VI Client
Guest Utilities
esxtop/resxtop
esxcfg-info
-
8/2/2019 Vi Networking Adv Troubleshooting
35/79
3535 vmware.com/go/networkingvmware.com/go/networking
Sniffing For Trouble
Sniff for packets at different
layers for isolationPhysical Switch Port Level
vSwitch Level
VM Level
Look for
Lost PacketsLarge number of packetretransmissions
Anomalies reported by protocolanalyzers like Wireshark etc.
Look for patterns
Are packets of a certain type causingproblems?
Are packets of a certain size causingproblems?
Hardware
ESX
Serv
er
VMKernel
PhysicalSwitch
VSwitch
Mirrored
Port
Capture packettraces inside
the VM
Capture packettraces on the
vSwitch
-
8/2/2019 Vi Networking Adv Troubleshooting
36/79
3636 vmware.com/go/networkingvmware.com/go/networking
Collecting Network Traces on the vSwitch
Hardware
ESX
Server
VMKernel
VSwitch
Set the VLAN ID of theService Console portgroup
to 4095
Enable promiscuous modefor the Service Consoleportgroup
VM A on VLAN 106
Run tcpdumpi vswifXin the Service Console Running
tcpdumpivmnic0 wont
work!
VLAN 106 Packet For VM AVLAN 106 Packet For VM A VLAN 106 Packet For VM A
-
8/2/2019 Vi Networking Adv Troubleshooting
37/79
3737 vmware.com/go/networkingvmware.com/go/networking
Collecting Network Traces on the vSwitch
Hardware
ESX
Server
VMKernel
VSwitch
VM A on VLAN 106
Create a portgroup
Set the VLAN ID of the
portgroup to 4095
Enable promiscuous modefor the portgroup
Run Wireshark in theVM
VLAN 106 Packet For VM AVLAN 106 Packet For VM A VLAN 106 Packet For VM A
-
8/2/2019 Vi Networking Adv Troubleshooting
38/79
3838 vmware.com/go/networkingvmware.com/go/networking
Logs on ESX
VMkernel logs
/var/log/vmkernelfor ESX
/var/log/messagesfor ESXi
VM logs
vmware.logfile in the VMdirectory
Service console logs
/var/log/messagesfor ESX
Also check the guest OSlogs for any errors
Hardware
ESX
Serv
er
VMKernel
VSwitch
VMkernel Logs
VMkernel Logs
VMkernel Logs
VM Logs
Guest OS Logs
Service Console Logs
-
8/2/2019 Vi Networking Adv Troubleshooting
39/79
-
8/2/2019 Vi Networking Adv Troubleshooting
40/79
4040 vmware.com/go/networkingvmware.com/go/networking
Signs of trouble
Basic connectivity problems
No network connectivity on some or all of the VMs on a vSwitch
Flaky network connection
Connection timeouts
Intermittent loss of connectivity
-
8/2/2019 Vi Networking Adv Troubleshooting
41/79
4141 vmware.com/go/networkingvmware.com/go/networking
Problem
Noneof the VMs on my ESX box have network
connectivity
-
8/2/2019 Vi Networking Adv Troubleshooting
42/79
-
8/2/2019 Vi Networking Adv Troubleshooting
43/79
4343 vmware.com/go/networkingvmware.com/go/networking
Step 1: Check inside the VM
Is the network interface in the guest up and does it havean IP address?
Use OS specific utilities to check
Windows: Network connections, ipconfig
Linux: ifconfig
Use static IP addresses during troubleshooting
-
8/2/2019 Vi Networking Adv Troubleshooting
44/79
4444 vmware.com/go/networkingvmware.com/go/networking
Step 2: Check the vNIC connection
Check if the vNIC is connected to the correct portgroup
Use VI or look into the .vmxfile
Make sure the Connected box is checked
VI: Virtual Machine Properties
The vNICconnects to this
portgroup
Is the vNICconnected
-
8/2/2019 Vi Networking Adv Troubleshooting
45/79
4545 vmware.com/go/networkingvmware.com/go/networking
Step 2: Check the vNIC connection
Check connectivity between VMs on the same portgroup
At this point you should be able to communicate with another VM on thesame portgroup
If not
Look at the receive and transmit byte counters in the VMs to see what isgoing on
Look at esxtop, esxcfg-info for any dropped packets on the ports
Check firewall settings in the guest
-
8/2/2019 Vi Networking Adv Troubleshooting
46/79
-
8/2/2019 Vi Networking Adv Troubleshooting
47/79
4747 vmware.com/go/networkingvmware.com/go/networking
Step 4: Check VLAN Configuration
Check who is tagging and stripping the VLAN IDs?
External Switch Tagging
Only the physical switch tags and strips VLAN IDs
Virtual Switch Tagging
Only the vSwitch tags and strips VLAN IDsVirtual Guest Tagging
Only the guest tags and strips VLAN IDs
-
8/2/2019 Vi Networking Adv Troubleshooting
48/79
4848 vmware.com/go/networkingvmware.com/go/networking
Step 4: Check VLAN Configuration: EST
VLAN tagging and
stripping is done by thephysical switch
Make sure the vSwitch isnot configured to tag orstrip VLAN IDs
Check your physicalnetwork configuration
Untaggedframes
Physical switch is
responsible for thetagging and stripping
Hardware
ESX
Server
VSwitch
VMKernel
PhysicalSwitch
VSwitch
-
8/2/2019 Vi Networking Adv Troubleshooting
49/79
4949 vmware.com/go/networkingvmware.com/go/networking
Hardware
VMKernel
VSwitch
VLAN 105 VLAN 106 VLAN 107
Physical Switch
Step 4: Check VLAN Configuration: VST
Check the portgroup VLAN
IDCheck the physical switchport configuration
Physical switch port shouldbe configured as a trunk port
Trunking should be static andunconditional
No Dynamic TrunkingProtocol (DTP)
Physical switch port trunkencapsulation should be set
to 802.1qNo ISL, LANE etc
VM on VLAN 106VM on VLAN 105 VM on VLAN 107
The switch portsees packetswith multiple
VLAN IDs
Make sure theportgroup VLANIDs are correct
vSwitch supportsonly 802.1q
encapsulation
-
8/2/2019 Vi Networking Adv Troubleshooting
50/79
-
8/2/2019 Vi Networking Adv Troubleshooting
51/79
5151 vmware.com/go/networkingvmware.com/go/networking
Step 4: Check VLAN Configuration: VGT
Check if the portgroup VLAN Id is
set to 4095
Check physical switchconfiguration
Physical switch port should be astatically trunked
Physical switch should be configuredto expect frames with the specificVLAN IDs on the port
Physical switch port trunkencapsulation should be set to
802.1q
Hardware
ESX
Server
VSwitch
VMKernel
PhysicalSwitch
PortgroupVLAN ID set
to 4095
-
8/2/2019 Vi Networking Adv Troubleshooting
52/79
5252 vmware.com/go/networkingvmware.com/go/networking
Step 4: Check VLAN Configuration: Native VLAN
Dont use native VLAN for regular
traffic
Default native VLAN is often VLAN 1
If you have to use default nativeVLAN for regular data traffic, do
one of the following:Change the native VLAN on thephysical switch
Force tagging of native VLAN frames
Might need to change native
VLAN behavior on allneighboring switches Machine withVLAN ID 1
VLAN 1 Framesnot tagged
VMconnected toa portgroupwith VLAN
ID 1
Hardware
ESX
Server
VMKernel
Physical Switch with
Native VLAN ID 1
VSwitch
vSwitch wontdeliver
untaggedpackets to the
VM
-
8/2/2019 Vi Networking Adv Troubleshooting
53/79
5353 vmware.com/go/networkingvmware.com/go/networking
Problem
Someof the VMs on a vSwitch have network
connectivity, other dont
-
8/2/2019 Vi Networking Adv Troubleshooting
54/79
5454 vmware.com/go/networkingvmware.com/go/networking
Step 1: Round up the Usual Suspects
Check the vNIC on the VM
Check if the vNIC is connected to the correct portgroup
Check if VM to VM traffic on the same portgroup works
Check if the physical NIC is connected to the rightport/switch
Use CDP
-
8/2/2019 Vi Networking Adv Troubleshooting
55/79
-
8/2/2019 Vi Networking Adv Troubleshooting
56/79
5656 vmware.com/go/networkingvmware.com/go/networking
Step 2: NIC Teaming
VI
esxcfg-info
Search forNetwork Hint in
the output
-
8/2/2019 Vi Networking Adv Troubleshooting
57/79
5757 vmware.com/go/networkingvmware.com/go/networking
Step 3: VLAN Configuration
The two VMs could beusing different uplinks
VLAN configuration onphysical switch portsconnected to NICs in ateam should beidentical
ESX
Serv
er
VSwitch
Physical Switch
VLAN configuration for thesephysical switch ports should
be identical
-
8/2/2019 Vi Networking Adv Troubleshooting
58/79
5858 vmware.com/go/networkingvmware.com/go/networking
Step 3: VLAN Configuration
Manually configure theswitch port to expect allthe VLAN IDs in use
Hardware
VMKernel
VSwitch
VLAN 105 VLAN 106 VLAN 107
Physical Switch
Configure thephysical switch
port to trunkVLAN IDs 105,106 and 107
-
8/2/2019 Vi Networking Adv Troubleshooting
59/79
5959 vmware.com/go/networkingvmware.com/go/networking
Problem
VMs have intermittent network connection
-
8/2/2019 Vi Networking Adv Troubleshooting
60/79
6060 vmware.com/go/networkingvmware.com/go/networking
Step 1: Round up the Usual Suspects
Check the vNIC on the VM
Check if VM to VM traffic on the same portgroup works withoutintermittent problems
Check VLAN configuration
Identical VLAN configuration on physical switch ports that are ina team
Make sure the NICs in a team are in the same layer 2
broadcast domainCheck if the physical NIC is connected to the right port/switch
-
8/2/2019 Vi Networking Adv Troubleshooting
61/79
6161 vmware.com/go/networkingvmware.com/go/networking
Step 2: NIC Teaming
Port Id or MAC basedload balancing on ESX
Dont enable LinkAggregation on thephysical switch
Hardware
VMKernel
VSwitch
Physical Switch
VM AMAC A
MAC A
vSwitch expectspackets for VM Aonlyon this uplink
-
8/2/2019 Vi Networking Adv Troubleshooting
62/79
6262 vmware.com/go/networkingvmware.com/go/networking
Step 2: NIC Teaming
IP based load balancingon ESX
Enable Link Aggregation
on the physical switchStatic Link Aggregation
No LACP or PAgP
Hardware
VMKernel
VSwitch
Physical Switch
VM AMAC A
Rx packets cancome from any
uplink
MAC A MAC A MAC A
Configure LinkAggregation on
the physicalswitch ports
-
8/2/2019 Vi Networking Adv Troubleshooting
63/79
6363 vmware.com/go/networkingvmware.com/go/networking
Step 2: NIC Teaming
Active-Standby wont work
with IP based loadbalancing
Because of the static LinkAggregation the physicalswitch will want to deliver
packets on the standby NIC
Be careful whenconfiguring IP Hash basedteaming with other load-balancing configurations
on portgroups of the same
vSwitch
Hardware
VMKernel
VSwitch
Physical Switch
VM AMAC A
Active Standby
-
8/2/2019 Vi Networking Adv Troubleshooting
64/79
6464 vmware.com/go/networkingvmware.com/go/networking
Step 2: NIC Teaming
Multicast traffic?
Dont use MAC Address Based Load balancing
Use Port Id based load balancing instead
-
8/2/2019 Vi Networking Adv Troubleshooting
65/79
-
8/2/2019 Vi Networking Adv Troubleshooting
66/79
6666 vmware.com/go/networkingvmware.com/go/networking
Step 3: Jumbo Frames
MTU should be the sameend to end
Set vNIC MTU in the guest
Use esxcfg-vswitch to setthe MTU of the physical NIC
esxcfg-vswitch m
Use RCLI for ESXi 3.5VMKernel
MTU shouldbe
consistent
-
8/2/2019 Vi Networking Adv Troubleshooting
67/79
6767 vmware.com/go/networkingvmware.com/go/networking
Problem
VMs lose network connectivity upon teaming
failover/failback
-
8/2/2019 Vi Networking Adv Troubleshooting
68/79
6868 vmware.com/go/networkingvmware.com/go/networking
Step 1: Round up the Usual Suspects
Check physical switch side VLAN configurations
Should be identical for all the NICs in a team
Check physical NIC connections
NICs in a team must be in the same broadcast domain
-
8/2/2019 Vi Networking Adv Troubleshooting
69/79
6969 vmware.com/go/networkingvmware.com/go/networking
Step 2: Spanning Tree Protocol
The switch dropspackets on a newlyactive port till the port isin forwarding state, ifSTP is enabled
This interferes withfailbacks
PhysicalSwitch
Listening
Blocking
Learning
Forwarding
The switch isdropping
packets onthe port tillthe port is inForwardingState
STP States of a newlyactive port
-
8/2/2019 Vi Networking Adv Troubleshooting
70/79
7070 vmware.com/go/networkingvmware.com/go/networking
Step 2: Spanning Tree Protocol
Loops are not possible
inside ESXVSwitchVSwitch
vSwitchescannot beconnectedinternally
Packetscoming up oneuplink are not
transmitted outanother
Physical Switch
-
8/2/2019 Vi Networking Adv Troubleshooting
71/79
7171 vmware.com/go/networkingvmware.com/go/networking
Step 2: Spanning Tree Protocol
To avoid the dropped packets, do one of the following
Enable PortFast mode for the physical switch ports feeding the ESXServer
Configure the physical switch ports feeding the ESX Server as EdgePorts when using Rapid Spanning Tree Protocol
Disable STP for the physical switch ports feeding the ESX Server
This is not a recommendation to disable STP in the entirenetwork
-
8/2/2019 Vi Networking Adv Troubleshooting
72/79
7272 vmware.com/go/networkingvmware.com/go/networking
Problem
VMs lose network connectivity after VMotion
-
8/2/2019 Vi Networking Adv Troubleshooting
73/79
7373 vmware.com/go/networkingvmware.com/go/networking
Step 1: Basics
Hardware
ESX
Server
VSwitch
VMKernel
Hardware
ESX
Server
VSwitch
VMKernel
Physical Switch Physical Switch
These NICs shouldbe in the same
broadcast domain
These physicalswitch ports should
have identicalVLAN configuration
VMotion
-
8/2/2019 Vi Networking Adv Troubleshooting
74/79
7474 vmware.com/go/networkingvmware.com/go/networking
Step 2: Notify Switch
Hardware
ESX
Server
VSwitch
VMKernel
Hardware
ESX
Server
VMKernel
VMotion
MAC A
Physical Switch
MAC A MAC B
Physical Switch
MAC C
MAC BMAC B
MAC B
MAC B MAC C
VSwitch
RARP Packet
MAC B
-
8/2/2019 Vi Networking Adv Troubleshooting
75/79
7575 vmware.com/go/networkingvmware.com/go/networking
Notify Switch
Notify switch is enabledby default
Settings should reflect
application requirements
-
8/2/2019 Vi Networking Adv Troubleshooting
76/79
-
8/2/2019 Vi Networking Adv Troubleshooting
77/79
7777 vmware.com/go/networkingvmware.com/go/networking
Step 1: Check Portgroup Security Policies
Promiscuous ModeIf allowed, guest receives all frames on the vSwitch
Some applications need promiscuous mode
Network sniffers
Intrusion detection systems
MAC Address ChangeIf allowed, guest can change its MAC address
Implication: Malicious guests can spoof MAC addresses
Forged TransmitsIf allowed, guest can send packets with different source MAC
Implication: Malicious guests can spoof MAC addresses or causeMAC Flooding
Security settings should reflect applicationrequirements
Example: Microsoft Network Load Balancing
-
8/2/2019 Vi Networking Adv Troubleshooting
78/79
7878 vmware.com/go/networkingvmware.com/go/networking
Example: Microsoft Network Load BalancingIn Unicast Mode
All cluster hosts are assigned the same MAC address
Thus incoming packets are received by all cluster hosts
Uses forged MAC addresses to hide the cluster MAC addressfrom the switch
Prevents the switch from learning the cluster's actual MAC address
Incoming packets for the cluster are delivered to all switch ports
Portgroup configurations
Allow MAC address changes
Allow Forged Transmits
Do not Notify Switch
KB Article 1556http://kb.vmware.com/kb/1556
Recommendation: Use NLB in Multicast Mode
-
8/2/2019 Vi Networking Adv Troubleshooting
79/79
For more information:
VMware Networking Technologyvmware.com/go/networking
VMware Networking Blogblogs.vmware.com/networking
http://vmware.com/go/networkinghttp://blogs.vmware.com/networkinghttp://blogs.vmware.com/networkinghttp://vmware.com/go/networking