VRF name with dashes and dhcrelay

  • 1
  • Problem
  • Updated 10 months ago
I have a VRF named 'unmanaged-vrf' and am trying to create a dhcrelay service inside the VRF.

When I try to start that service, it says the VRF doesn't exist:

dhcrelay@unmanaged-vrf.service - DHCPv4 Relay Agent Daemon unmanaged-vrf
   Loaded: loaded (/lib/systemd/system/dhcrelay@.service; enabled)
  Drop-In: /run/systemd/generator/dhcrelay@.service.d
   Active: failed (Result: exit-code) since Wed 2017-04-05 16:47:48 CDT; 18h ago
     Docs: man:dhcrelay(8)
 Main PID: 14749 (code=exited, status=1/FAILURE)

Apr 05 16:47:48 systemd[1]: Starting DHCPv4 Relay Agent Daemon unmanaged-vrf...
Apr 05 16:47:48 systemd[1]: Started DHCPv4 Relay Agent Daemon unmanaged-vrf.
Apr 05 16:47:48 vrf[14749]: ERROR: VRF does not exist
Apr 05 16:47:48 systemd[1]: dhcrelay@unmanaged-vrf.service: main process exited, code=exited, status=1/FAILURE
Apr 05 16:47:48 vrf[14764]: ERROR: VRF does not exist
Apr 05 16:47:48 systemd[1]: Unit dhcrelay@unmanaged-vrf.service entered failed state.

I looked in the systemd config files to extract the command it tries to run and it does work when I run it manually:

sudo /usr/bin/vrf task exec unmanaged-vrf dhcrelay --nl -d -q -i peerlink -i swp13s0.504 -i vbridge.56 <snip out dhcp host>

When I'm running this command, hosts are able to get a DHCP lease. How can I get this to work as a service through systemd?
Photo of Matt Mix

Matt Mix

  • 70 Points

Posted 1 year ago

  • 1
Photo of Pete B

Pete B, Official Rep

  • 2,786 Points 2k badge 2x thumb
Looks like you wrote it to our support team about this. Thanks for letting us know about this issue.