From Fedora Project Wiki
Line 71: Line 71:
mac-address=52:54:00:8e:93:da
mac-address=52:54:00:8e:93:da
</pre>
</pre>
Bug reports:
* [https://bugzilla.gnome.org/show_bug.cgi?id=696936  bridge/bond: duplicate interface name in keyfile configuration]


==== The 'ifcfg' way ====
==== The 'ifcfg' way ====

Revision as of 21:31, 1 April 2013

Using iproute2 (runtime)

Example configuration:

master=bridge0
slave=eth0

Create a bridge:

ip link add $master type bridge

Enslave an ethernet device:

ip link set $slave master $master

Release an ethernet device:

ip link set $slave nomaster

Remove a bridge:

ip link delete $master

Using NetworkManager (permanent)

NOTE: This is not yet supported in Fedora. This page merely documents configurations which could be tested when NetworkManager stops explicitly ignoring Bridge configurations.

NetworkManager is getting support for bridging. It is not yet in the master branch (as of 2012-06-14) and it doesn't yet work for me (pavlix) but I believe it's time to have some testing configuration to work with. It may not work for you, so feel free to modify this page when bridging support is generally available.

Tracker: https://bugzilla.gnome.org/show_bug.cgi?id=546197

The 'keyfile' way

Bridge:

[connection]
id=Bridge
uuid=fc61f6e5-8900-4c6f-915c-eb55714eb874
interface-name=br0
type=bridge
autoconnect=false

[bridge]
interface-name=br0

Slave:

[connection]
id=Slave
uuid=2e1906b1-92a4-4206-b2d3-eecfd07241e9
type=802-3-ethernet
master=fc61f6e5-8900-4c6f-915c-eb55714eb874
slave-type=bridge

[802-3-ethernet]
mac-address=52:54:00:8e:93:da

Bug reports:

The 'ifcfg' way

ifcfg-Bridge:

UUID=fc61f6e5-8900-4c6f-915c-eb55714eb874
TYPE=bridge
DEVICE=br0

ifcfg-Slave:

UUID=2e1906b1-92a4-4206-b2d3-eecfd07241e9
TYPE=Ethernet
HWADDR=52:54:00:8e:93:da
BRIDGE=br0