craigmayhew
Posts: 3
Joined: Sun Feb 03, 2013 10:37 am

How to add second ethernet port?

Sat Apr 11, 2015 4:15 pm

I would like to use the raspberry pi as a router and firewall. This is mainly due to the raspberrypi using a fraction of the power of most routers. The wan connection would be ethernet and the lan connection would also need to be ethernet. Can anyone suggest or recommend a good breakout board (or some other alternative) that would allow me to add a second ethernet port?

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to add second ethernet port?

Sat Apr 11, 2015 4:18 pm

You can use a ENC28J60 on the SPI interface, but it's probably easier and better and faster and more reliable to buy a USB gigabit ethernet adapter.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
mahjongg
Forum Moderator
Forum Moderator
Posts: 13092
Joined: Sun Mar 11, 2012 12:19 am
Location: South Holland, The Netherlands

Re: How to add second ethernet port?

Sat Apr 11, 2015 4:40 pm

I like the Microchips SPI ethernet solution, its great for embedded microcontrollers, but perhaps less so for systems that can already handle USB2. The one advantage would be not to overuse the single USB2 connection over which all communication must flow. Microchip offers excellent support, including a complete ethernet stack in source code.

But why the gigabit adapter, any cheap USB 10/100 base-T ethernet adapter would handle it just as well, using 1000 base-T doesn't make much sense when connected through USB2, and the other ethernet port being 10/100 Base-T, as it would offer no speed advantage at all. Unless the gigabit adapter would do extensive cacheing, making up for the limited up USB2 pipe, is that why you recommend it? I think a 10/100 base-T adapter would do that much as well.

User avatar
DougieLawson
Posts: 39120
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: How to add second ethernet port?

Sat Apr 11, 2015 4:55 pm

I'd choose the USB ethernet on a 2B.
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

User avatar
mikronauts
Posts: 2783
Joined: Sat Jan 05, 2013 7:28 pm
Contact: Website

Re: How to add second ethernet port?

Sat Apr 11, 2015 11:09 pm

While testing the Raspberry Pi 2, I was able to get significantly higher iperf results using a Linksys USB3.0 Gigabit Ethernet adapter than the on-board 10/100 Ethernet

http://www.mikronauts.com/raspberry-pi/ ... -review/6/

The improvement using the Gig-E adapter was significant when I was benchmarking the RPi 2 for NAS uses

http://www.mikronauts.com/raspberry-pi/ ... t-howto/3/
mahjongg wrote:I like the Microchips SPI ethernet solution, its great for embedded microcontrollers, but perhaps less so for systems that can already handle USB2. The one advantage would be not to overuse the single USB2 connection over which all communication must flow. Microchip offers excellent support, including a complete ethernet stack in source code.

But why the gigabit adapter, any cheap USB 10/100 base-T ethernet adapter would handle it just as well, using 1000 base-T doesn't make much sense when connected through USB2, and the other ethernet port being 10/100 Base-T, as it would offer no speed advantage at all. Unless the gigabit adapter would do extensive cacheing, making up for the limited up USB2 pipe, is that why you recommend it? I think a 10/100 base-T adapter would do that much as well.
http://Mikronauts.com - home of EZasPi, RoboPi, Pi Rtc Dio and Pi Jumper @Mikronauts on Twitter
Advanced Robotics, I/O expansion and prototyping boards for the Raspberry Pi

User avatar
allfox
Posts: 452
Joined: Sat Jun 22, 2013 1:36 pm
Location: Guang Dong, China

Re: How to add second ethernet port?

Sun Apr 12, 2015 5:21 pm

DougieLawson wrote:You can use a ENC28J60 on the SPI interface, but it's probably easier and better and faster and more reliable to buy a USB gigabit ethernet adapter.
Wow, I didn't know SPI at all.

ENC28J60 is a 10M Ethernet chip, I see there is ENC624J600 which is 100M.

Great, found something interesting.

Return to “General discussion”