Setup Wi-Fi AP in bridge mode

Only for voyage 0.6.x

Install madwifi-modules-2.6.30-voyage_0.9.4~rc2-1+7.0-1_i386.deb to avoid stuck beacon problem.

To make the WLAN bridge with LAN, add these to /etc/network/interface:

auto ath0
iface ath0 inet manual
    # ensure ath0 is down (never fails because of "true")
    pre-up wlanconfig ath0 destroy || true

    # set up the ath0 device in AP mode before bringing up the interface
    pre-up wlanconfig ath0 create wlandev wifi0 wlanmode ap

    # remove the ath0 device when bringing the interface down
    post-down wlanconfig ath0 destroy

    # set master mode, channel, and the essid
    wireless-mode master
    wireless-channel 2
    wireless-essid Voyage-Linux

    # help minimize stuck beacon problem by setting beacon interval to 1000ms
    up iwpriv ath0 bintval 1000


auto br0
iface br0 inet static
    # Assign your IP address, subnet and mask, broadcast address
    address 192.168.0.1
    network 192.168.0.0
    netmask 255.255.255.0
    broadcast 192.168.0.255
    # Bridge eth1 and ath0 into br0:
    bridge_ports eth1 ath0

And, the AP config file /etc/hostapd/hostapd.conf:

hostapd.conf
bridge=br0
interface=ath0
driver=madwifi
logger_syslog=-1
logger_syslog_level=2
logger_stdout=-1
logger_stdout_level=2
debug=4
dump_file=/tmp/hostapd.dump
ctrl_interface=/var/run/hostapd
ctrl_interface_group=0
macaddr_acl=0
auth_algs=3
eapol_key_index_workaround=0
eap_server=0
wpa=2
ssid=Voyage-Linux
wpa_passphrase=alongsecretstring
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
eapol_version=1
voyage/setup_wi-fi_ap_in_bridge_mode.txt · Last modified: 2011-09-16 16:47 by admin
Back to top
GNU Free Documentation License 1.3
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0