Difference between revisions of "Category:How to - wifi"

From Gumstix User Wiki
Jump to: navigation, search
(Replacing page with '== Wifi Configuration == The wifi configuration file is located in <code>/etc/network/interfaces</code>')
 
(3 intermediate revisions by 3 users not shown)
Line 2: Line 2:
 
The wifi configuration file is located in
 
The wifi configuration file is located in
 
<code>/etc/network/interfaces</code>
 
<code>/etc/network/interfaces</code>
−
 
−
== Creating an Ad-hoc Network ==
 
−
 
−
'''On startup using the interfaces file:'''
 
−
 
−
Open <code>/etc/network/interfaces</code>
 
−
 
−
Change the wlan0 config to
 
−
 
−
<code><pre>
 
−
auto wlan0
 
−
iface wlan0 inet static
 
−
address 192.168.2.2
 
−
netmask 255.255.255.0
 
−
wireless-mode ad-hoc
 
−
wireless-essid gumstix-network
 
−
</pre></code>
 
−
 
−
Reboot
 
−
 
−
'''Using ifconfig and iwconfig:'''
 
−
 
−
<code><pre>
 
−
ifconfig wlan0 down
 
−
ifconfig wlan0 address 192.168.2.2 netmask 255.255.255.0
 
−
iwconfig wlan0 mode ad-hoc essid gumstix-network
 
−
ifconfig wlan0 up
 
−
</pre></code>
 
−
 
−
 
−
== Running DHCP Server on Ad-hoc Network==
 
−
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.
 
−
 
−
Create a configuration file:
 
−
 
−
<code>vi /etc/udhcpd.conf </code>
 
−
 
−
Put the following in the file:
 
−
 
−
<code><pre>
 
−
#start address
 
−
start          192.168.2.3
 
−
 
−
#end address
 
−
end            192.168.2.254
 
−
 
−
#interface to listen on
 
−
interface      wlan0
 
−
 
−
#maximum number of leases
 
−
max_leases      64
 
−
</pre></code>
 
−
 
−
Now run the dhcp server:
 
−
 
−
<code>udhcpd /etc/udhcpd.conf</code>
 
−
 
−
Connect to the gumstix ad-hoc network and you should notice that you have been assigned the start address in the config file above.
 

Latest revision as of 16:52, 9 February 2009

Wifi Configuration

The wifi configuration file is located in /etc/network/interfaces

Pages in category "How to - wifi"

The following 2 pages are in this category, out of 2 total.