Skip to content

Instantly share code, notes, and snippets.

@gdamjan
Last active December 29, 2023 18:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gdamjan/2ea0fc56674421d517f60a6b968451e1 to your computer and use it in GitHub Desktop.
Save gdamjan/2ea0fc56674421d517f60a6b968451e1 to your computer and use it in GitHub Desktop.

Network topology

[Router] === wifi nework domain 1 === [VM server] === bridge0, network domain 2 === VM1, VM2, Container1, Container2
  • VM Server is Archlinux with systemd networkd
  • Router is Edgerouter X with Openwrt

TODO:

  • mDNS with Avahi Reflector
  • LLMNR reflector?
# /etc/systemd/network/bridge.network on the VM server
[Match]
Name=bridge0
[Network]
Address=192.168.117.1/24
DHCPServer=yes
LLDP=yes
MulticastDNS=yes
[Link]
RequiredForOnline=no
[DHCPServer]
RelayTarget=192.168.17.1
RelayAgentRemoteId=string:vmserver
# /etc/dnsmasq.conf on the Openwrt router
dhcp-remoteid=set:vm,vmserver
dhcp-range=tag:vm,192.168.117.100,192.168.117.249,255.255.255.0,12h
dhcp-option=tag:vm,option:router,192.168.117.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment