Trying to add wifi interface to bridge fails

I am trying to build a small router/AP. The host is a small system with Fedora branch (34) on it.
The system has 3 ethernet ports and a wifi adaptor.
IT also contains a wwan adaptor for the uplink to the internet.

So what I have done is:

  • configured the wwan adaptor, and this works.
  • created a bridge, added the ethernet ports of the host to the bridge, and configured dnsmasq as a dhcp server.
  • Configured ip forwarding and set masquerading on the wwan interface.
  • create an AP using ‘nmcli device wifi hotspot …’

I can now both connect to the hotspot and with a ethernet cable and have internet access. So this all works.

However I would like to add the wifi interface to the bridge as well.

So I do ‘nmcli con edit AP’ to change the interface to a bridge slave. There I have an issue.

nmcli connection> set master ae893f69-3f23-448e-b08e-ed377ff9a0a4
Warning: setting connection.master requires removing ipv4 and ipv6 settings
Do you want to remove them? [yes] yes
nmcli connection> set slave-type bridge
nmcli connection> save
Error: connection verification failed: bridge-port: slave-type 'bridge' requires a 'bridge-port' setting in the connection
You may try running 'verify fix' to fix errors.
nmcli connection> verify fix
Verify setting 'connection': OK
nmcli connection> save
Error: connection verification failed: bridge-port: slave-type 'bridge' requires a 'bridge-port' setting in the connection
You may try running 'verify fix' to fix errors.

There is no “bridge-port” setting anywhere that I can set. So how do I get past this?

1 Like