<?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>ejohansson.se &#187; network</title>
	<atom:link href="http://ejohansson.se/categories/computers/network/feed/" rel="self" type="application/rss+xml" />
	<link>http://ejohansson.se</link>
	<description>Random bits about Linux, programming, computers and occasionally other stuff.</description>
	<lastBuildDate>Sun, 18 Apr 2010 20:23:14 +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>Wake on LAN with&#160;Debian</title>
		<link>http://ejohansson.se/archives/2009/12/31/wake-on-lan-with-debian/</link>
		<comments>http://ejohansson.se/archives/2009/12/31/wake-on-lan-with-debian/#comments</comments>
		<pubDate>Thu, 31 Dec 2009 13:45:20 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[debian]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=309</guid>
		<description><![CDATA[To enable Wake on LAN on a Asus P5E-V motherboard under Debian you can do the following. Since I have a Asus motherboard, that&#8217;s the only one I&#8217;ve tested, but except from the BIOS (which may differ a bit), the instructions should be the same for all motherboards/NIC that supports Wake on LAN.
In the BIOS, [...]]]></description>
			<content:encoded><![CDATA[<p>To enable <a href="http://en.wikipedia.org/wiki/Wake-on-LAN">Wake on LAN</a> on a Asus P5E-V motherboard under Debian you can do the following. Since I have a Asus motherboard, that&#8217;s the only one I&#8217;ve tested, but except from the BIOS (which may differ a bit), the instructions should be the same for all motherboards/NIC that supports Wake on LAN.</p>
<p>In the BIOS, enable &#8220;Power on by PCIE device&#8221;.</p>
<p>In Linux, first install ethtool and then check that Wake on LAN is supported by running the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ ethtool eth0
...
        Supports Wake-on: g
        Wake-on: g
...</pre></div></div>

<p>The output should contain a &#8216;g&#8217; to indicate that the device can be woken by sending it a &#8220;magic packet&#8221;.</p>
<p>Enable Wake-on by running:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ ethtool <span style="color: #660033;">-s</span> eth0 wol g</pre></div></div>

<p>Since this command must be run on every boot, add it to /etc/rc.local.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ <span style="color: #c20cb9; font-weight: bold;">cat</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local
...
ethtool <span style="color: #660033;">-s</span> eth0 wol g
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

<p>As the last step we must make sure that halt doesn&#8217;t disable the network device. This is done by adding this line to /etc/default/halt:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">NETDOWN</span>=no</pre></div></div>

<p>We also need the MAC address to send the magic packet to.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">root<span style="color: #000000; font-weight: bold;">@</span>host$ <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0
eth0      Link encap:Ethernet  HWaddr 00:1e:8c:cf:d0:bb  
...</pre></div></div>

<p>Then shutdown the computer. On an other computer, install e.g. <a href="http://gsd.di.uminho.pt/jpo/software/wakeonlan/">wakeonlan</a> and run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">user<span style="color: #000000; font-weight: bold;">@</span>other$ wakeonlan 00:1e:8c:cf:d0:bb</pre></div></div>

<p>The computer should now start.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2009/12/31/wake-on-lan-with-debian/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Wii and Netgear&#160;WNR834B</title>
		<link>http://ejohansson.se/archives/2008/12/20/wii-and-netgear-wnr834b/</link>
		<comments>http://ejohansson.se/archives/2008/12/20/wii-and-netgear-wnr834b/#comments</comments>
		<pubDate>Sat, 20 Dec 2008 17:44:23 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[network]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[wii]]></category>

		<guid isPermaLink="false">http://ejohansson.se/?p=276</guid>
		<description><![CDATA[I recently had a lot of problems connecting my Nintendo Wii wireless to my girlfriend&#8217;s Netgear router (WNR834B). The router was configured to use WPA-PSK [TKIP] + WPA2-PSK [AES] with a fairly long pass phrase (ASCII characters). It worked very well with my iBook (Mac OS X) and worked most of the time with my [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had a lot of problems connecting my Nintendo Wii wireless to my girlfriend&#8217;s Netgear router (WNR834B). The router was configured to use WPA-PSK [TKIP] + WPA2-PSK [AES] with a fairly long pass phrase (ASCII characters). It worked very well with my iBook (Mac OS X) and worked most of the time with my girlfriend&#8217;s laptop (Windows Vista). But it seemed like Windows used the WPA variant instead of WPA2. It just didn&#8217;t connect when forcing it to use WPA2. And the Wii would only connect if we turned encryption off. Not acceptable!</p>
<p>We tried many things to get the Wii to connect, without any success. In a last attempt we tried changing the pass phrase to a 64 characters long hexadecimal pass phrase. That did the trick. Both the Wii and both laptops now connect without any problem. So if you are having problems connecting your Wii to the wireless network, try changing the pass phrase to consist of hexadecimal characters (0-9, A-F) only. For WPA/WPA2 it must be exactly 64 characters long.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2008/12/20/wii-and-netgear-wnr834b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simulate a slow&#160;network</title>
		<link>http://ejohansson.se/archives/2006/03/24/simulate-a-slow-network/</link>
		<comments>http://ejohansson.se/archives/2006/03/24/simulate-a-slow-network/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 08:47:10 +0000</pubDate>
		<dc:creator>Erik Johansson</dc:creator>
				<category><![CDATA[network]]></category>

		<guid isPermaLink="false">http://ejohansson.se/archives/2006/03/24/simulate-a-slow-network/</guid>
		<description><![CDATA[Kurt Pfeifle has written an interesting article about how to simulate a slow network. I haven&#8217;t been able to test it yet since CONFIG_NET_SCH_NETEM wasn&#8217;t enabled in my kernel config. But as soon as I have recompiled my kernel, I will.
More information on netem&#8217;s homepage.
]]></description>
			<content:encoded><![CDATA[<p>Kurt Pfeifle has written an interesting article about <a href="http://www.kdedevelopers.org/node/1878">how to simulate a slow network</a>. I haven&#8217;t been able to test it yet since CONFIG_NET_SCH_NETEM wasn&#8217;t enabled in my kernel config. But as soon as I have recompiled my kernel, I will.</p>
<p>More information on <a href="http://linux-net.osdl.org/index.php/Netem">netem&#8217;s homepage</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ejohansson.se/archives/2006/03/24/simulate-a-slow-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
