<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jed Daniels . com&#124;net&#124;org &#187; vmware</title>
	<atom:link href="http://www.jeddaniels.com/category/computers-and-networking/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jeddaniels.com</link>
	<description>The home pages of Jed Daniels and family.</description>
	<lastBuildDate>Tue, 06 Jan 2009 06:31:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>VMware Server Tip: Get Current Bridge/NAT/Hostonly Info on a Linux Host Without Running vmware-config.pl</title>
		<link>http://www.jeddaniels.com/2008/vmware-server-tip-get-current-bridgenathostonly-info-on-a-linux-host-without-running-vmware-configpl/</link>
		<comments>http://www.jeddaniels.com/2008/vmware-server-tip-get-current-bridgenathostonly-info-on-a-linux-host-without-running-vmware-configpl/#comments</comments>
		<pubDate>Fri, 13 Jun 2008 21:15:52 +0000</pubDate>
		<dc:creator>jed</dc:creator>
				<category><![CDATA[vmware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[vmware server]]></category>
		<category><![CDATA[vmware-config]]></category>
		<category><![CDATA[vmware-config.pl]]></category>

		<guid isPermaLink="false">http://www.jeddaniels.com/?p=58</guid>
		<description><![CDATA[The other day I was trying to help troubleshoot a networking problem with our Virtual Appliance on a VMware Linux Host. I could pretty easily surmise that the problem was somewhere in the configuration, but I was unable to tell what exactly the host&#8217;s networking configuration was because you must run vmware-config.pl to configure the [...]]]></description>
			<content:encoded><![CDATA[<p><a title="vmware logo" href="http://blogs.vmware.com/vmtn/"><img style="border: medium none ; float: right" src="/wp-content/photos/vmware_logo.gif" alt="vmware logo" /></a>The other day I was trying to help troubleshoot a networking problem with our Virtual Appliance on a VMware Linux Host. I could pretty easily surmise that the problem was somewhere in the configuration, but I was unable to tell what exactly the host&#8217;s networking configuration was because you must run vmware-config.pl to configure the network on a Linux VMware host (Windows has the very handy &#8220;Manage Virtual Networks&#8221; tool that you can use, but alas, no such analog exists on a Linux host, to the best of my knowledge). The problem with running vmware-config.pl is that it requires all virtual machines to be turned off before it will even show you any information, which is a total pain when I just want to see what is bridged to what. So I went searching for a way to extract the information I wanted form the system, and eventually I found it (I was unable to find it on a google search or by searching the <a href="http://www.vmware.com/community/index.jspa">VMTN Forums</a> or <a href="http://kb.vmware.com/">VMware Knowledge Base</a>, which is pretty rare, so I ended up digging through my own files to find it). Eventually I discovered that the information I was after was stored in /proc/vmnet, which has an entry for each vmnet that is configured on the system. By simply looking in the files, I was able to tell what was going on, hooray!</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-7655937075179690";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
//2007-09-21: jeddaniels.com
google_ad_channel = "6331752708";
google_color_border = "FFFFFF";
google_color_bg = "FFFFFF";
google_color_link = "548EB4";
google_color_text = "000000";
google_color_url = "2B495E";
// --></script><br />
<script src="http://pagead2.googlesyndication.com/pagead/show_ads.js" type="text/javascript"></script></p>
<p>On my system, I only had a few bridged interfaces, but there were still a lot of files there:<br />
<code><br />
root@my-server:/proc/vmnet# ls<br />
bridge0  hub0.1  hub0.5  hub1.1  hub1.5  userif22  userif50  userif66<br />
bridge1  hub0.2  hub0.6  hub1.2  hub2.0  userif23  userif51  userif73<br />
bridge2  hub0.3  hub0.7  hub1.3  hub3.0  userif24  userif64  userif74<br />
hub0.0   hub0.4  hub1.0  hub1.4  netif0  userif4   userif65  userif75<br />
</code></p>
<p>A little exploring and I was able to surmise that hubX mapped to what we commonly know as vmnetX, with X usually being 0,1, or 8 for a default VMware configuration (in Windows land these are usually called &#8220;VMware Network Adapter VMnetX&#8221;). I think the hubX.Y files actually show which interfaces of which running machines are connected to that hub, kind of like link lights on a real hub, but I didn&#8217;t spend enough time to really be sure. In any case, I was able to determine that since I only have bridges configured on this system, the files bridge0, bridge1, and bridge2 were the ones I was after:</p>
<p><code><br />
root@my-server:/proc/vmnet# cat bridge0<br />
connected hub0.0 mac 00:50:56:00:00:00 ladrf 00:00:00:00:00:00:00:00 flags IFF_RUNNING,IFF_UP,IFF_PROMISC dev eth0<br />
root@my-server:/proc/vmnet# cat bridge1<br />
connected hub2.0 mac 00:50:56:00:00:00 ladrf 00:00:00:00:00:00:00:00 flags IFF_RUNNING,IFF_UP,IFF_PROMISC dev eth1<br />
root@my-server:/proc/vmnet# cat bridge2<br />
connected hub3.0 mac 00:50:56:00:00:00 ladrf 00:00:00:00:00:00:00:00 flags IFF_RUNNING,IFF_UP,IFF_PROMISC dev vmnet1<br />
</code></p>
<p>It is pretty plain to see that bridge0 connects hub0 (aka vmnet0) to eth0, bridge1 connects hub2 (aka vmnet2) to eth1, and bridge2 connects hub3 (aka vmnet3) to vmnet1 (I&#8217;ll explain this funky mapping another time).</p>
<p>Hopefully someday VMware will implement a handy tool like the Windows &#8220;Manage Virtual Networks&#8221; tool on Linux hosts, but until then, this will be good enough for me to at least tell what is going on on an unknown system.</p>
<h6>This article is copyright <a href="http://www.opnet.com/solutions/application_performance/acelive.html">OPNET Technologies, Inc.</a>, and is reprinted from the original at www.itsnotthenetwork.com with permission.</h6>
]]></content:encoded>
			<wfw:commentRss>http://www.jeddaniels.com/2008/vmware-server-tip-get-current-bridgenathostonly-info-on-a-linux-host-without-running-vmware-configpl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
