[systemd-devel] networkd Promiscuous mode
teg at jklm.no
Thu Aug 14 08:08:22 PDT 2014
On Thu, Aug 14, 2014 at 3:53 AM, Marcel Holtmann <marcel at holtmann.org> wrote:
> Hi Lennart,
>>> There seems to be no way in systemd-networkd to put a link in
>>> Promiscuous mode. This is needed to make macvlan work correctly
>>> (Otherwise it receives no traffic with its mac address as the
>>> destination). If I am not mistaken this could be a boolean in *.link
>> Sounds useful. Added to the todo list.
> actually this sounds like a design mistake. If macvlan requires the network interface in promiscuous mode, then it should do that internally.
> Inside the kernel the promiscuous mode is actually reference counted. This can for example be utilized from packet(7) sockets. That way you do not accidentally leave a device in promiscuous mode if all users are gone.
> So why not fix macvlan to put the parent into promiscuous mode.
Yeah, this sounds like a kernel bug. If there is some independent
reason to unconditionally enable promiscuous mode, we could consider
it. Otherwise, I'd let it be.
More information about the systemd-devel