Beruflich Dokumente
Kultur Dokumente
vmware.com/go/networking
Virtual Switch
Virtual NICs
VMs Virtual NIC
Flexible Enhanced Virtual E1000
ESX Server
VMotion
NFS
iSCSI
VMKernel NIC
VSwitch
VMKernel Hardware
vmware.com/go/networking
Agenda
Basic Troubleshooting
How to isolate problems?
What tools are available for troubleshooting?
Troubleshooting Scenarios
Step-by-step guide on how to troubleshoot some specific networking problems
vmware.com/go/networking
vmware.com/go/networking
Physical Network
VSwitch
Hardware
Wireshark
Logs
vmware.com/go/networking
VMotion
NFS
iSCSI
VMKernel NIC
VSwitch
Physical Switches
vmware.com/go/networking
Is the NIC connected to where you want it to be connected? Is the NIC working?
Is the NIC transmitting and receiving packets? Is the NIC dropping any packets?
Network Hints Cisco Discovery Protocol (CDP) ifconfig inside Service Console esxtop/resxtop esxcfg-info
vmware.com/go/networking
Type of NIC
Link Status
Connections
Network Hint
vmware.com/go/networking
vmware.com/go/networking
10
vmware.com/go/networking
11
vmware.com/go/networking
12
vmware.com/go/networking
States
Down
13
vmware.com/go/networking
14
vmware.com/go/networking
15
vmware.com/go/networking
16
vmware.com/go/networking
Output of esxcfg-info
17
vmware.com/go/networking
Output of esxcfg-info
18
vmware.com/go/networking
VMotion
NFS
iSCSI
VI Client esxcfg-nics
VMKernel NIC
VSwitch
esxtop/resxtop
VMKernel Hardware
ifconfig esxcfg-info
Physical Switches
CDP
19
vmware.com/go/networking
VMotion
NFS
iSCSI
VMKernel NIC
VSwitch
VMKernel Hardware
Physical Switches
20
vmware.com/go/networking
esxtop/resxtop esxcfg-info
21
vmware.com/go/networking
22
vmware.com/go/networking
23
vmware.com/go/networking
Output of esxtop
24
vmware.com/go/networking
Service Console
Output of esxtop
25
vmware.com/go/networking
Output of esxcfg-info
26
vmware.com/go/networking
VMotion
NFS
iSCSI
VSwitch
esxcfg-info
VMKernel Hardware
Physical Switches
28
vmware.com/go/networking
VMotion
NFS
iSCSI
VMKernel NIC
VSwitch
VMKernel Hardware
Physical Switches
29
vmware.com/go/networking
Windows
Device Manager
Windows
Network Connections
esxtop/resxtop esxcfg-info
30
vmware.com/go/networking
.vmx file
31
vmware.com/go/networking
esxcfg-vmknic
An interface to configure VMkernel NIC
Output of esxcfg-vswif -l
Output of esxcfg-vmknic -l
32
vmware.com/go/networking
Output of esxcfg-info
Real time traffic information Look for Rx/Tx information for the vNIC you are interested in Search for the port ID of the vNIC in the esxcfg-info output Cumulative Traffic Information
33
vmware.com/go/networking
VMotion
NFS
iSCSI
VSwitch
VMKernel Hardware
Physical Switches
34
vmware.com/go/networking
Serv er
Look for
Lost Packets Large number of packet retransmissions Anomalies reported by protocol analyzers like Wireshark etc.
35
vmware.com/go/networking
Server
Run tcpdump i vswifX in the Service Console
Set the VLAN ID of the VLAN 106 Service Console portgroup to 4095
VMKernel Enable promiscuous mode for the Service Console Hardware portgroup
VSwitch
Packet For VM A
36
vmware.com/go/networking
VSwitch
VLAN 106 Packet For VM A
VMKernel Hardware
37
vmware.com/go/networking
Logs on ESX
VMkernel logs
/var/log/vmkernel for ESX
/var/log/messages for ESXi
ESX
Guest OS Logs
VM logs
vmware.log file in the VM directory
Serv er
VM Logs
VMkernel Logs
VSwitch
VMKernel Hardware
VMkernel Logs
VMkernel Logs
38
vmware.com/go/networking
Troubleshooting Scenarios
vmware.com/go/networking
Signs of trouble
Basic connectivity problems
No network connectivity on some or all of the VMs on a vSwitch
40
vmware.com/go/networking
Problem
41
vmware.com/go/networking
Is appropriate driver for the vNIC installed and loaded? Install VMware tools inside the guest
42
vmware.com/go/networking
Linux: ifconfig
43
vmware.com/go/networking
44
vmware.com/go/networking
45
vmware.com/go/networking
Check if the physical NICs are connected to the correct physical switch ports
Use CDP or Network Hints
46
vmware.com/go/networking
47
vmware.com/go/networking
VSwitch
VSwitch
Physical Switch
48
vmware.com/go/networking
Check the portgroup VLAN ID Check the physical switch port configuration
Physical switch port should be configured as a trunk port
Trunking should be static and unconditional No Dynamic Trunking Protocol (DTP)
VLAN 105 VLAN 106 VLAN 107
VSwitch
Physical Switch
49
vmware.com/go/networking
VLAN 105
VLAN 106
VLAN 107
VSwitch
Configure the Hardware physical switch to trunk VLAN IDs 105, 106 and 107
VMKernel
Physical Switch
50
vmware.com/go/networking
Physical Switch
51
vmware.com/go/networking
If you have to use default native VLAN for regular data traffic, do one of the following:
Change the native VLAN on the physical switch
VSwitch
VMKernel
Hardware
52
vmware.com/go/networking
Problem
53
vmware.com/go/networking
54
vmware.com/go/networking
VSwitch
Physical Switch
55
vmware.com/go/networking
esxcfg-info
Search for Network Hint in the output
56
vmware.com/go/networking
VSwitch
Physical Switch
57
vmware.com/go/networking
VLAN 105
VLAN 106
VLAN 107
VSwitch
Configure the physical switch VMKernel port to trunk VLAN IDs 105, Hardware 106 and 107
Physical Switch
58
vmware.com/go/networking
Problem
59
vmware.com/go/networking
Make sure the NICs in a team are in the same layer 2 broadcast domain
Check if the physical NIC is connected to the right port/switch
60
vmware.com/go/networking
VM A MAC A
MAC A
Physical Switch
61
vmware.com/go/networking
VM A MAC A
VSwitch
Physical Switch
62
vmware.com/go/networking
VM A MAC A
Active
Standby
VSwitch
Be careful when configuring IP Hash based teaming with other loadbalancing configurations on portgroups of the same vSwitch
VMKernel Hardware
Physical Switch
63
vmware.com/go/networking
Multicast traffic?
64
vmware.com/go/networking
MTU = 9000
MTU = 1500
Check for packet drops on the vNICs and the physical NICs
Physical Switch
65
vmware.com/go/networking
66
vmware.com/go/networking
Problem
67
vmware.com/go/networking
68
vmware.com/go/networking
69
vmware.com/go/networking
VSwitch
VSwitch
Physical Switch
70
vmware.com/go/networking
Disable STP for the physical switch ports feeding the ESX Server
71
vmware.com/go/networking
Problem
72
vmware.com/go/networking
Step 1: Basics
ESX ESX
Server
Server
VMotion
These NICs should be in the same broadcast domain
VSwitch
Physical Switch
Physical Switch
73
vmware.com/go/networking
Server
MAC A MAC B
Server
VMotion
MAC B
MAC C
RARP Packet
Physical Switch
Physical Switch
74
vmware.com/go/networking
Notify Switch
Notify switch is enabled by default
Settings should reflect application requirements
75
vmware.com/go/networking
Problem
Network connectivity is fine on the VMs but my application does not work
76
vmware.com/go/networking
Forged Transmits
If allowed, guest can send packets with different source MAC
Implication: Malicious guests can spoof MAC addresses or cause MAC Flooding
Uses forged MAC addresses to hide the cluster MAC address from 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 1556
http://kb.vmware.com/kb/1556
78
vmware.com/go/networking
For more information: VMware Networking Technology vmware.com/go/networking VMware Networking Blog blogs.vmware.com/networking
vmware.com/go/networking