Page MenuHomeVyOS Platform

Feature Request: dhcp server: add VRF support
Closed, ResolvedPublic

Description

Request support for DHCP server functionality for VRF interfaces

For a full VRF-enabled router, such functionality is highly desirable.
It is currently not possible to use DHCP pools with overlapping addresses for different VRF interfaces.

For example:

set interfaces ethernet eth1 vrf 'CUSTOMER_A'
set interfaces ethernet eth1 address 192.168.100.1/24
set interfaces ethernet eth2 vrf 'CUSTOMER_B'
set interfaces ethernet eth2 address 192.168.100.1/24

set vrf name CUSTOMER_A table '101'
set vrf name CUSTOMER_B table '102'

set service dhcp-server shared-network-name CUSTOMER_A vrf 'CUSTOMER_A'
set service dhcp-server shared-network-name CUSTOMER_A subnet 192.168.100.0/24 range 0 start '192.168.100.100'
set service dhcp-server shared-network-name CUSTOMER_A subnet 192.168.100.0/24 range 0 stop '192.168.100.150'

set service dhcp-server shared-network-name CUSTOMER_B vrf 'CUSTOMER_B'
set service dhcp-server shared-network-name CUSTOMER_B subnet 192.168.100.0/24 range 0 start '192.168.100.100'
set service dhcp-server shared-network-name CUSTOMER_B subnet 192.168.100.0/24 range 0 stop '192.168.100.150'

Details

Difficulty level
Unknown (require assessment)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Unspecified (possibly destroys the router)
Issue type
Feature (new functionality)

Event Timeline

This can be implemented by multiple daemon instances in separate vrf's.

Hi @daniil and @NikolayP,

this is already implemented and working. You need to specify: set vrf bind-to-all and it will work out of the box with your configuration stated above

Sorry to write on a closed task, but without specifying a vrf (or some kind of identifier for that matter), how will the DHCP server decide which shared network to use since they have identical subnets configured?