How to Set Up Network Bridging with Cinnamon Desktop on Linux Mint

We will walk you through the steps to set up network bridging on Linux Mint using both the command line and graphical user interface (GUI).

Network bridging is a useful technique that allows multiple network interfaces to communicate as if they were on the same physical network. This is particularly beneficial when setting up virtual machines, sharing an internet connection, or extending a network. Linux Mint, with its Cinnamon desktop environment, provides a robust way to configure network bridging.

In this guide, we will walk you through the steps to set up network bridging on Linux Mint using both the command line and graphical user interface (GUI). Whether you are a beginner or an advanced Linux user, this guide will help you create a functional network bridge.

Understanding Network Bridging

A network bridge acts as a virtual switch that connects multiple network interfaces, allowing devices to communicate seamlessly. It differs from network bonding, which is primarily used for redundancy and increased bandwidth. A common use case for a network bridge is setting up a virtual machine that needs direct access to the host’s network.

Prerequisites

Before setting up a network bridge, ensure you have:

  • Linux Mint (preferably the latest stable version) installed
  • Administrative (root) privileges
  • At least two network interfaces (one can be a virtual network interface)
  • Basic knowledge of Linux terminal commands (optional but useful)

Method 1: Setting Up Network Bridging via the Command Line

Using the terminal to create a network bridge provides flexibility and ensures a deeper understanding of network configurations. Follow these steps:

Step 1: Install the Required Packages

Before creating a bridge, install the necessary packages by running the following command:

sudo apt update && sudo apt install bridge-utils net-tools

bridge-utils provides essential tools for managing network bridges.

Step 2: Identify Network Interfaces

To identify available network interfaces, run:

ip link show

or

ifconfig -a

Note down the names of the interfaces you want to include in the bridge, such as eth0 and eth1.

Step 3: Create a Network Bridge

Use the following command to create a bridge named br0:

sudo ip link add name br0 type bridge

Now, add network interfaces to the bridge:

sudo ip link set eth0 master br0
sudo ip link set eth1 master br0

Activate the bridge:

sudo ip link set br0 up

Step 4: Configure Bridge Networking

Edit the network configuration file using a text editor like Nano:

sudo nano /etc/network/interfaces

Add the following configuration:

auto br0
iface br0 inet dhcp
    bridge_ports eth0 eth1

Save the file (Ctrl + X, then Y, and Enter). Restart networking services:

sudo systemctl restart networking

Step 5: Verify the Bridge

Check if the bridge is active:

ip a show br0

or

brctl show

If configured correctly, br0 should be listed with assigned network interfaces.

Method 2: Setting Up Network Bridging via the GUI (Cinnamon Desktop)

For users who prefer a graphical approach, Linux Mint’s Cinnamon desktop offers an easy way to configure a network bridge.

Step 1: Open Network Manager

  1. Click on the Network Manager icon in the system tray.
  2. Select Network Settings to open the network configuration tool.

Step 2: Create a New Bridge Connection

  1. Click on the + button to add a new network connection.
  2. Select Bridge as the connection type.
  3. Click Create.

Step 3: Configure the Bridge

  1. In the Bridge Settings, assign a name (e.g., br0).
  2. Under Bridged Connections, click Add and select the interfaces to bridge (e.g., eth0, eth1).
  3. Choose Automatic (DHCP) or manually assign an IP address.

Step 4: Apply and Activate

  1. Click Save and close the window.
  2. In the Network Settings panel, select the bridge connection and click Connect.
  3. Restart the network service if necessary:
sudo systemctl restart NetworkManager

Step 5: Verify the Bridge

To confirm that the bridge is working, run:

ip a show br0

or check the network status via Network Manager.

Troubleshooting Common Issues

Bridge Not Assigning an IP Address

If the bridge does not receive an IP address, restart the networking service:

sudo systemctl restart networking

or manually assign an IP address:

sudo ip addr add 192.168.1.100/24 dev br0

No Internet Access on Bridged Interfaces

Ensure that the interfaces are correctly assigned to the bridge and not configured separately:

brctl show

Also, check if the firewall is blocking traffic:

sudo ufw disable

Network Manager Conflicts

If Network Manager interferes with the bridge configuration, disable it temporarily:

sudo systemctl stop NetworkManager

and restart after configuration.

Conclusion

Setting up network bridging on Linux Mint with the Cinnamon desktop is a straightforward process whether you choose the command line or GUI approach. Network bridges are particularly useful for virtual machines, advanced networking configurations, and extending connectivity. By following this guide, you can successfully configure a bridge and ensure seamless communication between network interfaces.

For advanced users, additional customization options such as VLAN tagging and static IP configurations can further enhance network bridging functionalities. If you encounter issues, checking system logs (sudo journalctl -xe) can provide insights into network errors.

With your network bridge set up, you’re now ready to optimize your networking capabilities on Linux Mint!