# Fun with netplan ## static IP and bridge ```yaml ## systemd-networkd config network: version: 2 renderer: networkd ethernets: enp4s0: dhcp4: no dhcp6: no optional: true enp5s0: dhcp4: no dhcp6: no optional: true bridges: br0: interfaces: - enp4s0 - enp5s0 optional: true dhcp4: no dhcp6: no addresses: - 192.168.0.208/24 gateway4: 192.168.0.1 nameservers: addresses: - 1.1.1.1 - 8.8.8.8 ``` ## static IP with bonded interfaces ```yaml ## systemd-networkd config network: version: 2 renderer: networkd ethernets: enp4s0: optional: true enp5s0: optional: true bonds: bond0: addresses: - 192.168.0.208/24 gateway4: 192.168.0.1 interfaces: - enp4s0 - enp5s0 nameservers: addresses: - 1.1.1.1 - 8.8.8.8 dhcp4: false dhcp6: false optional: true parameters: mode: balance-rr bridges: br0: interfaces: [bond0] ``` ## DHCP ```yaml ## systemd-networkd config network: version: 2 renderer: networkd ethernets: enp4s0: dhcp4: true dhcp6: false optional: true enp5s0: dhcp4: true dhcp6: false optional: true ``` ## Basic NetworkManager config ```yaml network: version: 2 renderer: NetworkManager ```