dhcpcd-discuss

Linux VRF's and how DHCPCD currently handles them

Donald Sharp

Mon Mar 04 15:53:22 2019

All --

Linux VRF's recently were introduced to the linux kernel:

https://www.kernel.org/doc/Documentation/networking/vrf.txt

Effectively vrf devices show up as an interface and interfaces that
you want to exist within a particular vrf you mark the vrf device as
it's master.  Then when packets come in on that interface the table
associated with the vrf is used for lookup for packet forwarding.

Currently dhcpcd treats all non-default linux table routes as
something to be ignored in if_copyrt():

rtm = (struct rtmsg *)NLMSG_DATA(nlm);
if (rtm->rtm_table != RT_TABLE_MAIN)
        return -1;

Are there any plans to support this in dhcpcd?

donald

Follow-Ups:
Re: Linux VRF's and how DHCPCD currently handles themRoy Marples
Archive administrator: postmaster@marples.name