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
  • 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 681 subscribers
  • Views 11083 views
  • Users 0 members are here
  • raspberry_pi
Related

Multiple Ethernet ports on the raspberry pi

Former Member
Former Member over 11 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
  • mconners
    mconners over 11 years ago

    There are modules like this.

     

     

    https://www.sparkfun.com/products/9473

     

    That is by no means the only one, they are SPI based, so you might be able to do what you want.

     

    Mike

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Cancel
  • rew
    rew over 11 years ago in reply to mconners

    I wouldn't recommend that adapter. IIRC that's one that will enable your microcontroller to talk 'ethernet' easily.

     

    Search for usb ethernet on ebay and you'll find sub-$5 modules that perform the task.

     

    When you specify that you need to keep at least two ports free for other stuff, I recommend that you get an USB HUB with a hefty powersupply (2.1A min, 2.5A recommended). Then use one port of the pi to connect to the extra Ethernet port, use the other to connect to the hub. With a bit of luck the pi will power up by being powered from the upstream port from the hub and you'll be left with 4 free ports. Otherwise you need to use one downstream port for powering the 'pi leaving you with only 3 free ports in the hub.

     

    The difficulty lies with the hub. If you by a cheap hub it will have the upstream and all downstream 5V lines connected together, able to be powered from the external powersupply. However, expensive ones may leave the upstream 5V disconnected and the downstream ports currentlimited at about 500mA (too little to power a 'pi). :-(

    (As I always buy the cheap stuff, I haven't seen that last possibilty myself. ;-)

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

    How do I go about connecting it to the pi?

    Is there any documentation for the pi that I should look at?

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

    Sorry, last comment regarding the Wiznet 5100.

    As for the hub suggestion I save it for last resort, unless someone can recommend a specific model.

     

    Thanks to both of you for answering

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

    As Mike mentions, it would likely connect to the SPI pins of the RPI header (SPI is a standard, so there is lots of information on it). However, these types of devices have their own stack, so the documentation that you'd also need to consult depends on the particular device you use. It would be a lot of software development effort to do what you're planning to do (NAS and router), and probably you'll be trailblazing so uncharted territory. But feasible.

    As Roger suggests, the alternative is to just plug in a USB network adapter. This is almost guaranteed to work if you have drivers and can sort out power considerations, hub, etc (some of this might not be trivial either).

    After all that though, I'm not sure it would be worth it. A dedicated NAS may cost about the same, and will perform way better, but I understand people may wish to do it for educational purposes.

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

    Well, you connect it to the SPI pins on the GPIO pins near the TV connector. Then you write a kernel-driver to talk to the chip and you're done!

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

    Well, you got me there... Writing a kernel driver is way beyond me current abilities...

     

    Guess I'll be sticking with plan B: the USB adapter.

     

    As for getting a commercial Nas,  the actual point is the router/firewall.

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

    The onboard Ethernet is on the USB bus. It's built into a USB hub chip that connects to the single USB host port on the BCM chip.

     

    You can get USB hubs with built-in Ethernet port. They probably use similar hub chips to the one on the Pi.

     

    There is no super fast data bus on the Pi to connect lots of high bandwith network ports to.

     

    The simplest option is probably to connect up a cheap Ethernet switch.

     

    If you main interest is in configuring your own router / firewall you might be better to get a standard router and put dd-wrt or similar on it. People use these things as internet radios and the like. Plenty of Ethernet ports and a USB host, probably a serial port in there somewhere too.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • mconners
    mconners over 11 years ago in reply to rew

    I agree the powered usb hub with an ethernet adapter would probably be the best solution. Writing an SPI based ethernet device driver would be a challenge. Probably doable, but a challenge nonetheless.

     

    Mike

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
  • johnbeetem
    johnbeetem over 11 years ago

    I don't know what the status of RasPi USB is nowadays, but early on there were fairly severe limits on how many USB devices you could attach and still get reliable operation.  I believe it was a limitation of the BCM2835 SoC, which has a rather limited USB controller.  The BCM2835 is a media processor designed a few USB devices and may not be able to support lots of Ethernet dongles and disk drives.  I don't know what RasPi operating systems are able to support today, but I suspect you'd be better off with a SoC that has native Ethernet (instead of through USB) and SATA.

    • Cancel
    • Vote Up +1 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 © 2025 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