mirror of
https://github.com/iiab/iiab.git
synced 2025-02-13 11:42:08 +00:00
systemd-networkd fix-ups
This commit is contained in:
parent
0a84a5e9a7
commit
039b584fb2
2 changed files with 4 additions and 6 deletions
|
@ -3,17 +3,19 @@
|
|||
template:
|
||||
dest: /etc/systemd/network/IIAB-Bridge.netdev
|
||||
src: network/systemd-br0.j2
|
||||
when: iiab_lan_iface == "br0"
|
||||
|
||||
- name: Copy the bridge script - Assigns IP address
|
||||
template:
|
||||
dest: /etc/systemd/network/IIAB-Bridge.network
|
||||
src: network/systemd-br0-network.j2
|
||||
when: iiab_lan_iface == "br0"
|
||||
|
||||
- name: Copy the bridge script - Assigns br0 wired slaves
|
||||
template:
|
||||
dest: /etc/systemd/network/IIAB-Slave.network
|
||||
src: network/systemd-br0-slave.j2
|
||||
when: iiab_wired_lan_iface is defined
|
||||
when: iiab_wired_lan_iface is defined and iiab_lan_iface == "br0"
|
||||
|
||||
- name: Stopping services
|
||||
include_tasks: down-debian.yml
|
||||
|
|
|
@ -3,13 +3,9 @@
|
|||
Name=br0
|
||||
|
||||
[Network]
|
||||
Bridge=br0
|
||||
Address={{ lan_ip }}/19
|
||||
LinkLocalAddressing=no
|
||||
DNS={{ lan_ip }}
|
||||
Domains={{ iiab_domain }}
|
||||
|
||||
[Address]
|
||||
Address={{ lan_ip }}/19
|
||||
|
||||
[Route]
|
||||
Gateway=""
|
||||
|
|
Loading…
Reference in a new issue