<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>In Other Words &#187; wifi</title>
	<atom:link href="http://jcostom.wordpress.com/tag/wifi/feed/" rel="self" type="application/rss+xml" />
	<link>http://jcostom.wordpress.com</link>
	<description>186,000 miles per second, it&#039;s not just a good idea, it&#039;s the law.</description>
	<lastBuildDate>Wed, 16 Mar 2011 21:02:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='jcostom.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/0e01648355530ed22afc41cc357b25f6?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>In Other Words &#187; wifi</title>
		<link>http://jcostom.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://jcostom.wordpress.com/osd.xml" title="In Other Words" />
	<atom:link rel='hub' href='http://jcostom.wordpress.com/?pushpress=hub'/>
		<item>
		<title>2 Wireless APs in One with VLAN trunking in OpenWRT</title>
		<link>http://jcostom.wordpress.com/2010/07/03/2-wireless-aps-in-one-with-vlan-trunking-in-openwrt/</link>
		<comments>http://jcostom.wordpress.com/2010/07/03/2-wireless-aps-in-one-with-vlan-trunking-in-openwrt/#comments</comments>
		<pubDate>Sat, 03 Jul 2010 15:12:55 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[tech]]></category>
		<category><![CDATA[juniper]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[srx]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.jasons.org/?p=383</guid>
		<description><![CDATA[I had a bit of a technical challenge to solve in our house recently.  I wanted to create a guest WLAN, as well as another WLAN for Alex&#8217;s Nintendo DS.  The challenge?  The DS only does WEP.  No WPA at all.  Not being interested in giving unrestricted access to either group, particularly the latter, I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcostom.wordpress.com&amp;blog=14707&amp;post=383&amp;subd=jcostom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I had a bit of a technical challenge to solve in our house recently.  I wanted to create a guest WLAN, as well as another WLAN for Alex&#8217;s Nintendo DS.  The challenge?  The DS only does WEP.  No WPA at all.  Not being interested in giving unrestricted access to either group, particularly the latter, I decided it would be useful to deploy both SSIDs on the same AP, and try to map the different SSIDs into different VLANs.</p>
<p><a href="http://jcostom.files.wordpress.com/2010/07/multi-ap1.png"><img class="alignright size-medium wp-image-384" title="Network Layout" src="http://jcostom.files.wordpress.com/2010/07/multi-ap1.png?w=300&#038;h=182" alt="Network Layout" width="300" height="182" /></a>Our firewall is a <a href="https://www.juniper.net/us/en/products-services/security/srx-series/srx210/" target="_blank">Juniper Networks SRX210</a>, which lends itself very well to this task, as it supports ethernet switching natively.  First up was creating a couple of <acronym title="Virtual LANs">VLANs</acronym> &amp; <acronym title="Routed VLAN Interface">RVIs</acronym> on the firewall and assigning them to security zones.  These RVIs will need to have dhcp allowed on their as an inbound system service.  Next, some security policies will need to be created to allow devices in the new zones to talk out to the untrust (i.e. Internet) zone.  Next, you&#8217;ll need to configure a VLAN trunk on the port connected to the wireless AP (fe-0/0/6 in our example).  Finally, you&#8217;ll need to setup DHCP helpers for each of the RVIs to direct their DHCP requests to your DHCP server.  If you use the SRX as your DHCP server, you would instead configure a DHCP scope for these networks.  Here&#8217;s an example of what that might look like:</p>
<p><code>set vlans vlan2 vlan-id 2<br />
set vlans vlan2 l3-interface vlan.2<br />
set vlans vlan3 vlan-id 3<br />
set vlans vlan3 l3-interface vlan.3</code></p>
<p><code>set int fe-0/0/6.0 family ethernet-switching port-mode trunk<br />
set int fe-0/0/6.0 family ethernet-switching vlan members [ vlan2 vlan3 ]<br />
set int vlan.2 family inet addr 192.168.2.1/24<br />
set int vlan.3 family inet addr 192.168.3.1/24</code></p>
<p><code>set forwarding-options helpers bootp interface vlan.2 server 192.168.1.20<br />
set forwarding-options helpers bootp interface vlan.3 server 192.168.1.20</code></p>
<p><code> </code></p>
<p><code>set security zones security-zone guest interfaces vlan.2 host-inbound-traffic system-services dhcp<br />
set security zones security-zone guest interfaces vlan.2 host-inbound-traffic system-services ping</code></p>
<p><code> </code></p>
<p><code>set security zones security-zone dsnet interfaces vlan.3 host-inbound-traffic system-services dhcp<br />
set security zones security-zone dsnet interfaces vlan.3 host-inbound-traffic system-services ping</code></p>
<p>But that&#8217;s only half of the battle.  We still need to setup the AP.  In our example, I used a Fonera Fon 2100.  Instructions for how to reflash it with OpenWRT <a href="http://nuwiki.openwrt.org/toh/fon/fonera" target="_blank">can be found on their wiki</a>.  Once you&#8217;ve got that together, you&#8217;ll need to make some mods to their stock network configuration to make it work, but it&#8217;s not so bad.  Essentially, you&#8217;ll make 2 SSIDs, and bind them to 2 VLAN-tagged sub-ints of eth0, forming 2 bridge groups.  In OpenWRT, when you create an interface of the form eth0.X, where X is in the range 1-4094, you&#8217;ve just created a tagged sub-int.</p>
<h4>/etc/config/network:</h4>
<p><code>config 'interface' 'loopback'<br />
option 'ifname' 'lo'<br />
option 'proto' 'static'<br />
option 'ipaddr' '127.0.0.1'<br />
option 'netmask' '255.0.0.0'</code></p>
<p><code>config 'interface' 'guest'<br />
option 'ifname' 'eth0.2'<br />
option 'type' 'bridge'<br />
option 'proto' 'static'<br />
option 'netmask' '255.255.255.0'<br />
option 'ipaddr' '192.168.2.2'<br />
option 'defaultroute' '0'<br />
option 'peerdns' '0'<br />
option 'stp' '1'</code></p>
<p><code>config 'interface' 'dsnet'<br />
option 'ifname' 'eth0.3'<br />
option 'type' 'bridge'<br />
option 'proto' 'static'<br />
option 'netmask' '255.255.255.0'<br />
option 'ipaddr' '192.168.3.2'<br />
option 'stp' '1'<br />
option 'defaultroute' '0'<br />
option 'peerdns' '0'<br />
</code></p>
<h4>/etc/config/wireless:</h4>
<p><code>config 'wifi-device' 'wifi0'<br />
option 'type' 'atheros'<br />
option 'channel' 'auto'<br />
option 'disabled' '0'<br />
option 'diversity' '0'</code></p>
<p><code>config 'wifi-iface'<br />
option 'device' 'wifi0'<br />
option 'mode' 'ap'<br />
option 'ssid' 'dsnet'<br />
option 'encryption' 'wep'<br />
option 'key' 's:myWEPkey12345'<br />
option 'macpolicy' 'allow'<br />
list 'maclist' 'e8:4e:ce:xx:yy:zz'<br />
option 'network' 'dsnet'</p>
<p></code></p>
<p><code>config 'wifi-iface'<br />
option 'device' 'wifi0'<br />
option 'ssid' 'notyourhouse'<br />
option 'network' 'guest'<br />
option 'mode' 'ap'<br />
option 'encryption' 'psk2'<br />
option 'key' 'guestWPAkey'</code></p>
<p>Now you&#8217;ve got both SSIDs up, each bound to a different VLAN, and can enforce different security policies on each!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcostom.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcostom.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcostom.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcostom.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcostom.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcostom.wordpress.com/383/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcostom.wordpress.com/383/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcostom.wordpress.com/383/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcostom.wordpress.com&amp;blog=14707&amp;post=383&amp;subd=jcostom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcostom.wordpress.com/2010/07/03/2-wireless-aps-in-one-with-vlan-trunking-in-openwrt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2e1bb7d6a5fdb083617b9dcd63146ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcostom</media:title>
		</media:content>

		<media:content url="http://jcostom.files.wordpress.com/2010/07/multi-ap1.png?w=300" medium="image">
			<media:title type="html">Network Layout</media:title>
		</media:content>
	</item>
		<item>
		<title>Replacing the wifi card in an eeePC 1000</title>
		<link>http://jcostom.wordpress.com/2008/09/30/replacing-the-wifi-card-in-an-eeepc-1000/</link>
		<comments>http://jcostom.wordpress.com/2008/09/30/replacing-the-wifi-card-in-an-eeepc-1000/#comments</comments>
		<pubDate>Wed, 01 Oct 2008 01:42:43 +0000</pubDate>
		<dc:creator>jason</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[tech]]></category>
		<category><![CDATA[eeepc]]></category>
		<category><![CDATA[hack]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://www.jasons.org/?p=44</guid>
		<description><![CDATA[My latest project with the eee 1000 was to get some better wifi range, possibly saving some battery life in the process.  My first thought was to go for a replacement antenna.  I ordered one on eBay, and was prepared to do a bit of mod work to get it done.  Just then, the seller [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcostom.wordpress.com&amp;blog=14707&amp;post=44&amp;subd=jcostom&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><a class="tt-flickr tt-flickr-Small" href="http://www.flickr.com/photos/jcostom/2902950878/" target="_blank"><img class="alignleft" style="margin:5px;" src="http://farm4.static.flickr.com/3264/2902950878_6b02d86f12_m.jpg" alt="eeePC Wifi Replacement" width="192" height="190" /></a> My latest project with the eee 1000 was to get some better wifi range, possibly saving some battery life in the process.  My first thought was to go for a replacement antenna.  I ordered one on eBay, and was prepared to do a bit of mod work to get it done.  Just then, the seller didn&#8217;t send me my antenna parts, but instead sent me an Intel Wifi Link 5300 MiniPCIe card.  We agreed to just call it even at that point.  I bought a different antenna at that point.  You&#8217;ll see why.</p>
<p>Conventional wisdom calls for (as many others have done previously) an Intel 4965 MiniPCIe card. The 5300 seems to be the successor to the 4965, boasting up to 450 Mbps of 802.11n performance.  Not having any 802.11n APs, I wouldn&#8217;t know about that just yet.  We&#8217;ll see.  Unfortunately, this card doesn&#8217;t have drivers in the mainline Linux kernel until version 2.6.27.  As I&#8217;m running Ubuntu Hardy (until Intrepid Ibex rolls out), and on kernel 2.6.24, no drivers exist, outside of the backported ones from compat-wireless guys.  Well, since the drivers exist, I decided to give it a go.</p>
<p>First up, grab the <a href="http://intellinuxwireless.org/iwlwifi/downloads/iwlwifi-5000-ucode-5.4.A.11.tar.gz" target="_blank">firmware</a> and the <a href="http://linuxwireless.org/en/users/Download#Wheretodownload" target="_blank">drivers package</a>.  Unpack the firmware and drop it in /lib/firmware.  Next, you&#8217;ll need to install the &#8220;build-essential&#8221; package, as well as the linux-headers packages appropriate for your kernel.  Unpack the drivers, check the config.mk file.  You should probably (as I did) uncomment the lines that enable support for the RFKILL code.  This is what gives you the ability to toggle the wifi on &amp; off.  Do a make &amp; make install (as root) to load the drivers up.  It will not overwrite existing mac80211 modules, and that&#8217;s a good thing.  Halt your machine and do the card swap.</p>
<p>Installing the card was pretty easy.  Pull the battery and unplug first.  After all, you don&#8217;t want to short things out, right? Ok, now remove the two screws that hold down the existing Ralink wifi card and pop the two antenna leads off.  Now install the Intel card and put the screws back.  Connect the white wire to terminal 1, and the black to terminal 2.  Terminal 3 is where you&#8217;ll need to connect the extra antenna.  I opted for a small antenna, typically used for a bluetooth radio, but since it&#8217;s a 2.4 Ghz antenna, it also works fine here. I snaked the wire through one of the small gaps in the plastic housing adjacent to the wifi card, and used the adhesive backing on the antenna to stick it in the hole where the hard drive goes on a 1000h.  Not sure where you&#8217;d want to put the antenna on a 1000h, but then again, that&#8217;s not my chief concern, as I&#8217;m working on a 1000.  Put back all the screws and you&#8217;re done.</p>
<p>Boot the system, and you should be all done.  The card should be automagically detected and have the iwlagn module loaded.  You&#8217;ll likely want to gently massage your /etc/acpi/eeepc-wifi-toggle.sh script to work with the proper modules.  Removing the module and echoing a 0 into /proc/acpi/asus/wlan (to power down the card) results in the card going into &#8220;deep sleep&#8221;.  My last bit is to figure out how to wake it from deep sleep, other than a reboot.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/jcostom.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/jcostom.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/jcostom.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/jcostom.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/jcostom.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/jcostom.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/jcostom.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/jcostom.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=jcostom.wordpress.com&amp;blog=14707&amp;post=44&amp;subd=jcostom&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://jcostom.wordpress.com/2008/09/30/replacing-the-wifi-card-in-an-eeepc-1000/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/a2e1bb7d6a5fdb083617b9dcd63146ca?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">jcostom</media:title>
		</media:content>

		<media:content url="http://farm4.static.flickr.com/3264/2902950878_6b02d86f12_m.jpg" medium="image">
			<media:title type="html">eeePC Wifi Replacement</media:title>
		</media:content>
	</item>
	</channel>
</rss>
