Difference between revisions of "Bridge with netctl"

From ArchWiki
Jump to: navigation, search
m (The netcfg profile, bridge, requires the brctl command to bring up the bridge.)
m (Siot moved page Bridge with netcfg to Bridge with netctl: Netcfg has been superseded by netctl.)
(No difference)

Revision as of 07:37, 11 June 2013

A bridge is a piece of software used to unite two or more network segments. A bridge behaves like a virtual network switch, working transparently (the other machines don't need to know or care about its existance). Real devices (like eth ones) and virtual devices (like tap ones) can be connected to it.

This article explains how to create a bridge that contains at least a ethernet device. This is useful for things like the bridge mode of qemu, setting a software based access point, etc.


Install the netcfg package from the official repositories.


  • Load the bridge kernel module and configure it to be loaded at boot.

Read Kernel modules for more information.

  • Create a bridge called br0 to have, at least, your real Ethernet adapter (assuming eth0):

#Uncomment this fields as necessary if you are using a static ip instead

# Add your network adapter(s) here, separated by spaces.
If you are using an static ip, also edit /etc/resolv.conf as necessary.

Tips and Tricks

Manually adding/removing network devices

Install the bridge-utils package from the official repositories.

It provides brctl, to manipulate bridges. You can use it to add a device, like this:

# brctl addif br0 eth1

Read the manual for more info: man brctl