linux AP hostapd 建构
使用工具:virtualbox
centos7 1511.iso
环境配置:
eth0 NAT网路
eth1 Host-only
wlan0 网路介面
先将selinux、firewalld关闭
vim /etc/selinux/config
将SELINUX后面改成disabled
关闭NetworkManager
开启network
ifconfig eth0 up
ifconfig eth1 up
systemctl restart network
将网卡开启:
ifconfig wlan0 up
**这时后wlan0还没有ip netmask 要自己设定**
***以上完成基本架构**
安装EPEL 源
yum update #先更新系统
yum install epel-release #安装EPEL源
安装hostapd
yum install hostapd
vim /etc/hostapd/hostapd.conf
最小化配置
开启AP
/usr/sbin/hostapd /etc/hostapd/hostapd.conf
安装dhcpd server
yum install dhcp
编辑dhcpd.conf
开启dhcpd server 服务:
systemctl start dhcpd
页:
[1]