Instalamos los paquetes necesarios:
sudo apt-get install hostapd
Modificamos:
sudo nano /etc/dhcpcd.conf
Añadimos al final:
denyinterfaces wlan0
Modificamos las interfaces
sudo cp /etc/network/interfaces /etc/network/interfaces.backup sudo nano /etc/network/interfaces
Lo dejamos así;
allow-hotplug wlan0 iface wlan0 inet static address 150.5.100.1 netmask 255.255.0.0 network 150.5.0.0 broadcast 150.5.255.255
Creamos el siguiente fichero:
sudo nano /etc/hostapd/hostapd.conf
Añadimos lo siguiente:
# This is the name of the WiFi interface we configured above interface=wlan0 # Use the nl80211 driver with the brcmfmac driver driver=nl80211 # This is the name of the network ssid=Pi3-AP # Use the 2.4GHz band hw_mode=g # Use channel 1 channel=1 # Enable 802.11n ieee80211n=1 # Enable WMM wmm_enabled=1 # Enable 40MHz channels with 20ns guard interval ht_capab=[HT40][SHORT-GI-20][DSSS_CCK-40] # Accept all MAC addresses macaddr_acl=0 # Use WPA authentication auth_algs=1 # Require clients to know the network name ignore_broadcast_ssid=0 # Use WPA2 wpa=2 # Use a pre-shared key wpa_key_mgmt=WPA-PSK # The network passphrase wpa_passphrase=contrasena # Use AES, instead of TKIP rsn_pairwise=CCMP
Modificamos:
sudo nano /etc/default/hostapd
Buscamos la linea daemon y la dejamos así:
DAEMON_CONF="/etc/hostapd/hostapd.conf"
Reiniciamos y probamos la conexión indicamos IP estática en el mismo rango.