`

ubuntu,fedora上hostapd的编译和使用

阅读更多

ubuntu安装build-essentials libnl-dev libssl-dev libdbus-1-dev libgupnp-1.0-dev libreadline-dev

fedora安装kernel-devel,libnl*

下载最新的源码包解压

http://hostap.epitest.fi/releases/

http://hostap.epitest.fi/releases/snapshots/

git clone git://w1.fi/srv/git/hostap.git

cd hostap/hostapd

cp defconfig .config

编辑 .config

CONFIG_DRIVER_NL80211=y

CFLAGS += -I#这里写内核头文件的路径#

make

make install

配置hostapd

配置dhcp3-server

禁用network manager里的无线

分配 wlan0 IP: ifconfig wlan0 10.254.239.1

run /etc/init.d/dhcp3-server restart

启动hostapd: ./hostapd -dd hostapd.conf

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics