Difference between revisions of "Software access point"

From ArchWiki
Jump to: navigation, search
m (Undo revision 84591 by Mr.Elendig (Talk) bha, was on the wrong page)
Line 1: Line 1:
{{Out of date}}
[[Category:Communication and network (English)]]
[[Category:Communication and network (English)]]
[[Category:HOWTOs (English)]]
[[Category:HOWTOs (English)]]

Revision as of 23:38, 26 October 2010

Tango-view-refresh-red.pngThis article or section is out of date.Tango-view-refresh-red.png

Reason: please use the first argument of the template to provide a brief explanation. (Discuss in Talk:Software access point#)

A software access point is used when you want your computer to act as an access point for the local wireless network. It saves you the trouble of getting a separate wireless router.

Things you need

You will need:
  • prism2/2.5/3 pure pci wireless card
  • hostap-driver
  • network bridge support compiled in kernel
  • wireless-tools from pacman

Steps to implement

  1. get hostap from pacman, http://hostap.epitest.fi/ or http://shadowzerosoftware.ath.cx/hostap-drivers-0.4.7.tar.gz
  2. untar, make, make install as root
  3. modprobe hostap_pci
    as root to make sure the module will insert right.
  4. add
    alias wlan0 hostap_pci
    to /etc/modprobe.conf
  5. add
    wlan_wlan0="wlan0 mode master essid $YOUR_ESSID channel $CHANNEL"
    to /etc/conf.d/wireless You can also put key $KEY in wlan_wlan0="" to enable WEP. This automates commands to iwconfig.
  6. add
    bridge_br0="eth0 wlan0"
    to /etc/conf.d/bridges, this automated commands to the bridge module and brctl, the equiv would be
    brctl addbr br0;brctl addif eth0;brctl addif wlan0
  7. change the network settings in /etc/rc.conf to
    eth0="eth0 up"
    wlan0="wlan0 up"
    br0="br0 $IP_ADDRESS netmask up"
    INTERFACES=(lo eth0 wlan0 br0) 
  8. run
    /etc/rc.d/network restart
    as root, or just reboot.

This setup works for me to play Mario Kart DS through Nintendo's Wi-Fi Connection. br0 should be given the same settings in /etc/rc.conf eth0 had before. This works for me on kernel 2.6.13-ARCH, hostap-driver-0.4.7, wireless-tools version 28, and a Linksys WMP11 v4 wireless card. Any 802.11b device should be able to connect to this setup, as long as it supports manual ESSID and IP configuration. dhcpd should handle IPs as if it's in charge of a wired LAN, My DS would not automatically detect the ESSID, and I am not aware of a way to activate broadcasting ESSID. It connected just fine when told the ESSID to connect to. WPA seems to be supported by hostap, source files are on the same site as it. I didn't attempt to configure that, as I didn't need it. YMMV, RTFM, have fun.

  • UPDATE* The hostap-driver in pacman works, too. Thanks Xentac!
  • ANOTHER UPDATE* Hostap-driver is in the 2.6.15 kernel. Also, DCHP requests are passed to the wired connection through wireless, so dhcpd is not needed for this.