my first question here.

I'm currently using the 'dhcp-helper' program to do dhcp relay, works fine, but I want to switch to using the systemd-networkd 'RelayTarget' function in the *.network file. I've tried every option I can think of, but can't seem to get it working.

  • Running current Debian stable "bookworm 12" 6.1.0-13-amd64
  • Debian stable runs systemd 252 (252.17-1~deb12u1)

I've tried every option I can think of, no luck yet.


# /etc/systemd/network/02-port2-lan0-static.network
# configures lan0 with static ip address
# do not set gateway or dns, will inherit from system

Anyone have this working in Debian stable? I realize Debian stable does not run the latest systemd version. This is a production router, so upgrading to testing is not an option.



1 Answer 1


With this ServerAddress=, you're telling networkd to become and to relay all DHCP requests back to itself. Do not set ServerAddress= at all, or set it to (i.e. the router's own address).

  • I've tried every combo I can think of, started with just the RelayTarget line, then added the others, none of it worked.
    – drokmed
    Nov 6, 2023 at 17:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .