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= NETMASK= DNS2= GATEWAY= DNS1= IPV6INIT=no USERCTL=no PREFIX=26
Note: you will need to disable Network Manger for this to work properly.
Leave A Reply
All content licensed under the Creative Commons License