Difference between revisions of "Category:How to - wifi"
From Gumstix User Wiki
(→Wifi Configuration) |
|||
Line 1: | Line 1: | ||
== Wifi Configuration == | == Wifi Configuration == | ||
The wifi configuration file is located in | The wifi configuration file is located in | ||
+ | <code>/etc/network/interfaces</code> | ||
− | <code> | + | == Creating an Ad-hoc Network == |
− | /etc/network/interfaces | + | |
− | </code> | + | '''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.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> |
Revision as of 21:11, 4 February 2009
Wifi Configuration
The wifi configuration file is located in
/etc/network/interfaces
Creating an Ad-hoc Network
On startup using the interfaces file:
Open /etc/network/interfaces
Change the wlan0 config to
auto wlan0
iface wlan0 inet static
address 192.168.2.2
netmask 255.255.255.wireless-mode ad-hoc
wireless-essid gumstix-network
Reboot
Using ifconfig and iwconfig:
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
Pages in category "How to - wifi"
The following 2 pages are in this category, out of 2 total.