Using bridges under NixOS

From NixOS Wiki
Revision as of 20:38, 2 September 2019 by imported>Luis-Hebendanz (Bridge networking doesn't work / First ARP packet gets answered by wrong host)
This page is a template. It should be used as part of other articles. For more information, see Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to discuss this template in the talk page.

If you wanted to create a new page instead, use the search box to search for the title of the new page you want to create and follow the link Create the page "XYZ" on this wiki! in the results page. An alternative is to create a dangling link to the new page from an existing page. A final option is to directly visit the expected URL of the page.

If you want to use macvtap bridges in KVM, LXC, Xen or $hypervisor on NixOS you have to tell your dhcp server to not configure that interface with an ip. Yes exactly the dhcp server on NixOS configures every interface as long it has been told to not to. If you are running dhcpcd then you have to define networking.dhcpcd.denyInterfaces = [ "macvtap0@*" ] for example.

What is the error you get when layer 2 bridges have IPs? https://serverfault.com/questions/959667/kvm-bridge-networking-first-arp-packet-gets-answered-by-wrong-host