<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.gumstix.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Testacct</id>
		<title>Gumstix User Wiki - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.gumstix.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Testacct"/>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php/Special:Contributions/Testacct"/>
		<updated>2026-04-07T04:03:36Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.25.3</generator>

	<entry>
		<id>https://wiki.gumstix.com/index.php?title=Creating_an_Ad-hoc_Wireless_Network&amp;diff=5252</id>
		<title>Creating an Ad-hoc Wireless Network</title>
		<link rel="alternate" type="text/html" href="https://wiki.gumstix.com/index.php?title=Creating_an_Ad-hoc_Wireless_Network&amp;diff=5252"/>
				<updated>2011-03-23T17:52:29Z</updated>
		
		<summary type="html">&lt;p&gt;Testacct: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Creating an Ad-hoc Network ==&lt;br /&gt;
&lt;br /&gt;
'''On startup using the interfaces file:'''&lt;br /&gt;
&lt;br /&gt;
Open &amp;lt;code&amp;gt;/etc/network/interfaces&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Change the wlan0 config to&lt;br /&gt;
&lt;br /&gt;
 auto wlan0&lt;br /&gt;
 iface wlan0 inet static&lt;br /&gt;
 address 192.168.2.2&lt;br /&gt;
 netmask 255.255.255.0&lt;br /&gt;
 wireless-mode ad-hoc&lt;br /&gt;
 wireless-essid gumstix-network&lt;br /&gt;
&lt;br /&gt;
Reboot&lt;br /&gt;
&lt;br /&gt;
'''Using ifconfig and iwconfig:'''&lt;br /&gt;
&lt;br /&gt;
 ifconfig wlan0 down&lt;br /&gt;
 ifconfig wlan0 address 192.168.2.2 netmask 255.255.255.0&lt;br /&gt;
 iwconfig wlan0 mode ad-hoc essid gumstix-network&lt;br /&gt;
 ifconfig wlan0 up&lt;br /&gt;
&lt;br /&gt;
== Running DHCP Server on Ad-hoc Network==&lt;br /&gt;
Setting up a DHCP server on the ad-hoc network will allow you to connect to the gumstix without having to change your ip address.&lt;br /&gt;
&lt;br /&gt;
Create a configuration file:&lt;br /&gt;
&lt;br /&gt;
 vi /etc/udhcpd.conf&lt;br /&gt;
&lt;br /&gt;
Put the following in the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
#start address&lt;br /&gt;
start           192.168.2.3&lt;br /&gt;
&lt;br /&gt;
#end address&lt;br /&gt;
end             192.168.2.254&lt;br /&gt;
&lt;br /&gt;
#interface to listen on&lt;br /&gt;
interface       wlan0&lt;br /&gt;
&lt;br /&gt;
#maximum number of leases&lt;br /&gt;
max_leases      64&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Create the leases file:&lt;br /&gt;
&lt;br /&gt;
 touch /var/lib/misc/udhcpd.leases&lt;br /&gt;
&lt;br /&gt;
Now run the dhcp server:&lt;br /&gt;
&lt;br /&gt;
 udhcpd /etc/udhcpd.conf&lt;br /&gt;
&lt;br /&gt;
Connect to the gumstix ad-hoc network and you should notice that you have been assigned the start address in the config file above.&lt;br /&gt;
&lt;br /&gt;
[[Category:How_to_-_wifi]]&lt;br /&gt;
.&lt;/div&gt;</summary>
		<author><name>Testacct</name></author>	</entry>

	</feed>