<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>VMware Communities: Message List - Network | Promiscuous Mode</title>
    <link>http://communities.vmware.com/community/vmtn/archive/vi/esx2-vc1?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Sun, 21 May 2006 10:34:01 GMT</pubDate>
    <generator>Clearspace 1.10.12 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2006-05-21T10:34:01Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/403628?tstart=0#403628</link>
      <description>Actually, a very good request, since the instructions you quote date back quite a ways now. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/happy.gif" alt=":-)" /&gt;&lt;br /&gt;
&lt;br /&gt;
Maybe a weekend project for me once the current time-consumer switches to maintenance mode. ;-d</description>
      <pubDate>Sun, 21 May 2006 10:34:01 GMT</pubDate>
      <author>JMills</author>
      <guid>http://communities.vmware.com/message/403628?tstart=0#403628</guid>
      <dc:date>2006-05-21T10:34:01Z</dc:date>
      <clearspace:dateToText>3 years, 6 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/391098?tstart=0#391098</link>
      <description>Thank you for the excellent write up Brandon!  I found this extremely helpful.&lt;br /&gt;
&lt;br /&gt;
One bit I'd like to add, I recently got instructions from VMware support to set up sniffing on the virtual switch.  Here are the instructions I received:&lt;br /&gt;
&lt;br /&gt;
&lt;i&gt;--------------------&lt;br /&gt;
For sniffing all traffic on the vmnic0 (you can substitute this for a bond0, etc.)&lt;br /&gt;
&lt;br /&gt;
# echo "PromiscuousAllowed yes" &amp;gt; /proc/vmware/net/vmnic0/config&lt;br /&gt;
#insmod vmxnet_console devName="vmnic0" nameMask="test"&lt;br /&gt;
&lt;br /&gt;
Then bring the device up:&lt;br /&gt;
#ifconfig test up&lt;br /&gt;
&lt;br /&gt;
Start the tcpdump&lt;br /&gt;
#./tcpdump -i test -w &amp;lt;path&amp;#38;filename_of_capture_file&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To read the file:&lt;br /&gt;
#./tcpdump -r &amp;lt;path&amp;#38;filename_of_capture_file&amp;gt;&lt;br /&gt;
--------------------&lt;/i&gt;&lt;br /&gt;
Note:  Vmware e-mailed tcpdump to me but I believe it is on the ESX CD.&lt;br /&gt;
&lt;br /&gt;
It would also be great if VMware created a technical document that provides an authoritative set of instructions and published it in their technical documents.  My fear is that over time, Brandon's post will get buried and this question will be posted again!</description>
      <pubDate>Thu, 27 Apr 2006 20:19:32 GMT</pubDate>
      <author>VMadmin</author>
      <guid>http://communities.vmware.com/message/391098?tstart=0#391098</guid>
      <dc:date>2006-04-27T20:19:32Z</dc:date>
      <clearspace:dateToText>3 years, 7 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/379813?tstart=0#379813</link>
      <description>Does setting ethernet[n].noPromisc = TRUE in the VMX actually work for anyone?  I've tried multiple times to disallow a vNIC from being in promiscuous mode when the vSwitch is promiscuous.  Echoing into the vNIC seems turn off promiscuity, but I can't seem to get it to work from the VMX.</description>
      <pubDate>Wed, 05 Apr 2006 05:17:37 GMT</pubDate>
      <author>jeffbrooks</author>
      <guid>http://communities.vmware.com/message/379813?tstart=0#379813</guid>
      <dc:date>2006-04-05T05:17:37Z</dc:date>
      <clearspace:dateToText>3 years, 7 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/371562?tstart=0#371562</link>
      <description>Similar, I have that setup, as a routed setup, wiht outer and inner vSwitches, and a iptables firewall sitting on both nets. That works like a charm. What i needed to add was that the same host also had a few tapX interfaces and ran openvpn, and then tried to bridge tapX onto eth1 (the inside vSwitch).&lt;br /&gt;
&lt;br /&gt;
I can't seem to get much of anything non-broadcast to get across the bridge. I can get ARP to resolve, but the ethX interface on the host running the bridge will not get packets destined to the tapX side of the bridge.&lt;br /&gt;
&lt;br /&gt;
When I run "brctl showmacs br0" on the bridge host lists correctly the MACs to be seen on bridge port 1 (eth1) and 2 (tap1). When i run arping from a host located on the eth1 side of the bridge to resolve the IP/MAC of a host on the tap1 sid eof the bridge it works. If i ping between the same hosts it doesn't work, and tcpdump of both the bridge interface itself or the p.ort interfaces of the bridge show's no trace.&lt;br /&gt;
&lt;br /&gt;
(also, to add, I'm running the same setup on a physical machine, that works ust as intended. If there are differences in the setup then I have not spotted them after pouring on this for days)&lt;br /&gt;
&lt;br /&gt;
Message was edited by: &lt;br /&gt;
        ahoogerhuis</description>
      <pubDate>Tue, 21 Mar 2006 05:23:26 GMT</pubDate>
      <author>ahoogerhuis</author>
      <guid>http://communities.vmware.com/message/371562?tstart=0#371562</guid>
      <dc:date>2006-03-21T05:23:26Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/371531?tstart=0#371531</link>
      <description>So you have something like this, right?&lt;br /&gt;
&lt;br /&gt;
Physical network bound to vSwitch "1"&lt;br /&gt;
&lt;br /&gt;
"bridge" Host "A" connected to vSwitch "1" and vSwitch "2"&lt;br /&gt;
&lt;br /&gt;
"remote" Hosts {B..F} connected to vSwitch "2"</description>
      <pubDate>Tue, 21 Mar 2006 03:48:12 GMT</pubDate>
      <author>JMills</author>
      <guid>http://communities.vmware.com/message/371531?tstart=0#371531</guid>
      <dc:date>2006-03-21T03:48:12Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/371503?tstart=0#371503</link>
      <description>Hi, thanks for an excellent writeup. I have one thing I cannot make work properly for the life of it, and was hoping this would solve for me: ethernet bridging in Linux.&lt;br /&gt;
&lt;br /&gt;
What I am trying to do is have one server running openvpn and bridge tapX into ethX (connected to a virtual switch inside ESX). This seems to work partially, but not fully.&lt;br /&gt;
&lt;br /&gt;
For the not so Linux-minded, basically what I am trying to archive is to have a linux virtual network adapter and the esx vlance ethernet adapter bridgted at the OS level insid eLinux so taht clients connecting over a VPN would appear to be bridged into the inside LAN that exists in a vSwitch.&lt;br /&gt;
&lt;br /&gt;
I get broadcast related traffic across the bridge, but anything unicast seems forever lost and will not appear on the ethX interface of the ESX host doing this.&lt;br /&gt;
&lt;br /&gt;
If anyone has tried and succeded in similar travails I'd love to know what Im doing wrong. I've had a similar setup work fine on a GSX server (yes, I know resources are different there).</description>
      <pubDate>Tue, 21 Mar 2006 01:29:56 GMT</pubDate>
      <author>ahoogerhuis</author>
      <guid>http://communities.vmware.com/message/371503?tstart=0#371503</guid>
      <dc:date>2006-03-21T01:29:56Z</dc:date>
      <clearspace:dateToText>3 years, 8 months ago</clearspace:dateToText>
      <clearspace:replyCount>2</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/355718?tstart=0#355718</link>
      <description>&lt;div class="jive-quote"&gt;In my efforts to find information about promiscuous&lt;br /&gt;
mode settings, I've found the Admin Guide to be&lt;br /&gt;
limited and some of the threads pretty scattered, so&lt;br /&gt;
I've written this for anyone looking for help with&lt;br /&gt;
their promiscuous mode settings.&lt;br /&gt;
&lt;p /&gt;
&lt;p /&gt;
GSTK (Good Stuff To Know) | Promiscuous Mode&lt;br /&gt;
&lt;p /&gt;
Definition: In regards to VMware ESX Server;&lt;br /&gt;
promiscuous mode is used to allow a host to see all&lt;br /&gt;
traffic passing on a vswitch.&lt;br /&gt;
&lt;p /&gt;
Uses: Firewalls, Port Sniffers, IDS, etc.&lt;br /&gt;
&lt;p /&gt;
Requirements: When using a vswitch, both the virtual&lt;br /&gt;
adapter and vswitch must have promiscuous mode&lt;br /&gt;
enabled. When not using a vswitch (e.g. if you had a&lt;br /&gt;
dedicated NIC for sniffing and used port mirroring on&lt;br /&gt;
your physical switch) it just needs to be enabled on&lt;br /&gt;
the virtual adapter. (The latter is a good config if&lt;br /&gt;
you dont want to incur the processing overhead&lt;br /&gt;
associated with promiscuous mode for a sniffer&lt;br /&gt;
application).&lt;/div&gt;
&lt;p /&gt;
"Enabled" would be a bit of a misnomer for the virtual switch layer... what you're doing is flipping a permissions bit which allows a vNIC it actually see traffic when it is put in promiscuous mode.&lt;br /&gt;
&lt;p /&gt;
&lt;div class="jive-quote"&gt;Step 1 | Enable Promiscuous Mode for the VM&lt;br /&gt;
&lt;p /&gt;
Add a line to the configuration file, this probably&lt;br /&gt;
goes without saying, but substitute n for the adapter&lt;br /&gt;
(0-4) and remove the brackets.&lt;br /&gt;
&lt;p /&gt;
ethernet[n].noPromisc = FALSE&lt;br /&gt;
&lt;p /&gt;
Youll want to apply this to all VMs you need&lt;br /&gt;
promiscuous mode enabled on.&lt;/div&gt;
&lt;p /&gt;
Technically, this is 'FALSE' by default, but good to discuss in the context of more locked-down environments where it may be explicitly set to 'TRUE' for all vNICs.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
&lt;div class="jive-quote"&gt;Step 2 | Enabling the Virtual Adapter and/or vswitch&lt;br /&gt;
to Use Promiscuous Mode &lt;br /&gt;
&lt;p /&gt;
For those of you familiar with Ciscos IOS, enabling&lt;br /&gt;
the virtual adapter for promiscuous mode&lt;br /&gt;
automatically turns its port on the vswitch into a&lt;br /&gt;
mirror port of sorts, but it doesnt mirror only&lt;br /&gt;
selected ports, it mirrors traffic from all ports on&lt;br /&gt;
the vswitch. You must enable promiscuous mode for the&lt;br /&gt;
vswitch, in addition to the virtual adapters for this&lt;br /&gt;
to work. Mirroring can be selectively disabled for&lt;br /&gt;
specific MAC addresses if needed, but otherwise its&lt;br /&gt;
a global setting for the vswitch. (Refer to the Admin&lt;br /&gt;
Guide, a hyperlink is provided in the references&lt;br /&gt;
section at the bottom, if you want to know about the&lt;br /&gt;
MAC address piece).&lt;/div&gt;
&lt;p /&gt;
Yes, but it will only "mirror" traffic within the same broadcast domain.</description>
      <pubDate>Tue, 21 Feb 2006 13:41:57 GMT</pubDate>
      <author>JMills</author>
      <guid>http://communities.vmware.com/message/355718?tstart=0#355718</guid>
      <dc:date>2006-02-21T13:41:57Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/353926?tstart=0#353926</link>
      <description>Thanks. I'm glad it's helping people out.&lt;br /&gt;
&lt;br /&gt;
I'm on my way to Virtuoso; only 5001 points short you know. &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 18:43:30 GMT</pubDate>
      <author>Brandon_Sanders</author>
      <guid>http://communities.vmware.com/message/353926?tstart=0#353926</guid>
      <dc:date>2006-02-17T18:43:30Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/353929?tstart=0#353929</link>
      <description>you'll be there before you know it &lt;img class="jive-emoticon" border="0" src="http://communities.vmware.com/images/emoticons/wink.gif" alt=";-)" /&gt;</description>
      <pubDate>Fri, 17 Feb 2006 18:44:51 GMT</pubDate>
      <author>grasshopper</author>
      <guid>http://communities.vmware.com/message/353929?tstart=0#353929</guid>
      <dc:date>2006-02-17T18:44:51Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/353922?tstart=0#353922</link>
      <description>Yes, thanks for the write-up.  We are looking at implementing a bit of IDS infrastructure in vm's so this will be of great value.</description>
      <pubDate>Fri, 17 Feb 2006 18:42:17 GMT</pubDate>
      <author>DerekA</author>
      <guid>http://communities.vmware.com/message/353922?tstart=0#353922</guid>
      <dc:date>2006-02-17T18:42:17Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
    </item>
    <item>
      <title>Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/353890?tstart=0#353890</link>
      <description>In my efforts to find information about promiscuous mode settings, I've found the Admin Guide to be limited and some of the threads pretty scattered, so I've written this for anyone looking for help with their promiscuous mode settings.&lt;br /&gt;
&lt;p /&gt;
GSTK (Good Stuff To Know) | Promiscuous Mode&lt;br /&gt;
&lt;br /&gt;
Definition: In regards to VMware ESX Server; promiscuous mode is used to allow a host to see all traffic passing on a vswitch.&lt;br /&gt;
&lt;br /&gt;
Uses: Firewalls, Port Sniffers, IDS, etc.&lt;br /&gt;
&lt;br /&gt;
Requirements: When using a vswitch, both the virtual adapter and vswitch must have promiscuous mode enabled. When not using a vswitch (e.g. if you had a dedicated NIC for sniffing and used port mirroring on your physical switch) it just needs to be enabled on the virtual adapter. (The latter is a good config if you dont want to incur the processing overhead associated with promiscuous mode for a sniffer application).&lt;br /&gt;
&lt;br /&gt;
Need to know: vmnet = internal only switch, vmnic = vswitch with only 1 dedicated physical adapter, bond = vswitch with 2 or more dedicated adapters. Familiarity with startup script syntax and precedence. COS file system.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Step 1 | Enable Promiscuous Mode for the VM&lt;br /&gt;
&lt;br /&gt;
Add a line to the configuration file, this probably goes without saying, but substitute n for the adapter (0-4) and remove the brackets.&lt;br /&gt;
&lt;br /&gt;
ethernet[n].noPromisc = FALSE&lt;br /&gt;
&lt;br /&gt;
Youll want to apply this to all VMs you need promiscuous mode enabled on.&lt;br /&gt;
&lt;p /&gt;
Step 2 | Enabling the Virtual Adapter and/or vswitch to Use Promiscuous Mode &lt;br /&gt;
&lt;br /&gt;
For those of you familiar with Ciscos IOS, enabling the virtual adapter for promiscuous mode automatically turns its port on the vswitch into a mirror port of sorts, but it doesnt mirror only selected ports, it mirrors traffic from all ports on the vswitch. You must enable promiscuous mode for the vswitch, in addition to the virtual adapters for this to work. Mirroring can be selectively disabled for specific MAC addresses if needed, but otherwise its a global setting for the vswitch. (Refer to the Admin Guide, a hyperlink is provided in the references section at the bottom, if you want to know about the MAC address piece).&lt;br /&gt;
&lt;p /&gt;
At the service console, logged in as root, type:&lt;br /&gt;
&lt;br /&gt;
echo "PromiscuousAllowed yes" &amp;gt; /proc/vmware/net/[vmnic0]/ config &lt;br /&gt;
&lt;br /&gt;
This allows the guest operating systems in all virtual machines using [vmnic0] to enable promiscuous mode. If the adapter is using a different network, such as vmnet_0, make the appropriate substitution in the command. For a bond, apply this to the individual vmnics that are members of the bond as well as the bond itself. (e.g. vmnic0, vmnic1, and bond0 if bond0 was comprised of members vmnic0 and vmnic1. Look at the config file of the bond to find out which vmnics are members (a.k.a. teaming slaves) of the bond). &lt;br /&gt;
&lt;br /&gt;
*Important Note: This change is applied to the /proc filesystem, which means this setting is applied to the running config only (per say). You must perform Step 3 below to make this setting non-volatile (survive a reboot of the ESX server).&lt;br /&gt;
&lt;p /&gt;
Step 3 | Making the Promiscuous Mode Setting Non-Volatile&lt;br /&gt;
&lt;br /&gt;
In case of an ESX server reboot, this setting needs to be applied to the /proc filesystem vswitch configs before the virtual machines startup sequence begins. This ensures all your sniffer apps or whatever come up clean in the event your ESX server is rebooted.&lt;br /&gt;
&lt;br /&gt;
I would steer away from creating a new script and setting its startup order. Instead I would add a simple entry to the end of the /etc/rc.local script. This applies the change before VMs start powering on. In my opinion, this is the cleanest way to make sure these commands get executed on each system startup and before VMs power on.&lt;br /&gt;
&lt;br /&gt;
Add the following command to the end of the /etc/rc.local script. Repeat for each vmnet, vmnic, or bond you modified in Step 2.&lt;br /&gt;
&lt;br /&gt;
echo "PromiscuousAllowed yes" &amp;gt; /proc/vmware/ net/[vmnic0]/ config&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
-End of Instructional Steps-&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Why Written: The Admin Guide for ESX leaves something to be desired when speaking about Promiscuous Mode settings and all the associated configuration dependencies for it to work.&lt;br /&gt;
&lt;br /&gt;
References: &lt;a class="jive-link-external" href="http://www.vmware.com/support/esx21/doc/esx21admin_virtualadapter.html"&gt;http://www.vmware.com/support/esx21/doc/esx21admin_virtualadapter.html&lt;/a&gt; or page 360 in the ESX Server 2.5 Administration Guide PDF and VMware Knowledge Base Answer ID 1557.&lt;br /&gt;
&lt;br /&gt;
All Due Respect: I quoted some pieces from the VMware Admin Guide. Also, the user posts from JMills, lambeth, and ken.cline@hp on the VMTN forums helped me out a lot while I was learning this for one of my environments.&lt;br /&gt;
&lt;p /&gt;
&lt;br /&gt;
Brandon Sanders, VCP&lt;br /&gt;
bsanders@data-strategy.com&lt;br /&gt;
Systems Engineer | Data-Strategy</description>
      <pubDate>Fri, 17 Feb 2006 17:43:00 GMT</pubDate>
      <author>Brandon_Sanders</author>
      <guid>http://communities.vmware.com/message/353890?tstart=0#353890</guid>
      <dc:date>2006-02-17T17:43:00Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>11</clearspace:replyCount>
    </item>
    <item>
      <title>Re: Network | Promiscuous Mode</title>
      <link>http://communities.vmware.com/message/353913?tstart=0#353913</link>
      <description>Nice write up Brandon.</description>
      <pubDate>Fri, 17 Feb 2006 18:25:57 GMT</pubDate>
      <author>grasshopper</author>
      <guid>http://communities.vmware.com/message/353913?tstart=0#353913</guid>
      <dc:date>2006-02-17T18:25:57Z</dc:date>
      <clearspace:dateToText>3 years, 9 months ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
    </item>
  </channel>
</rss>

