R
R
Ruslan2021-07-22 13:25:23
linux
Ruslan, 2021-07-22 13:25:23

How to share IP from Wi-Pi hotspot on Raspberry under Debian?

Debian + Hostapd + Dnsmasq installed on Raspberry Pi4. An access point is created, but when you try to connect, it falls off with an error getting an IP.
Malinka receives the network over the wire from the router, the IP of the raspberry is fixed at 192.168.0.2.

/etc/hostapd/hostapd.conf

interface=wlan0
driver=nl80211
ssid=RaspPi4
hw_mode=g
ieee80211n=1
channel=6
wpa=2
wpa_passphrase=12345678
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP
auth_algs=1
macaddr_acl=0


/etc/dnsmasq.conf
interface=wlan0
dhcp-range=192.168.0.2,192.168.0.100,12h


In which direction to dig?
Everything has been done to implement a smart home on Home Assistant and Wi-Wi for smart home terminal devices.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Oxidedixo, 2021-07-22
@Oxidedixo

Good afternoon!
Your Raspberry IP address is 192.168.0.2 and at the same time you create a Wi-Fi subnet on it with intersecting addressing, starting with 192.168.0.2 as well.
I would try a different subnet. For example, 10.10.10.x

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question