Create and Use Network Bridge on Arch Linux|Manjaro

  1. brctl tool from bridge-utils package.
  2. netctl tool
  3. ip tool from iproute2 package.
  4. Using NetworkManager.

Step 1: Install Bridge tools

sudo pacman -S bridge-utils netctl

Step 2: Create Bridge:

sudo vim /etc/netctl/kvm-bridge
Description="Bridge Interface br10 : eno1,tap0"

Interface=br10

Connection=bridge

BindsToInterfaces=(eno1 tap0)

IP=static

Address='192.168.1.105/24'

Gateway='192.168.1.1'

DNS='192.168.1.1'

MACAddressOf=eno1



## Ignore (R)STP and immediately activate the bridge

SkipForwardingDelay=yes
SkipNoCarrier=yes
Description="Bridge Interface br10 : eno1,tap0"

Interface=br10

Connection=bridge

BindsToInterfaces=(eno1 tap0)

IP=dhcp

# If you want also for DHCPv6,uncomment below line

#IP6=dhcp
Description="Bridge Interface br10 : eno1,tap0"

Interface=br10

Connection=bridge

BindsToInterfaces=(eno1 tap0)

IP=no

ExecUpPost="ip link set dev br0 address $(cat /sys/class/net/eno1/address); IP=dhcp; ip_set"

ExecDownPre="IP=dhcp"

Step 3: Remove the ip of interface added to the bridge; eno1

set IP=no
  1. Launch Network Manager application by going to All settings > Network > Interface Name
  2. Click on settings for your interface, mine is eno1
  3. Then go to Reset
  4. click on Forget

Step 4: Start Bridge on Arch | Manjaro

sudo netctl start kvm-bridge

Step 5: Set profile to start when computer boots

sudo netctl enable kvm-bridge
sudo netctl reenable kvm-bridge
  • Brctl command can be used to see bridges configured in the system
$ sudo brctl show

bridge name bridge id STP enabled interfaces

br10 8000.a01d48fad8df no eno1

virbr0 8000.5254007baa03 yes virbr0-nic
  • To see bridged interfaces:
$ sudo bridge link

2: eno1 state UP : mtu 1500 master br10 state forwarding priority 32 cost 19

5: virbr0-nic state DOWN : mtu 1500 master virbr0 state disabled priority 32 cost 100

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
ComputingPost

ComputingPost

ComputingPost — Linux Howtos, Tutorials, Guides, News, Tips and Tricks.