Browse Source

network: set uplink configuration based on MAC (NetworkManager)

Marek Marczykowski-Górecki 9 years ago
parent
commit
b3429b596d
1 changed files with 3 additions and 0 deletions
  1. 3 0
      network/setup-ip

+ 3 - 0
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