I'm trying to set up a bridge device consisting of a LAN interface and WLAN interface in AP mode. Internet is provided by the LAN interface; other devices will connect to WLAN interface to connect to the internet.
My current netplan setup without the wifi interface in the bridge:
network:
version: 2
renderer: NetworkManager
ethernets:
enp1s0:
dhcp4: no
bridges:
br0:
dhcp4: no
interfaces:
- enp1s0
addresses:
- 192.168.1.24/24
routes:
- to: default
via: 192.168.1.1
nameservers:
addresses:
- 192.168.1.1
wifis:
wlp2s0:
dhcp4: no
addresses: [192.168.2.1/24]
access-points:
"my-wifi-network":
password: "secret"
mode: ap
With the above, wireless clients to this "my-wifi-network" network are getting IPs from 192.168.2.0/24 range and able to access the internet (provided by 192.168.1.1, connected through enp1s0 LAN interface).
I want the wireless clients to get 192.168.1.x IP addresses, so that all devices in the 192.168.1.x can talk to each other.