Skip to content

Instantly share code, notes, and snippets.

View bay-systems's full-sized avatar

Dhya bay-systems

View GitHub Profile
@bay-systems
bay-systems / systemd-networkd bridge setup.md
Created July 27, 2024 22:37
Create a network bridge interface with systemd-networkd

Create a bridge interface with systemd-networkd

  • bridge will be named br0

Find the network device:

ip -l
# 2: enp0s31f6: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 ...
@bay-systems
bay-systems / mmdebstrap-bw1
Last active May 9, 2023 06:29
Bash script to create Debian 12 "bookworm" mmdebstrap container and import into systemd-containerd
#!/bin/bash -e
#
# This script creates an mmdebstrap .tar and imports it into systemd-nspawn
# where it can be managed by machinectl
#
# On the host machine you should run:
# systemctl enable systemd-networkd; systemctl start systemd-networkd
#
# Then start the container:
# machinectl start bw1