Adding a bridge in Fedora - plembo/onemoretech GitHub Wiki

#Adding a Bridge in Fedora 23 There are two ways to add a bridge interface in Fedora 23: using Network Manager or the traditional network service.

###Traditional method Until recently Network Manager did not provide good support for bridge interfaces, and so the only way to add one was to disable NetworkManager and configure the appropriate scripts under /etc/sysconfig/network-scripts.

The steps are as follows:

  1. Backup all existing ifcfg scripts under /etc/sysconfig/network-scripts, as well as /etc/resolv.conf and /etc/hosts.

  2. Stop and disable NetworkManager.

systemctl stop NetworkManager
systemctl disable NetworkManager
  1. Modify the existing script for the hardware interface (usually eth0) so it looks like this:
TYPE=Ethernet
NAME=eth0
UUID=000000000-0000-0000-000000000
DEVICE=eth0
HWADDR=00:00:00:00:00:00
ONBOOT=yes
BRIDGE=br0
DEFROUTE=yes
NM_CONTROLLED=no

Use the real interface UUID and MAC address for UUID and HWADDR, respectively.

  1. Create a new /etc/sysconfig/network-scripts/ifcfg-br0 script that looks like this:
DEVICE=br0
STP=yes
TYPE=Bridge
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=br0
UUID=00000000-0000-0000-000000000
ONBOOT=yes
BRIDGING_OPTS=priority=32768
IPADDR=192.168.xxx.xxx
PREFIX=24
GATEWAY=192.168.xxx.xxx
DNS1=192.168.xxx.xxx
DOMAIN=example.com
PEERDNS=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
NM_CONTROLLED=no

To generate a new UUID for this device, use the uuidgen tool:

uuidgen ifcfg-br0
  1. Edit /etc/sysconfig/network-scripts/ifcfg-lo to add the line:
NM_CONTROLLED=no
  1. Enable and start the network service:
systemctl enable network
systemctl start network
  1. Reboot the system.

Copyright 2004-2019 Phil Lembo

⚠️ **GitHub.com Fallback** ⚠️