Configure bridged networking
With bridged networking, VirtualBox uses a device driver called net filter on the host system that filters data from the host’s physical network adapter. net filter helps VirtualBox translate data from a physical network and inject data into it. It actually creates a software network interface. By using this software adapter, the host sends data to the guest and receives data from it. This means it acts as a bridge between the host and the guest VM. This interface can be used for routing between the guest VM and the network. In this mode, just like the host, each guest VM can access the physical network. It can access any external services, such as NTP, DNS, and so on.
Here is how you can configure bridged networking for an existing virtual machine in VirtualBox:
Select the virtual machine from the Oracle VM VirtualBox Manager and click Settings:
On the Network tab, check Enable Network Adapter and select Attached to: Bridged Adapter
Click OK to save the changes.