AaFran
Posts: 3
Joined: Wed May 26, 2021 5:45 pm

dhcp on wlan interface on Netgear

Wed May 26, 2021 6:35 pm

I want to attach wlan0 to a NetGear switch. I've managed to do so in a way that allows the client devices to connect to the RPi4's network, but the IP addresses being assigned to the clients aren't being assigned by the Pi in the range of the access point 192.168.0.1, for example 10.0.0.x

Which means that the DHCP server on the Pi isn't working. How do I retain the functionality of Netgear but also stop it from interfering with the DHCP server on wlan0?

User avatar
neilgl
Posts: 3654
Joined: Sun Jan 26, 2014 8:36 pm
Location: Near The National Museum of Computing

Re: dhcp on wlan interface on Netgear

Thu May 27, 2021 10:11 am

Which instructions did you follow? This one has a bridged WAP https://www.raspberrypi.org/documentat ... bridged.md

AaFran
Posts: 3
Joined: Wed May 26, 2021 5:45 pm

Re: dhcp on wlan interface on Netgear

Fri May 28, 2021 7:10 am

Thanks for your guide. The main points to have a successful connection include these points:

- Install hostapd (sudo apt install hostapd)
- Enable the wireless access point service:

sudo systemctl unmask hostapd
sudo systemctl enable hostapd

- Setup a network bridge:
- Create a bridge device and populate the bridge

vi /etc/systemd/network/bridge-br0.netdev
vi /etc/systemd/network/br0-member-eth0.network

- Enable the service (sudo systemctl enable systemd-networkd)
- Construct the bridge, using DHCP or static IP
- sudo rfkill unblock wlan
- vi /etc/hostapd/hostapd.conf
- Reboot

Return to “Beginners”