Networking/Bridging

From FedoraProject

< Networking(Difference between revisions)
Jump to: navigation, search
(Using iproute2 (runtime))
(The 'keyfile' way)
Line 50: Line 50:
 
id=Bridge
 
id=Bridge
 
uuid=fc61f6e5-8900-4c6f-915c-eb55714eb874
 
uuid=fc61f6e5-8900-4c6f-915c-eb55714eb874
 +
interface-name=br0
 
type=bridge
 
type=bridge
 +
autoconnect=false
  
 
[bridge]
 
[bridge]
Line 63: Line 65:
 
uuid=2e1906b1-92a4-4206-b2d3-eecfd07241e9
 
uuid=2e1906b1-92a4-4206-b2d3-eecfd07241e9
 
type=802-3-ethernet
 
type=802-3-ethernet
 +
master=fc61f6e5-8900-4c6f-915c-eb55714eb874
 +
slave-type=bridge
  
 
[802-3-ethernet]
 
[802-3-ethernet]
 
mac-address=52:54:00:8e:93:da
 
mac-address=52:54:00:8e:93:da
slave-type=bridge
 
master=br0
 
 
</pre>
 
</pre>
  

Revision as of 21:27, 1 April 2013

Contents

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

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