diff --git a/src/network.sh b/src/network.sh index a290fcd..697405b 100644 --- a/src/network.sh +++ b/src/network.sh @@ -551,7 +551,7 @@ getPasst() { # Network mode setup # ###################################### -configureDHCP() { +configureVTAP() { local msg="" local rc @@ -1432,7 +1432,8 @@ html "$MSG" if enabled "$DHCP"; then # Configure for macvtap interface - configureDHCP || exit 20 + configureVTAP || exit 20 + showGuestInfo else @@ -1486,6 +1487,8 @@ else fi + showGuestInfo + if [[ "${NETWORK,,}" == "passt" || "${NETWORK,,}" == "slirp" ]]; then if [ -z "$USER_PORTS" ]; then info "Notice: because user-mode networking is active, when you need to forward custom ports to DSM, add them to the \"USER_PORTS\" variable." @@ -1494,8 +1497,6 @@ else fi -showGuestInfo - NET_OPTS+=" -device $ADAPTER,id=net0,netdev=hostnet0,romfile=,mac=$MAC" if [[ "$GUEST_MTU" != "0" && "$GUEST_MTU" != "1500" ]]; then