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.
@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.