Linux bridging ethernet interface

I needed to make a bridging interface for some KVM work I was working on. Here's how to make a bridge interface in Fedora. First you have to turn your raw eth0 interface into a bridge with a new interface (br0) that you create. Then you assign IP information to the new bridge interface either statically or via DHCP.

#/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes DELAY=0 BRIDGE=br0
#/etc/sysconfig/network-scripts/ifcfg-br0 DEVICE=br0 BOOTPROTO=none ONBOOT=yes TYPE=Bridge IPADDR=1.2.3.4 NETMASK=255.255.255.192 DNS2=65.182.224.50 GATEWAY=1.2.3.255 DNS1=65.182.224.40 IPV6INIT=no USERCTL=no PREFIX=26
Note: you will need to disable Network Manger for this to work properly.


Note: Replies will be formatted with PHP Markdown Extra syntax.

Name: Email (Not Required):
 
Logged IP: 3.140.186.189
To prevent spam please submit by clicking the kitten: