Bridging wlan is not supported? oh well

This commit is contained in:
John Burwell 2025-04-26 15:03:50 -05:00
parent 542163a321
commit c408c346a4
4 changed files with 13 additions and 41 deletions

View File

@ -1,25 +1,5 @@
---
# Create the bridge device (br0)
- name: Deploy br0 systemd-networkd bridge device (netdev)
ansible.builtin.template:
src: br0.netdev.j2
dest: /etc/systemd/network/br0.netdev
owner: root
group: root
mode: "0644"
notify: Restart systemd-networkd
# Configure br0 (assign IP and start DHCP server)
- name: Deploy br0 systemd-networkd network config
ansible.builtin.template:
src: br0.network.j2
dest: /etc/systemd/network/br0.network
owner: root
group: root
mode: "0644"
notify: Restart systemd-networkd
# Configure wlan0 to be a bridge device
# Configure wlan0
- name: Deploy wlan0 systemd-networkd bridge config
ansible.builtin.template:
src: wlan0.network.j2
@ -29,7 +9,7 @@
mode: "0644"
notify: Restart systemd-networkd
# Configure eth0 to be a bridge device
# Configure eth0
- name: Deploy eth0 systemd-networkd bridge config
ansible.builtin.template:
src: eth0.network.j2

View File

@ -1,3 +0,0 @@
[NetDev]
Name=br0
Kind=bridge

View File

@ -1,15 +0,0 @@
[Match]
Name=br0
[Network]
Address={{ network.lan_gateway }}
DHCPServer=yes
IPMasquade=ipv4
MulticastDNS=yes
LLMNR=yes
[DHCPServer]
PoolOffset=100
PoolSize=100
DNS={{ network.lan_dns }}
DomainName={{ network.lan_domain }}

View File

@ -2,4 +2,14 @@
Name=wlan0
[Network]
Bridge=br0
Address={{ network.lan_gateway }}
DHCPServer=yes
IPMasquade=ipv4
MulticastDNS=yes
LLMNR=yes
[DHCPServer]
PoolOffset=100
PoolSize=100
DNS={{ network.lan_dns }}
DomainName={{ network.lan_domain }}