fix: Generate local MAC address

This commit is contained in:
Kroese 2025-02-24 21:01:42 +01:00 committed by GitHub
parent 2adf0b292b
commit a8f216c3f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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