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 12229 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 12 years ago

    Sorry to say but the performance is going to suck a bit either via  SPI or  USB, either way  you are going to end up sharing buses.

    Most SPI Ethernet chips already have drivers but you may have to compile them for the RPI  ( Probably still too much hassle!!!)

     

    A novel approach is to maybe use VLANs and a couple of virtual network interfaces on the PI but this requires an infrastructure that supports VLAN tagging etc.

     

    Probably the most obvious is something like the picture below where you get a cheap EBAY USB hub that's powered and bung some cheap USB-Ethernet adapters on it. This one has a DM9601 chipset and I'm sure I've had it on the PI and should work OK  if not a quick driver download will sort you out  ...Take the easy way out ....Good luck!

    image

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

    I have a question on this setup - does it work?

     

    Essentially I'm trying to connect two pi's to one pi. So I put a couple of USB-Ethernet adapters on a USB 3.0 hub and connected the hub to the master pi. I always see that only one of the child pi's can ping the master pi. The master pi shows IP addresses for both the Ethernets. And funnily, only the one that is able to ping the master pi can see both interfaces on the master pi i.e. able to ping interfaces - even though only one interface is directly connected to each child pi. . the other child pi seems to have an IP address but is completely blocked off. From running netstat on the master pi, I see an even more funny thing - when the pi that cannot ping the master pi is trying the ping to the master pi - the master PI seems to receive the packets on the right interface - but seems to be responding on the the other Ethernet interface! And so the ping fails!

     

    I tried with a USB host tethering cable and see the same issue - when one more than 1 cable is connected. Has anyone seen this? Some issue with the pi? Some configuration?

     

    Of course, I can use an external switch and connect them up. But thats too bulky/heavy/ugly for my application and ideally I would like to connect them up "internally" like this. Ideally IF I can have a USB-USB network connection.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 10 years ago in reply to Former Member
    Shreesh  The good thing about Linux is that it allows you to debug these problems and work to a solution. You're almost there. What you have determined is that everything works, but that the routing to the "not working pi" is not correct.

     

    If you type:

    sudo route add -host <ip-of-not-working-pi> eth<number of the correct interface>

    you'll have it working in less than a second. :-)

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • Former Member
    Former Member over 10 years ago in reply to rew

    Roger,

    That was amazing! It just works now:)

    It took me two seconds to type it in though...! But great tip. Now I can return these USB-Ethernet and do it with the host transfer cables directly. Sweet!

    Thanks again,

    Shreesh

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • Former Member
    Former Member over 10 years ago in reply to rew

    Roger,

    That was amazing! It just works now:)

    It took me two seconds to type it in though...! But great tip. Now I can return these USB-Ethernet and do it with the host transfer cables directly. Sweet!

    Thanks again,

    Shreesh

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
Children
No Data
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