Fedora Linux Support Community & Resources Center
Old 18th November 2009, 02:22 PM
pow216 Offline
Registered User
Join Date: Feb 2009
Posts: 7
Network Bridging Question - 2nd NIC installed

Hello I have Fedora 10 x64 running my NAS box and it's great.

I had a gigabit NIC connected from my NAS to my router and a gigabit NIC connected from my desktop to the router. The problem is my router is only 100mb so transfer rate was slower than it could be.

I figured cheapest way to improve things was to add my spare 10/100 NIC to the NAS and connect that NIC to the router and connect the gigabit NIC to the desktop. I then need to bridge the connections on the NAS so the desktop can see the internet and get IP via DHCP.

I have not been successful in doing this on boot, however I have found the following commands in this order achieve what I want:-

ifdown eth0
ifdown eth1
brctl addbr bridge0
brctl addif bridge0 eth0
brctl addif bridge0 eth1
ifconfig bridge0
route add default gw
ifconfig eth0 up
ifconfig eth1 up
dhclient bridge0

Is this the right way?
How do I best make a permanent bridge - i.e. on boot?

Please help.
Thanks a lot.

Last edited by pow216; 18th November 2009 at 02:24 PM.
Reply With Quote
Old 18th November 2009, 04:44 PM
cazo Offline
Registered User
Join Date: Sep 2005
Location: Redneck Riviera
Posts: 388
You should be able to put the commands in /etc/rc.d/rc.local, but I read (somewhere, can't find the link right off) about a more elegant (to me) solution:

You add a line like:

to /etc/sysconfig/networking/devices/ifcfg-eth0 and /etc/sysconfig/networking/devices/ifcfg-eth1. In addition, create one called /etc/sysconfig/networking/devices/ifcfg-bridge0 (or whatever you want to call the bridge) with something like:


# static address

# dynamic address (dhcp)

The dynamic section, commented out, shows how to set it up with a dynamic route instead of static, in case you want to let the router give an address to the NAS.

Finally, create a /etc/sysconfig/static-routes file with:
any: net netmask dev lo
any: net default gateway bridge0
I think I made all the name & address changes (in bold) needed.

You should be able to use service network stop, make the changes, then service network start for testing, instead of actually having to reboot. I believe most of the info can be found in /usr/share/doc/initscripts-8.95/sysconfig.txt, but it's a bit cryptic.

I should also point out that the above is from my old Fedora 4 system (an old system I use as a light server for a small LAN). The bridge comes up automatically after reboots (usually power interruptions). Of course, you also need the bridge-utils package (and the ebtables package might be useful).

I haven't tried the same set-up on a more recent version of Fedora.

Edit: I'm not sure if it will make a difference, but I think those files should be in /etc/sysconfig/network-scripts/ instead of /etc/sysconfig/networking/devices/.

Last edited by cazo; 18th November 2009 at 07:33 PM. Reason: clarifications
Reply With Quote

2nd, bridging, installed, network, nic, question

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
bridging network adapters to share internet fakie_flip Servers & Networking 22 4th February 2008 07:31 AM
SMB installed, but don't see Windows Network lehoanq Using Fedora 5 19th December 2007 01:03 PM
How is network bridging for Xen handled in F7? creiter Servers & Networking 2 6th June 2007 05:23 PM
[Question] How to let yum know about installed library? configer Using Fedora 2 31st July 2006 07:55 PM
Win4LIn: Installed or not installed? That is the question... penguinguy Using Fedora 0 7th October 2005 04:10 PM

Current GMT-time: 21:35 (Monday, 21-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat