Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 3838

Troubleshooting • Re: Issues with building RPI 5 an AP

$
0
0
I am trying to make my RPI 5B running bookworm, but I am not able to make it an AP, in the sense the AP is established but my phone does not connect to it. I am using the following shell script to make in AP using nmcli:

Code:

#!/bin/bash# Delete any existing connection named TEST-APnmcli con delete TEST-AP# Create a new WiFi connection in AP mode with SSID TESTnmcli con add type wifi ifname wlan0 mode ap con-name TEST-AP ssid TEST autoconnect false# Configure wireless settings: use 2.4 GHz (bg band), channel 3,# and (optionally) set a cloned MAC addressnmcli con modify TEST-AP wifi.band bgnmcli con modify TEST-AP wifi.channel 3# Set WPA-PSK security settings with WPA2 (RSN), CCMP encryption, and your desired passphrasenmcli con modify TEST-AP wifi-sec.key-mgmt wpa-psknmcli con modify TEST-AP wifi-sec.proto rsnnmcli con modify TEST-AP wifi-sec.group ccmpnmcli con modify TEST-AP wifi-sec.pairwise ccmpnmcli con modify TEST-AP wifi-sec.psk "12345678"# Configure IPv4: "shared" mode tells NetworkManager to run its own DHCP server# The AP will have a static IP of 192.168.4.1/24nmcli con modify TEST-AP ipv4.method shared ipv4.address 192.168.4.1/24# Disable IPv6 on the AP connectionnmcli con modify TEST-AP ipv6.method disabled# Bring the connection up (activates the AP)nmcli con up TEST-AP

Can someone please tell me what may be going wrong and if there are any resources available to follow to make the RPI an AP on Bookworm, as the previous method using the wap supplicant file does not work on this OS. Thank you.




"any resources available to follow to make the RPI an AP on Bookworm"

Host a wireless network from your Raspberry Pi - https://www.raspberrypi.com/documentati ... spberry-pi

Statistics: Posted by B.Goode — Sun Feb 23, 2025 7:20 am



Viewing all articles
Browse latest Browse all 3838

Trending Articles