Fusion

 View Only
  • 1.  No internet Connection Bridged Mode

    Posted Nov 04, 2024 12:22 PM

    I had my Ubuntu 24.04.1 LTS running fine on VMware Fusion with "Share with my Mac" as Network Adapter. However, for a work, I needed to change the Network Mode to bridge, what I did, and after start the VM I had no internet connection.
    Tried to change it back to "Share with my Mac" but there was no internet connection still.

    Running ifconfig while in Bridged Networking -> Autodetect returns:

    ens160: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
            inet 172.16.198.133  netmask 255.255.255.0  broadcast 172.16.198.255
            inet6 2001:8a0:f09c:8300:20c:29ff:fe16:1bc9  prefixlen 64  scopeid 0x0<global>
            inet6 fe80::20c:29ff:fe16:1bc9  prefixlen 64  scopeid 0x20<link>
            ether 00:0c:29:16:1b:c9  txqueuelen 1000  (Ethernet)
            RX packets 608  bytes 84386 (84.3 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 323  bytes 29262 (29.2 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
            device interrupt 45  memory 0x3fe00000-3fe20000  

    lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
            inet 127.0.0.1  netmask 255.0.0.0
            inet6 ::1  prefixlen 128  scopeid 0x10<host>
            loop  txqueuelen 1000  (Local Loopback)
            RX packets 1073  bytes 91496 (91.4 KB)
            RX errors 0  dropped 0  overruns 0  frame 0
            TX packets 1073  bytes 91496 (91.4 KB)
            TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

    172.16.198.133 was the IP associated with "Share with my Mac" mode.

    Even after running sudo systemctl restart systemd-resolved and sudo systemctl restart NetworkManager, ifconfig returns the same.

    Running nmcli returns:

    lo: connected (externally) to lo
            "lo"
            loopback (unknown), 00:00:00:00:00:00, sw, mtu 65536
            inet4 127.0.0.1/8
            inet6 ::1/128

    ens160: unmanaged
            "Intel 82574L"
            ethernet (e1000e), 00:0C:29:16:1B:C9, hw, mtu 1500

    VMware Fusion version: 13.6.1 (24319021)

    Mac OS: 15.1 (24B83)

    How can I get my internet connection back (if possible in Bridged Mode)?



  • 2.  RE: No internet Connection Bridged Mode

    Posted Nov 04, 2024 04:23 PM

    First things first: Are the VMware networking processes running on the Mac host?

    You can check that by opening the Terminal app, and issuing:

    ps -ef | grep -i vmnet

    There should be 4 processes in the default Fusion virtual networking configuration: one vmnet-bridge, one vmnet-natd (associated with vmnet8) and two vmnet-dhcpd processes (one for vmnet1 and one for vmnet8)

    From what you've posted, it looks like your Fusion network seems to be working. The interface is marked by ifconfig as up and running.

    (Side note - you really should get used to using the "ip" command as ifconfig is considered deprecated).

    The lack of internet connectivity could be explained by the network address that ifconfig is reporting. Your VM's network is configured with a 172.16.xxx.xxx network address - your host's network is not likely to be on that subnet, which is why you have no Internet connection in Bridged networking mode.

    Is that interface configured  for DHCP or manual address?

    Could you run the following in a root shell in the VM and post the output:

    systemctl status systemd-networkd

    systemctl status NetworkManager

    netplan status

    nmcli connection show



    ------------------------------
    - Paul (technogeezer)
    ------------------------------