Warning: Undefined array key "action" in /home/bakers/html/entryreply.php on line 5

Warning: Undefined variable $output in /home/bakers/html/entryreply.php on line 50

Warning: Undefined array key "EntrySubject" in /home/bakers/html/entryreply.php on line 51

Warning: Undefined variable $logintext in /home/bakers/html/entryreply.php on line 97

Warning: Undefined variable $reply_name in /home/bakers/html/entryreply.php on line 103

Warning: Undefined variable $reply_email in /home/bakers/html/entryreply.php on line 104
Perturb.org - interesting technology related things from around the internet

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.227.235.216
To prevent spam please submit by clicking the kitten: