From b3429b596dd9cafaa7cc8b11f6c67b7a5ff206c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Mon, 22 Dec 2014 00:03:37 +0100 Subject: [PATCH] network: set uplink configuration based on MAC (NetworkManager) --- network/setup-ip | 3 +++ 1 file changed, 3 insertions(+) diff --git a/network/setup-ip b/network/setup-ip index 4fa3c12..0bc02f9 100755 --- a/network/setup-ip +++ b/network/setup-ip @@ -29,6 +29,9 @@ if [ x$ip != x ]; then cat > /etc/NetworkManager/system-connections/qubes-uplink-$INTERFACE <<__EOF__ [802-3-ethernet] duplex=full + +[ethernet] +mac-address=`ip l show dev $INTERFACE |grep link|awk '{print $2}'` [connection] id=VM uplink $INTERFACE