Unverified Commit 8c5e0ee2 authored by Kroese's avatar Kroese Committed by GitHub
Browse files

fix: Generate local MAC address (#899)

parent 2adf0b29
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -214,6 +214,8 @@ configureNAT() {
  fi

  GATEWAY_MAC=$(echo "$VM_NET_MAC" | rev)
  GATEWAY_MAC="02:${GATEWAY_MAC:0:14}"

  if ! ip link set dev "$VM_NET_TAP" address "$GATEWAY_MAC"; then
    warn "Failed to set gateway MAC address.."
  fi