<?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>blog &#124; edwards research &#187; networking</title>
	<atom:link href="http://blog.edwards-research.com/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.edwards-research.com</link>
	<description>some notes from our staff...</description>
	<lastBuildDate>Wed, 04 May 2011 02:11:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>ping fails but dig / nslookup&#160;works?</title>
		<link>http://blog.edwards-research.com/2010/01/ping-fails-but-dig-nslookup-works/</link>
		<comments>http://blog.edwards-research.com/2010/01/ping-fails-but-dig-nslookup-works/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 20:27:11 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[nslookup]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[resolv.conf]]></category>

		<guid isPermaLink="false">http://blog.edwards-research.com/?p=334</guid>
		<description><![CDATA[I&#8217;ve now run into two scenarios where this happened. The most recent was after I had to kill a vpnc process (used to connect to a cisco VPN). It looks like this: [james@workstation ~]$ ping google.com ping: unknown host google.com [james@workstation ~]$ dig google.com +short 72.14.204.147 72.14.204.99 72.14.204.103 72.14.204.104 What ended up happening was that [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve now run into two scenarios where this happened.  The most recent was after I had to kill a vpnc process (used to connect to a cisco VPN).</p>
<p>It looks like this:</p>
<pre class="brush: plain; title: ;">
[james@workstation ~]$  ping google.com
ping: unknown host google.com

[james@workstation ~]$  dig google.com +short
72.14.204.147
72.14.204.99
72.14.204.103
72.14.204.104
</pre>
<p>What ended up happening was that the VPN was configured to tunnel <strong>all</strong> traffic through it, so when it re-wrote the /etc/resolv.conf file, it didn&#8217;t append the VPN nameservers to the nameservers provided to us by our DHCP lease, but completely overwrote them.  I&#8217;m assuming that when you closed the VPN it would replace the resolv.conf file with the one containing the non-VPN nameservers but since I killed it, it was not restored.</p>
<p>Anyway, the fix was easy but finding it out was annoying.</p>
<p>All you have to do is release and renew your DHCP lease.</p>
<p>You could try:</p>
<pre class="brush: bash; title: ;">dhclient -r; dhclient</pre>
<p>&#8230; but I was on an SSH connection and I didn&#8217;t quite trust the second command to be run after I lost the connection when the lease was released (this seems like a silly fear but whatever).</p>
<p>Instead I wrote a bash script and put it in a file:</p>
<pre class="brush: bash; title: ;">
#!/bin/bash
#refreshlease.sh
IFACE=&quot;eth0&quot;

dhclient -r ${IFACE}
dhclient ${IFACE}
</pre>
<p>&#8230; and ran that over the SSH connection.  The connection seemed to get dropped for a few seconds but then came back up.  Checking /etc/resolv.conf showed that my original nameservers were, in fact, back and I was able to resolve DNS queries:</p>
<pre class="brush: plain; title: ;">
[james@workstation ~]$  ping google.com
PING google.com (64.233.169.105) 56(84) bytes of data.
64 bytes from yo-in-f105.1e100.net (64.233.169.105): icmp_seq=1 ttl=238 time=31.1 ms
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.edwards-research.com/2010/01/ping-fails-but-dig-nslookup-works/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gigabit LAN&#160;Upgrade</title>
		<link>http://blog.edwards-research.com/2009/11/gigabit-lan-upgrade/</link>
		<comments>http://blog.edwards-research.com/2009/11/gigabit-lan-upgrade/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 22:40:08 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[networking]]></category>

		<guid isPermaLink="false">http://blog.edwards-research.com/?p=261</guid>
		<description><![CDATA[Not much time to post, so I&#8217;ll post the quick bandwidth test we did between two machines before and after the LAN upgrade: Some notes: For a bandwidth tester we used iperf, a linux script that has been ported to windows via a cygwyn build. For Linux we just ran &#8220;yum install iperf&#8221; For Windows [...]]]></description>
			<content:encoded><![CDATA[<p>Not much time to post, so I&#8217;ll post the quick bandwidth test we did between two machines before and after the LAN upgrade:</p>
<p><a href="http://blog.edwards-research.com/wp-content/uploads/2009/11/Gigabit-Performance-Table-Fixed.PNG" rel="lightbox[261]"><img class="alignnone size-full wp-image-266" title="Gigabit-Performance-Table-Fixed" src="http://blog.edwards-research.com/wp-content/uploads/2009/11/Gigabit-Performance-Table-Fixed.PNG" alt="Gigabit-Performance-Table-Fixed" width="574" height="602" /></a></p>
<p><strong>Some notes:</strong></p>
<ul>
<li>For a bandwidth tester we used iperf, a linux script that has been ported to windows via a cygwyn build.
<ul>
<li>For Linux we just ran &#8220;yum install iperf&#8221;</li>
<li>For Windows we googled &#8220;iperf windows&#8221;, but <a href="http://www.noc.ucf.edu/Tools/Iperf/" target="_blank">here is one binary</a> from UCF.</li>
</ul>
</li>
<li>The real path just explains the connection between the two units.</li>
<li>The window size was automatically determined by iperf.</li>
<li>The 10 second test duration is iperf&#8217;s default.</li>
</ul>
<p>And the same data graphically:</p>
<p><a href="http://blog.edwards-research.com/wp-content/uploads/2009/11/Gigabit-Performance-Chart.PNG" rel="lightbox[261]"><img class="alignnone size-full wp-image-262" title="Gigabit-Performance-Chart" src="http://blog.edwards-research.com/wp-content/uploads/2009/11/Gigabit-Performance-Chart.PNG" alt="Gigabit-Performance-Chart" width="667" height="443" /></a></p>
<p>As you can see, there is considerable bandwidth improvement, even for the integrated NIC (and the PCI NIC is more than twice as fast as that!)</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.edwards-research.com/2009/11/gigabit-lan-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LAN DNS Resolution with WRT54G DD-WRT&#8217;s DNSMasq (Linux and Windows&#160;7)</title>
		<link>http://blog.edwards-research.com/2009/09/lan-dns-resolution-with-wrt54g-dd-wrts-dsnmasq-linux-and-windows-7/</link>
		<comments>http://blog.edwards-research.com/2009/09/lan-dns-resolution-with-wrt54g-dd-wrts-dsnmasq-linux-and-windows-7/#comments</comments>
		<pubDate>Thu, 17 Sep 2009 07:18:50 +0000</pubDate>
		<dc:creator>Jim</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[tips and tricks]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[dns]]></category>

		<guid isPermaLink="false">http://blog.edwards-research.com/?p=119</guid>
		<description><![CDATA[I have a ton of computers. I have a quad-core AMD box (running Fedora 11), an AMD Phenom II X4 955 Black Edition box (running Windows 7), a few random head-less desktops, a laptop (F11) and a netbook (F11). I run a fileserver on one box, I run an X session through ssh on my [...]]]></description>
			<content:encoded><![CDATA[<p>I have a ton of computers.</p>
<p>I have a quad-core AMD box (running Fedora 11), an AMD Phenom II X4 955 Black Edition box (running Windows 7), a few random head-less desktops, a laptop (F11) and a netbook (F11).</p>
<p>I run a fileserver on one box, I run an X session through ssh on my Windows box to access linux GUI stuff, I frequently transfer files between computers and I wanted to be able to access them by my defined hostname rather than the dynamic IP address my router assigned them (WRT54G running DD-WRT v24 SP1).</p>
<p>Now you may say, &#8220;dude, just give them static IP&#8217;s and be done with it.&#8221;  I considered that, but I would much rather remember &#8220;tophat&#8221; and &#8220;fractal&#8221; than 192.168.1.5 and 192.168.12.  Plus I&#8217;m a nerd and if there&#8217;s a way, I&#8217;ll figure it out.</p>
<p>&#8230; so I figured it out.</p>
<p>Windows will automatically report the Hostname of the computer (I think Windows calls it the Computer Name), so you won&#8217;t have to configure that.  You will however, have to allow your router to cache the hostnames and resolve them to IPs, and you will need to configure Linux to report the hostname when a DHCP lease is acquired.</p>
<p><strong>Configure Router</strong></p>
<ol>
<li>Login to your router</li>
<li>Click on the &#8220;Services&#8221; tab</li>
<li>Under DNSMasq enable both options (&#8220;Enable DNSMasq&#8221; and &#8220;Enable Local DNS&#8221;)</li>
<li>Click &#8220;Apply Settings&#8221;</li>
</ol>
<p><strong>Configure Linux to Report Hostnames</strong></p>
<ol>
<li>Disclaimer: This is using Fedora 11 &#8211; other distros/versions may vary.</li>
<li>You should really pick a unique hostname per interface, so in the case that they&#8217;re both connected there isn&#8217;t a conflict.</li>
<li>As root, or with appropriate permissions, edit /etc/sysconfig/network-scripts/ifcfg-{interface} (ie /etc/sysconfig/network-scripts/ifcfg-eth0).</li>
<li>Add this line:</li>
</ol>
<pre>DHCP_HOSTNAME=fractal</pre>
<ol>
<li>Save the file</li>
<li>Restart the network service (sudo service restart network, or use the GUI)</li>
<li>Release your DHCP lease (sudo dhclient -r)</li>
<li>Renew your DHCP lease (sudo dhclient or ifconfig {interface} down; ifconfig {interface} up)</li>
</ol>
<p><strong>Configure Windows 7 to resolve hostnames</strong> (<a href="http://stackoverflow.com/questions/330395/dns-problem-nslookup-works-ping-doesnt" target="_blank">source</a>)</p>
<ol>
<li>Go into Network Connections (I just typed &#8220;Network Connections&#8221; om the start icon -&gt; run box)</li>
<li>Right click on your Network Adapter and go into Properties</li>
<li>Select &#8220;Internet Protocol Version 4 (TCP/IPv4)&#8221;</li>
<li>Under the General Tab click Advanced</li>
<li>Under the DNS Tab select the radio button that says &#8220;Append these DNS suffixes (in order)&#8221;</li>
<li>Click &#8220;Add&#8230;&#8221;</li>
<li>Enter a single period in the text box and click &#8220;Add.&#8221;</li>
<li>Click OK in the &#8220;Advanced TCP/IP Settings&#8221; Dialog</li>
<li>Click OK in the &#8220;Local Area Connection Properties&#8221; Dialog</li>
</ol>
<p>And there you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.edwards-research.com/2009/09/lan-dns-resolution-with-wrt54g-dd-wrts-dsnmasq-linux-and-windows-7/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

