From c75b6519c590f0f51e04fbefb215ca364fa1636b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 31 Oct 2016 00:55:59 +0100 Subject: [PATCH] network: keep the same MAC on vif interfaces Even when it's veth pair into network namespace doing NAT. QubesOS/qubes-issues#1143 --- network/vif-qubes-nat.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/network/vif-qubes-nat.sh b/network/vif-qubes-nat.sh index 57f588a..d422d8e 100755 --- a/network/vif-qubes-nat.sh +++ b/network/vif-qubes-nat.sh @@ -45,7 +45,9 @@ if test "$command" == online; then run ip netns add "$netns" run ip link set "$netns_appvm_if" netns "$netns" - run ip link add "$netns_netvm_if" type veth peer name "$netvm_if" + # keep the same MAC as the real vif interface, so NetworkManager will still + # ignore it + run ip link add "$netns_netvm_if" type veth peer name "$netvm_if" address fe:ff:ff:ff:ff:ff run ip link set "$netns_netvm_if" netns "$netns" netns ip6tables -t raw -I PREROUTING -j DROP