NAT vs Bridged on VM

I can’t seem to get the bridged connection from the VM to my MacBook to function correctly. I was able to get NAT to work but I want to get this working the right way. I tried putting in a static IP and it’s still not working. When I try to ping 8.8.8.8, it says destination unreachable.

Thank you.

Hi @rileytpacheco ,

A bridged connection always requires a network card to work with, like here, in my example:
image
So, just to be sure, are you choosing your current connection? What error are you seeing? Can you share some logs or even better a screenshot?

Regards,
Vitor Jr.
KodeKloud Support

Hello,
You should use bridge adapter and chose the right network card as the same as your laptop
I dont use Mac but it seems to be the same in all virtualisation softwares.
Chose a Bridge adapter according to your network card and you can give it a static IP address.
Greetings

The bridge settings are correct. I am going to turn off all the firewalls, etc. to see if that makes a difference.

I tried dhcp and a static IP.

I got it working on VMware Fusion. Are the courses dependent on vitualbox?

@rileytpacheco after booting your VM, log in with root and run ifconfig.
Check if the interface has an IP, and more important: if this IP looks like the IP from your laptop. The main characteristic of bridged networks is this.

Regards,
Vitor Jr.
KodeKloud Support

It never gets an address in bridged mode. NAT gets an address. So does Host-Only Adapter. For some reason, bridged mode never gets an address.

I appreciate the help, Vitor.

@rileytpacheco, have you tried enabling the promiscuous mode, like here:

image

Try selecting the option that says “Allow all”.

Regards,
Vitor Jr.
KodeKloud Support

I did try that and it did not work.

I switched the bridging to a wired connection and it works now. There must be some issue bridging to WiFi that I am unaware of. Maybe authentication?

Thanks again.