fix: Preserve gateway MAC address (#178)
This commit is contained in:
parent
14a0beddf2
commit
71810373f9
1 changed files with 7 additions and 2 deletions
|
@ -221,6 +221,11 @@ configureNAT() {
|
|||
error "$tuntap" && return 1
|
||||
fi
|
||||
|
||||
GATEWAY_MAC=$(echo "$VM_NET_MAC" | rev)
|
||||
if ! ip link set dev "$VM_NET_TAP" address "$GATEWAY_MAC"; then
|
||||
warn "Failed to set gateway MAC address.."
|
||||
fi
|
||||
|
||||
while ! ip link set "$VM_NET_TAP" up promisc on; do
|
||||
info "Waiting for TAP to become available..."
|
||||
sleep 2
|
||||
|
|
Loading…
Reference in a new issue