<?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>huanix &#187; wireless</title>
	<atom:link href="http://www.huanix.com/category/wireless/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.huanix.com</link>
	<description>chown -R huanix /</description>
	<lastBuildDate>Sat, 31 Dec 2011 14:53:36 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Feisty cannot connect wireless card wlan0 using ndiswrapper without dhclient</title>
		<link>http://www.huanix.com/2007/06/19/cannot-connect-wireless-card-wlan0-using-ndiswrapper-without-dhclient/</link>
		<comments>http://www.huanix.com/2007/06/19/cannot-connect-wireless-card-wlan0-using-ndiswrapper-without-dhclient/#comments</comments>
		<pubDate>Tue, 19 Jun 2007 12:41:35 +0000</pubDate>
		<dc:creator>huanix</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://www.huanix.com/2007/06/19/cannot-connect-wireless-card-wlan0-using-ndiswrapper-without-dhclient/</guid>
		<description><![CDATA[It was a simple process to use ndiswrapper in linux, specifically Ubuntu Feisty Fawn 7.04, to get my wireless network cards activated.. in fact, it only takes a few lines of code: (to save formatting hassles, just enter these commands in a command line) sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9 sudo ndiswrapper -i /[path to the [...]]]></description>
			<content:encoded><![CDATA[<p>It was a simple process to use ndiswrapper in linux, specifically Ubuntu Feisty Fawn 7.04, to get my wireless network cards activated.. in fact, it only takes a few lines of code: (to save formatting hassles, just enter these commands in a command line)</p>
<ul>
<li>sudo apt-get install ndiswrapper-common ndiswrapper-utils-1.9</li>
<li>sudo ndiswrapper -i /[path to the drivers for your card].inf</li>
<li>sudo ndiswrapper -m</li>
<li>sudo modprobe ndiswrapper</li>
</ul>
<p>Those commands should get your wireless card up and working, so now you have an active card without a network configuration. issuing &#8220;sudo dhclient wlan0&#8243; at the command prompt should give you an IP (if you don&#8217;t already have one). I believe some folks are using &#8220;ifup wlan0&#8243; as well.</p>
<p>The problem I&#8217;ve run into several times, is rebooting the computer and discovering the card has been activated, but it hasn&#8217;t received an IP from the WAP. I decided not to add dhclient to the startup, and instead thought it would make more sense to request a static IP.</p>
<p>Begin by starting up the computer and requesting dhclient as usual. We can use many of these settings to set up the static IP. At a command line, type &#8220;ifconfig -a&#8221;, you will get output like this:<br />
<code>wlan0 Link encap:Ethernet HWaddr 00:12:34:AB:5C:AC<br />
inet addr:192.168.1.55 Bcast:192.168.1.255 Mask:255.255.255.0<br />
inet6 addr: fc80::223:49ff:fcaf:5eac/54 Scope:Link<br />
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1<br />
RX packets:107621 errors:0 dropped:0 overruns:0 frame:0<br />
TX packets:184 errors:0 dropped:0 overruns:0 carrier:0<br />
collisions:0 txqueuelen:1000<br />
RX bytes:160430881 (152.9 MiB) TX bytes:17812 (17.3 KiB)<br />
Interrupt:19 Memory:feac0000-feae0000</code></p>
<p>from this output, you need to write down:</p>
<ul>
<li>the name of your card (probably wlan0)</li>
<li>the inet addr:</li>
<li>Bcast:</li>
<li>Mask:</li>
</ul>
<p>Next, run &#8220;sudo iwlist wlan0 scan | less&#8221;, and if your card is configured correctly, you will see the wireless access points (listed as Cell 01, Cell 02) that are available. You&#8217;ll want to identify your WAP, probably by looking at the ESSID line (ESSID:&#8221;MY_ROUTER&#8221;). From this list, you need</p>
<ul>
<li>the exact name for your ESSID,</li>
<li>the channel your Access Point is using, at the end of the &#8220;Frequency:&#8221; line.</li>
</ul>
<p>Now we have all the information we need, except the address to your router (gateway), which is probably 192.168.1.1, or 192.168.0.1; you can predict the address by changing the &#8220;255&#8243; in your broadcast address to a &#8220;1&#8243; (usually!), then check it by navigating to it in your browser- it should take you to your router&#8217;s configuration page (password protected).</p>
<p>(Optional) Now would be a good time to back up your network settings. Type &#8220;sudo cp /etc/network/interfaces /etc/network/interfaces.old&#8221; &#8212; when you break something, you&#8217;ll just do the opposite: &#8220;sudo cp /etc/network/interfaces.old /etc/network/interfaces&#8221; to replace the file.</p>
<p>Now it&#8217;s time to set the static IP address for the wireless card. In a command window, type &#8220;sudo gedit /etc/network/interfaces&#8221;. Scroll down to the line that says &#8220;auto wlan0&#8243;. Your entry will look like this: (Everything AFTER // are just notes &#8211; don&#8217;t copy them!)</p>
<p><code>auto wlan0 //this could be different if your card has a different name.<br />
iface wlan0 inet static // change "dhcp" to "static"<br />
wireless_essid MY_ROUTER //this is the ESSID field from the iwlist command.<br />
wireless channel 5 // this is the Channel number from the iwlist command.<br />
address 192.168.1.55 // this can be the same as inet addr: from ifconfig<br />
netmask 255.255.255.0 // this is the mask from ifconfig<br />
broadcast 192.168.1.255 // this is the bcast from ifconfig<br />
gateway 192.168.1.1 // this is the address to your router</code></p>
<p>Save and close.</p>
<p>This setup is for non-encrypted networks, if you use an ecrypted network, you need to add a few extra lines, look for them <a href="http://marc.info/?l=linux-wlan-user&amp;m=107280680128676&amp;w=2">here</a>.</p>
<p>Now when you restart your computer you should have a static wireless IP that you don&#8217;t have to set each time you log on!</p>
<h4>Incoming search terms:</h4><ul><li>ndiswrapper connection wlan0</li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.huanix.com/2007/06/19/cannot-connect-wireless-card-wlan0-using-ndiswrapper-without-dhclient/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

