Why you need Promiscuous Mode
Network switches use a forwarding table (CAM table on a Cisco switch) to track what Ethernet devices are on what Ethernet port, and only send traffic destined for those devices out that port. By default, protocol analyzers will only see traffic sent from or to the computer they are running on. Very likely, that isn't going to help you to troubleshoot the network, so the common procedure is to perform "port mirroring" or configure "port spanning" (SPAN or RSPAN). This copies all traffic going to or from a particular port (or group of ports or list of VLANs) to a destination port. Then, you would analyze that port with your protocol analyzer.
Promiscuous Mode on the Virtual Network
But what happens when the network is virtual? Don't worry, this same process can also be performed on a virtual switch, allowing you to see all traffic traversing a virtual switch or vDS. What you would do is to run a protocol analyzer like Wireshark (free edition) inside a virtual machine and then configure the port group where the VM is connected to be in promiscuous mode, like this:
Once promiscuous mode is configured on the vSwitch, that carries down to the port groups in that vSwitch. Now, every port in the VM port group will see the traffic traversing the vSwitch (being sent to and from the VMs on the vSwitch). And suddenly, your Wireshark protocol analyzer will begin to see all traffic from all other VMs, allowing you to analyze the traffic on the vNetwork (as you see below).
Think about it, you are analyzing the virtual network at zero cost after tweaking just one vSphere virtual switch setting and installing your protocol analyzer on a VM connected to that vSwitch.
- ng promiscuous mode on a virtual switch or portgroup
- Zenoss IT Opensource Management - not virtualization specific, but an excellent tool for managing virtual and physical networks
- Petri IT Knowledgebase - Basic Network Application Troubleshooting With Wireshark (Ethereal)
- Top 11 Packet Sniffer Reviews
- Free Xangati for ESX Server - a unique virtual appliance that is imported into ESX, and then allows you tremendous insight into the virtual network (shown in the graphic below)
No comments:
Post a Comment