Dhcp-relay with multiple uplinks and multiple servers

Hi,

I’m migrating Cisco router to VyOS 1.5 for evaluation and I stuck how to setup dhcp relay.
VyOS is multihomed (two uplinks for redundancy: eth1, eth2).
DHCP clients on eth3.100 should use dhcp server 172.30.1.4
DHC clients on eth3.200 should use dhcp server 172.30.2.4

Routes toward those DHCP servers depend on current network status and dynamic routing setup (either eth1 or eth2)

I can’t figure it out how to setup this. It seems dhcp-relay can’t have setup dhcp-server per interface.
AM I wrong ?

Cisco setup was easy - just configure dhcp-relay IP on interface and it’s done.

show service dhcp-relay
    listen-interface eth1
    upstrem-interface eth2
    server 10.0.1.4
    relay-options {
       relay-agents-packets discard
    }

@echowings - thanks but this doesn’t help. This is standard config with one dhcp server for relaying.
What I need is two dhcp servers each handling different interface:

  • DISCOVER on eth3.100 → 172.30.1.4
  • DISCOVER on eth3.200 → 172.30.2.4

Both dhcp servers can be reached via two interfaces. final route depends on upstream routers bgp session state.

ISC DHCP relay doesn’t support multiple interfaces natively, but I can see how we can fake that by running multiple instances. I need to check if there are any caveats, I think we can do it for the next VyOS Stream release.

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.