Hello, Mr. Engman,
I am in a mess, I am not able to connect any device to my hotspot recently created. If this post is restricted to the driver, I beg your perdon, because my question is related to the interfaces and hostapd configurations stuff .
Anyway, my question can be be of interest for other people:
hostapd seems to start, wlan0 also seems to be correctly configured, and all NAT (iptables) and forwardings seem to work. I can see the wireless SSID from other devices (RPiAP)
I have not installed any dhcp program, because I prefer not to interfere with the main network router that has dhcp enabled (I am not an expert and I am scared if I use two dhcp servers on the same network).
So, I configure the device that I want to connect to "RPiAP" access point in this way:
- Use static IP (no overriding dhcp range of the main router).
- Also, I am forced to specify a gateway in my device; I have tried with the wlan0 ip (192.168.1.106), with the eth0 ip (192.168.1.105) and also with the main router ip (192.168.1.1)
However, connection aborts, and I cannot see anythnig in hostadp std output (I started it this way: 'hostapd -cc /etc/hostapd/hostapd.conf')
I am sure I have missed something that I cannot figure out.
Regarding hostapd and interfaces configurations, I guess I have followed what most blogs say, but for reference, I am copying here their contents:
/etc/network/interfaces
Code: Select all
auto lo
iface lo inet loopback
iface eth0 inet static
address 192.168.1.105
netmask 255.255.255.0
gateway 192.168.1.1
iface default inet dhcp
allow-hotplug wlan0
allow-hotplug eth0
iface wlan0 inet static
address 192.168.1.106
netmask 255.255.255.0
up iptables-restore < /etc/iptables.ipv4.nat
/etc/hostapd/hostapd.conf
Code: Select all
interface=wlan0
driver=rtl871xdrv
ssid=RPiAP
hw_mode=g
channel=1
wpa=3
wpa_passphrase=<hidden, for the post>
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=3
macaddr_acl=0
Thanks a lot!