AP-mode Howto

From Rt2x00Wiki

This is a short guide to setting up AP-mode on rt2x00 chips. Note that this will not work with Ralink's USB chips because we don't know how to get status messages (ACK/FAIL) for sent packets.

This howto is not aimed for beginners.


Contents

Installing needed software

First install the stuff you need (may be incomplete, package names are from a debian/ubuntu based system)

Hostapd

Hostapd is a userspace daemon that handles the configuration, association etc for WLAN Access Points.

Get the latest version of hostapd

Check that a hostapd binary was created in that directory. It will be used in the final step.

edit hostapd.conf

For wpa you also need to change some wpa settings. Here are some examples of settings to change/uncomment:

* wpa=2
* wpa_passphrase=somepassword
* wpa_pairwise=TKIP CCMP

Configure dhcpd to hand out ip addresses

edit /etc/dhcp3/dhcpd.conf to hand out suitable ip addresses. For testing you can for example find the part which corresponds to the one below and uncomment three of the lines.

subnet 10.254.239.0 netmask 255.255.255.224 {
  range 10.254.239.10 10.254.239.20;
#  option routers rtr-239-0-1.example.org, rtr-239-0-2.example.org;
}

Final steps

Note, this will not get your clients (machines connecting to your AP) a connection to the internet. After these steps the ap should be visible, clients should be able to connect to it and once connected clients can ping your AP and ssh in to it. Routing the traffic from the AP to eth0 is not configured by the steps above. Feel free to add it if you want.

Retrieved from "http://rt2x00.serialmonkey.com/wiki/index.php/AP-mode_Howto"

This page has been accessed 42,847 times. This page was last modified 12:37, 20 September 2008. Content is available under GNU Free Documentation License 1.2.


SourceForge.net Logo
Find
Browse
Main Page
Community portal
Current events
Recent changes
Random page
Help
Donations
Edit
Edit this page
Editing help
This page
Discuss this page
Post a comment
Printable version
Context
Page history
What links here
Related changes
My pages
Log in / create account
Special pages
New pages
File list
Statistics
Bug reports
More...