element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
    About the element14 Community
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Japan
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      •  Vietnam
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Raspberry Pi
  • Products
  • More
Raspberry Pi
Raspberry Pi Forum Multiple Ethernet ports on the raspberry pi
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Raspberry Pi to participate - click to join for free!
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
Raspberry Pi Wishlist
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 25 replies
  • Subscribers 698 subscribers
  • Views 12224 views
  • Users 0 members are here
  • raspberry_pi
Related

Multiple Ethernet ports on the raspberry pi

Former Member
Former Member over 12 years ago

Hi all,

i'm interested in getting an additional Ethernet port hooked up to the raspberry pi.

the project is to create a home server (nas) and router from a raspberry pi, and I don't want wifi.

 

the final box should have both USB ports free for attaching multiple drives, or a drive and a printer(these are externally powered, not to be taken into account powerwise, the Ethernet port is the main issue).

the pi should be powered by an external power supply (although managing to power it from a pc's USB port will be awesome (using the console cable)

 

future upgrades might include replacing the second Ethernet port with an adsl modem or with a 3G modem.

 

i'm have experience with Linux. the electronics is the part I don't remember much.

 

I've searched and can't find an Ethernet add on board. I can't even find a USB Ethernet adapter.

I reckon it's because lack of interest though, and not cause it's not possible.

 

to make a long story short, is it at all possible?

 

thanks

  • Sign in to reply
  • Cancel
Parents
  • Problemchild
    Problemchild over 10 years ago

    Just use an USB to Ethernet stick via a powered HUB.

    Dont expect any particular level of performance of any of the posibble solutions as you are some what constrained on bandwidth on all the methods explained here and previously.

     

    I'm assuming you are trying to learn some networking skills rather than learning how to connect say an SPI ethernet device to the RPI.?!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Problemchild
    Problemchild over 10 years ago

    Just use an USB to Ethernet stick via a powered HUB.

    Dont expect any particular level of performance of any of the posibble solutions as you are some what constrained on bandwidth on all the methods explained here and previously.

     

    I'm assuming you are trying to learn some networking skills rather than learning how to connect say an SPI ethernet device to the RPI.?!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • Former Member
    Former Member over 10 years ago in reply to Problemchild

    @john - actually the problem was in trying with more than one USB-Ethernet on a HUB or directly on the pi. I did have a powered USB hub off which the USB ethernet was attached. To make them work one has to configure as Roger mentioned. And am working on a concept/project which is to build up a network of Pi's controlled by a master Pi. Essentially 6 pis controlled by a master pi. So the SPI approach would not work for this many PIs too? I understand the limitation of bandwidth with the USB approach. But it is a POC and we will eventually try and customize the PI I think. There is a space crunch too since it needs to be a compact unit. So will be going to the host transfer cable approach which anyway creates a network interface. But is much more compact. One thing I am not yet sure is with these many host transfer cables the power needs of these "powered" cables will be high and so may need a USB powered hub. If that is so, then I may as well use the USB ethernets. Basically trying to avoid another power plug. I already have one big power source to power all these pis - since the 6 pis have a 7" pi display attached too. Same issue with using an ethernet switch - its expensive, bulky, heavy and needs an external power source[where it will consume gobs of power too] - but may get the maximum performance since its not shared on the Pi - at least not all 6 are shared on a Pi then.

     

    I guess as a POC i want to connect them with the best compact way possible. Essentially need to run graphics off of the main pi. So  need a reasonable connection too!

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to Former Member

    FYI: The route option was proving very flaky in the end with multiple Ethernets. It would NOT just work with more than 2 ethernets. Had to be reconfigured everytime and still.

     

    But I did a simple "fix" - I created a bridge on the master controller linking all the required ethernet interfaces and it works everytime properly. So just in case anyone needs this:

    sudo apt-get install bridge-utils - for brctl

    sudo brctl addbr br0

    sudo brctl br0 eth1 eth2 eth3

    ifconfig eth1 0.0.0.0

    ifconfig eth2 0.0.0.0

    ifconfig eth2 0.0.0.0

    sudo ifconfig br0 up

     

    now br0 is the only visible interface and one can use the child pi's to ping the br0 address and it works reliably. Of course this is temporary i.e. it needs to be set up to be persistent across boots in /etc/network/interfaces I think. Will be trying that next. But hopefully this helps anyone else needing this.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • balearicdynamics
    balearicdynamics over 10 years ago in reply to Former Member

    Hi Shreesh,

     

    I hope the link to an article I wrote about the Ethernet / Wifi bridging on PI maybe useful for you: Meditech: Creating a Pi Bridge

     

    Enrico

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to balearicdynamics

    @enrico - Good article. Good pointer. I did not do the iptables step you have. I guess when I set the interfaces addresses to zero, the bridge handles the switching automatically. Interesting exercise could be to see performance difference between these two approaches since the iptables is another software step/jump. But it may be more "correct" in some ways since it uses the Linux routing infrastructure i.e. in the kernel. I think the difference will be there for large volumes of traffic I think if any. Will try your approach and see too. Performance is an issue due to what I need i.e.bridging across 6 interfaces.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2026 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube