VMware Communities
blake1024
Contributor
Contributor

Keep losing network connection

Greetings,

My guest keeps losing its network connection.  It works when I first boot it but then just randomly stops.  I have no IPv4 IP all of a sudden.  

The facts:

Host: 64-bit Linux Desktop

Guest:  64-bit Linux Desktop

Network: Host-only

Product:  VMWare Workstation Pro 16.1.0

 

Any help would sure be appreciated.

Thanks!

Blake McBride

0 Kudos
2 Replies
louyo
Virtuoso
Virtuoso

Not much help here, but you might find a time pattern in the log.

Disabling/enabling the NIC in a linux vm:

cat /var/log/messages | grep NIC
Apr 17 12:24:32 lmde2 kernel: [ 3439.796840] e1000: ens33 NIC Link is Down
Apr 17 12:26:07 lmde2 kernel: [ 3534.673193] e1000: ens33 NIC Link is Up 1000 Mbps Full Duplex, Flow Control: None

0 Kudos
DavidC123
Contributor
Contributor

Just want to add a me too to this post:

Version: 16.1.1 build-17801498

Host: Ubuntu 20.04 LTS

Guest: Any Linux tested: Ubuntu, Fedora 33, RHEL 8.3

I am currently running this script as root to stay connected (modify network IP as need):

#!/usr/bin/env bash

while true
do
while ip a|grep 192.168 >/dev/null
do
sleep 10
done
systemctl restart NetworkManager.service
sleep 10
done

0 Kudos