Technology and General Blog

VirtualBox is one of the well-liked virtualization platforms from Oracle Corporation. With VirtualBox, we can run many functioning methods at the same time. We do not have to have to mess up with our key Host OS. It has a lot of powerful networking features to established up any preferred configuration. There are 6 networking modes supported in VirtualBox, specifically:

  1. Not Connected (network card is present, but the cable is unplugged).
  2. NAT (Network Deal with Translation)
  3. NAT Services
  4. Bridged Networking
  5. Interior Networking
  6. Host-only Networking
  7. Generic Networking

What will we address?

This information will discover how we can configure Bridged networking method in a VirtualBox virtual device. We will use Ubuntu 20.04 VM running inside of Oracle VirtualBox. We will test the connectivity with the ‘ping’ command. Permit us initial understand the principle and performing of Bridged networking method.

VirtualBox Bridged Networking Manner

NAT or Community Handle Translation is the default networking manner of any new VM within VirtualBox. The downside with this mode is that other devices (together with the Host) and VMs on the network cannot entry the guest VM and the outside the house world-wide-web, and the Host can access chosen services on the VM only making use of port forwarding. To get over this limitation, a bridged networking manner was released.

In the Bridged networking method of VirtualBox, a gadget driver termed ‘net filter’ is made use of on the Host device. This driver filters the facts from the actual physical adapter of the Host. By utilizing this driver, VirtualBox usually takes information from the actual physical network and also inserts it into it. This also makes a new community interface in software program. When we attach this application interface to a virtual equipment, it seems to the Host equipment as if the digital equipment is physically connected to the interface via a cable. Knowledge can be despatched from the Host to the virtual device working with this interface. In this way, a route or a bridged network has been established up amongst the digital machine and the network to which the Host equipment is connected.

All the devices connected to your LAN can talk with your virtual equipment as if it is a different device on the Lan. This VM can entry all services on the community in the identical way as any other device on the Lan.

Enabling Bridged Networking Method


To empower Bridged networking method in VirtualBox, follow the below ways:

Move 1. From the left pane of the VirtualBox primary window, pick the virtual device from the list. Suitable-click on the virtual machine’s name and pick the option ‘Settings’ or find the ‘Settings’ icon from the correct pane.

Action 2. In the new pop-up window, pick the label corresponding to ‘Network.’

Stage 3. On the correct pane, underneath Adapter 1 tab:

1. Test to mark the ‘Enable Community Adapter’ option:

2. Underneath the ’Attached to’ label, decide on the ‘Bridged Adapter’ choice from the drop-down menu.

3. From the fall-down menu with the label ‘Name,’ find the network’s title (wlo1 in our case). Preserve configurations and exit.

Phase 4. Now launch your digital machine and verify the IP of the interface. You can use the ‘ip a’ command for this

In my scenario, the energetic connection on the Host is a wireless link connected to the unit ‘wlo1’. The DHCP server’s IP tackle presented to my Host equipment is on a /24 (255.255.255.) community. The IP tackle of the Ubuntu VM is, which is in the identical community variety as that of the Host equipment.

Screening the Bridged Manner Connectivity

To verify if the digital equipment is accessible above the LAN, we can use the ping command. A further way is to install the Apache webserver on the virtual machine and access the index.html web page from yet another machine on the LAN. We will use the ping method as it is a rapid one particular:

We can see that a profitable ping response is coming from the Host equipment.

Distinctive Use Scenario of Bridged Networking Method

Bridged networking method is notably beneficial when working with multi-device situations. E.g., when mastering the Checkpoint firewall for community safety, I wanted to operate with a few VMs for a Firewall server, a administration server, and a examination equipment, respectively. I was working on a notebook with 8GB RAM. When I experimented with to set up the situation for distributed deployment by offering every digital equipment 2GB RAM, my Host method started hanging. This overall performance degradation occurred because of to inadequate RAM on my Host process. To make the circumstance do the job easily, I mounted VirtualBox on my Desktop Computer system and produced a Firewall server VM. I put the Administration digital device and the take a look at digital equipment on the notebook. To connect Firewall VM with the administration server VM (jogging on the laptop), I attached both of them with a bridged interface. Now equally of them bought IP addresses from my property routers and ended up communicating extremely very easily. This assisted me minimize the RAM use on my Host technique and made every little thing sail smoothly.

Strengths of Bridged manner

1. Digital devices can be very easily accessed over LAN with no the have to have to configure NAT (Community Tackle Translation) or Port Forwarding.

2. Virtual machine will get its personal IP deal with from the DHCP server.

3. Suited for production environments.

Down sides of Bridged method

1. If also lots of VMs or other devices are attached to the community, the DHCP server may well operate out of IP address area or at least may well not be ready to allocate a static IP you want.

2. If there are a number of NICs on the Host equipment, switching them will involve you to reconfigure your community configuration each individual time.


VirtualBox is a quite straightforward-to-use however impressive resource to establish and exam distinctive networking scenarios. A good comprehending of VirtualBox’s several attributes can assist create various configurations and scenarios for tests right before deployment.

Leave a Reply

Your email address will not be published. Required fields are marked *