Bridging wlan is not supported? oh well
This commit is contained in:
parent
542163a321
commit
c408c346a4
@ -1,25 +1,5 @@
|
|||||||
---
|
---
|
||||||
# Create the bridge device (br0)
|
# Configure wlan0
|
||||||
- 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
|
|
||||||
- name: Deploy wlan0 systemd-networkd bridge config
|
- name: Deploy wlan0 systemd-networkd bridge config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: wlan0.network.j2
|
src: wlan0.network.j2
|
||||||
@ -29,7 +9,7 @@
|
|||||||
mode: "0644"
|
mode: "0644"
|
||||||
notify: Restart systemd-networkd
|
notify: Restart systemd-networkd
|
||||||
|
|
||||||
# Configure eth0 to be a bridge device
|
# Configure eth0
|
||||||
- name: Deploy eth0 systemd-networkd bridge config
|
- name: Deploy eth0 systemd-networkd bridge config
|
||||||
ansible.builtin.template:
|
ansible.builtin.template:
|
||||||
src: eth0.network.j2
|
src: eth0.network.j2
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
[NetDev]
|
|
||||||
Name=br0
|
|
||||||
Kind=bridge
|
|
||||||
@ -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 }}
|
|
||||||
@ -2,4 +2,14 @@
|
|||||||
Name=wlan0
|
Name=wlan0
|
||||||
|
|
||||||
[Network]
|
[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 }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user