#(Networking) RPI Access Point Wont Assign Ips to New Devices

1 messages · Page 1 of 1 (latest)

pallid briar
#

Hi, Ive been trying to setup a raspberry pi 3 b+ running raspberry pi os lite (32-bit) to stream an access point I can connect to without wifi. I dont know how to set this up from scratch so I have followed tutorials online. I went through roughly 4-5 tutorials and had to restart before I found this one from adafruit:
https://learn.adafruit.com/setting-up-a-raspberry-pi-as-a-wifi-access-point/install-software
I managed to have it give a signal that I can connect to from my phone, but it doesnt fully connect. From some more reading online, it seems that something is wrong with DHCP and it doesnt assign my devices and ip and as a result it cannot connect. I have followed the exact instructions and here are my files:
/etc/dhcpcd.conf:

    static ip_address=192.168.4.1/24
    nohook wpa_supplicant```

/etc/sysctl.d/routed-ap.conf:
```# Enable IPv4 routing
net.ipv4.ip_forward=1```

This file is all comments, except this at the end of the file - /etc/dnsmasq.conf:
```interface=wlan0 # Listening interface
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
                # Pool of IP addresses served via DHCP
domain=wlan     # Local wireless DNS domain
address=/gw.wlan/192.168.4.1
                # Alias for this router```


This is the only file I really changed with the ssid and pass, aswell as the channed and hw_mode - /etc/hostapd/hostapd.conf:
```country_code=US
interface=wlan0
ssid=printer
hw_mode=g
channel=8
macaddr_acl=0
auth_algs=1
ignore_broadcast_ssid=0
wpa=2
wpa_passphrase=password
wpa_key_mgmt=WPA-PSK
wpa_pairwise=TKIP
rsn_pairwise=CCMP

If you would like me to provide any sort of other files or logs, I would be more than happy to. I appreciate any help or suggestions :)

Adafruit Learning System

Make the most adorable little WiFi router

#

<@&629302830532132864>

green helm
# pallid briar <@&629302830532132864>

@pallid briar uncomment (remove the # sign):

This file is all comments, except this at the end of the file - /etc/dnsmasq.conf:

interface=wlan0 # Listening interface
dhcp-range=192.168.4.2,192.168.4.20,255.255.255.0,24h
# Pool of IP addresses served via DHCP
domain=wlan # Local wireless DNS domain
address=/gw.wlan/192.168.4.1
# Alias for this router

#

range there is set already from .4.2 thru .4.20

green helm
#

good for 19 network devices to connect

#

you're essentially making a wifi router into a bridge as an extender of your ethernet line coming from another routher/switch.

pallid briar
#

wdym, that entire part is uncommented

#

19 devices is plenty enough. I just need this to give a hostspot I can connect to so I can access a different interface that Im going to install later on

green helm
#

I'd like to see it the proper way, not with darn indents all over.

pallid briar
green helm
#

as a wild guess, try adding the line dhcp=true as a new line right after interface.