systemd-networkd "relaytarget"이 Debian stable 12 bookworm(dhcp 릴레이)에서 작동하지 않습니다.

systemd-networkd "relaytarget"이 Debian stable 12 bookworm(dhcp 릴레이)에서 작동하지 않습니다.

내 첫 번째 질문은 여기에 있습니다.

현재 dhcp 중계를 위해 "dhcp-helper" 프로그램을 사용하고 있는데 잘 작동하지만 *.network 파일에서 systemd-networkd "RelayTarget" 기능을 사용하도록 전환하고 싶습니다. 제가 생각할 수 있는 모든 옵션을 시도했지만 제대로 작동하지 않는 것 같습니다.

  • 현재 Debian 안정 버전 "bookworm 12" 6.1.0-13-amd64 실행
  • Debian 안정 버전은 systemd 252(252.17-1~deb12u1)를 실행합니다.

제가 생각할 수 있는 모든 옵션을 시도했지만 아직 성공하지 못했습니다.

/etc/systemd/network/02-port2-lan0-static.network:

# /etc/systemd/network/02-port2-lan0-static.network
# configures lan0 with static ip address
#
[Match]
Name=lan0
[Network]
Address=172.16.1.1/24
# do not set gateway or dns, will inherit from system
[DHCPServer]
ServerAddress=172.16.11.2/24
RelayTarget=172.16.11.2
BindToInterface=no

누구든지 Debian stable에서 이 기능을 사용할 수 있나요? 나는 데비안 안정 버전이 최신 시스템 버전을 실행하지 않는다는 것을 깨달았습니다. 이는 프로덕션 라우터이므로 테스트용으로 업그레이드할 수 없습니다.

감사해요

답변1

이를 통해 ServerAddress=네트워크에 알립니다.~이 되다172.16.11.2 및 모든 DHCP 요청 중계자신에게 돌아가십시오.ServerAddress=를 전혀 설정하지 않거나 172.16.1.1/24(즉, 라우터 자체 주소)로 설정하세요.

관련 정보