systemctl status hostapd2
○ hostapd2.service - Access point and authentication server for Wi-Fi 2 and Ethernet
Loaded: loaded (/lib/systemd/system/hostapd2.service; disabled; preset: enabled)
Active: inactive (dead)
Docs: man:hostapd(8)
After:
systemctl restart hostapd2
No errors.
systemctl status hostapd2
● hostapd2.service - Access point and authentication server for Wi-Fi 2 and Ethernet
Loaded: loaded (/lib/systemd/system/hostapd2.service; disabled; preset: enabled)
Active: active (running) since Mon 2024-07-01 17:17:24 UTC; 40s ago
Docs: man:hostapd(8)
Process: 3555 ExecStart=/usr/sbin/hostapd -B -P /run/hostapd2.pid $DAEMON2_OPTS ${DAEMON_CONF2} (code=exited, status=0/SUCCESS)
Main PID: 3556 (hostapd)
Tasks: 1 (limit: 2298)
Memory: 992.0K
CPU: 40ms
CGroup: /system.slice/hostapd2.service
└─3556 /usr/sbin/hostapd -B -P /run/hostapd2.pid /etc/hostapd/hostapd_wlan1.conf
Jul 01 17:17:24 bpi-r3 systemd[1]: Starting hostapd2.service - Access point and authentication server for Wi-Fi 2 and Ethernet...
Jul 01 17:17:24 bpi-r3 systemd[1]: Started hostapd2.service - Access point and authentication server for Wi-Fi 2 and Ethernet.
That I didn’t think of it! It works!
I have one more request (perhaps for a long time last).
I have lan0 to lan3 ports in bridge. DHCP works on Bridge. I can’t connect wlan0 and wlan1 to Bridge. I need all ports lan and wlan on one DHCP range.
My current WLAN0 (and below I WLAN1):
After reboot, the clinet does not join WiFi. Or connect, but does not have access to the Internet. Usually this is solved by systemctl restart systemd-networkd. If WLAN has its adrsional range and DHCP, then the connection is fine. But I don’t need this setting.
If you need all wlan+lan in same ip subnet you have to bridge them and have dhcp/ip config on the bridge…but sometimes wlan in bridge causes some issues,so i avoid this…on r3/r4 there is wed (offloading flow for traffic from wifi to ethernet),but have not done much with it.
On r2 i did this with simple rooting…but this requires different subnets like currently configured in my images.
When bridging you have to remove the wifi network configs with fixed ips/dhcp. Maybe you have to define bridge via hostapd config,not via systemd…but why do you care about wifi subnet? It is better to handle in firewall when having dedicated interface not be bridges…but thats my opinion
Yes it’s right! I “moved” the wlan to hostapd and they work fine.
Could you sell me how to set a static MAC address for the WAN port? Currently, every time you connect to a router, the parent router receives a random MAC address from the Banana Pi. I tried in /etc/systemd/network/15-wan.network
use
[Link]
# Override MAC address (spoof MAC address)
MACAddress=aa:bb:cc:dd:ee:ff
but I won’t connect to the internet.
EDIT:
I already solved it. I have to set in /etc/systemd/network/10-wan.link: