(Created page with "=== Using iproute2 (runtime) === Create a bridge: <pre> master=bridge0 ip link add $device type bridge </pre> Enslave an ethernet device: <pre> slave=eth0 ip link set $sla...") |
|||
Line 1: | Line 1: | ||
=== Using iproute2 (runtime) === | === Using iproute2 (runtime) === | ||
Example configuration: | |||
<pre> | |||
master=bridge0 | |||
slave=eth0 | |||
</pre> | |||
Create a bridge: | Create a bridge: | ||
<pre> | <pre> | ||
ip link add $device type bridge | ip link add $device type bridge | ||
</pre> | </pre> | ||
Line 11: | Line 17: | ||
<pre> | <pre> | ||
ip link set $slave master $master | ip link set $slave master $master | ||
</pre> | </pre> |
Revision as of 09:35, 13 December 2012
Using iproute2 (runtime)
Example configuration:
master=bridge0 slave=eth0
Create a bridge:
ip link add $device type bridge
Enslave an ethernet device:
ip link set $slave master $master
Remove an ethernet device:
ip link set $slave nomaster
Remove a bridge:
ip link delete $master
Using NetworkManager
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 type=bridge [bridge] interface-name=br0
Slave:
[connection] id=Slave uuid=2e1906b1-92a4-4206-b2d3-eecfd07241e9 type=802-3-ethernet [802-3-ethernet] mac-address=52:54:00:8e:93:da slave-type=bridge master=br0
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