element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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 Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • 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
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • 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 Raspberry Pi Zero Ethernet Problem
  • 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
  • State Verified Answer
  • Replies 32 replies
  • Answers 5 answers
  • Subscribers 666 subscribers
  • Views 5430 views
  • Users 0 members are here
  • ethernet
  • raspberry pi
Related

Raspberry Pi Zero Ethernet Problem

Former Member
Former Member over 9 years ago

I'm having trouble connecting my Raspberry Pi zero to ethernet.

 

I have a Raspberry Pi 3 and four Raspberry Pi zeros. I'm a grad student in mathematics and I do a whole lot of parallel computing. I'm trying to set these up as a cluster to test my distributed code before I send it up to the university's very expensive computing cluster. I bought a handful of uxcell ethernet to micro USB adapters that you can find here: Amazon.com: uxcell Micro USB to RJ45 Network Card Adapter Converter for Windows 98SE Me: Computers & Accessories

 

When I plug ethernet into the Pi zero using this cable, the Pi zero is not being assigned an IP address. Is this adapter incorrect? I was hoping to use these cheap adapters as the grad student stipend isn't exactly CEO pay image.  As an additional note, plugging the ethernet directly into the Pi 3 works fine. The Pi 3 instantly recognizes the ethernet and has no problem connecting to the network.

 

I have tried using ip link and dhcpcd to get the network going on the Pi Zeros, but i'm stuck as I can't get them to recognize the LAN. I'm also positive that it isn't an issue with the router as I have used multiple routers (at home and at the university) and neither has worked. Thank you in advance for your replies.

  • Sign in to reply
  • Cancel
Parents
  • clem57
    0 clem57 over 9 years ago

    Just a quick check is the otg  plugged to a powered hub with enough current? Mine was not because I needed more than 100 mA which was not provided as my picture setup showed.

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    Actually I am having a lot of trouble with my USB hub, and I'll be purchasing another one. However when I plug the ethernet into one of the Pi zero's ports and the power into the other, it still doesn't show up on the network. To be clear I plugged the ethernet straight from my router to the Pi zero and used the other port to power on the zero. With this setup I probed the network from my laptop and found no IP for the Raspberry Pi.

     

    That being said I wrote a little shell script to sleep 2m, then run the commands that you suggested I post the output of. Since I'm having trouble with the USB hub, I photographed the output of the three commands you suggested I try. They are as follows:

     

    imageimageimage

     

    A little unorthodox, I know, but it's the best I can think to do without the functional USB hub. Hopefully I'll have that new hub tomorrow or Monday.

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

    It looks like you've got a (most likely static) IP - 10.0.0.30.

    What is your /etc/network/interfaces file contents?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to Former Member

    I have the same chipset  as you do. Mine did not work until I had enough power(amps) > 100 mA. I used the inside micro for Ethernet and not the outside one(it is power only).

    Clem

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

    Okay I see what you mean about the ip address, however when I try to ssh into 10.0.0.30 from my laptop the connection times out, and when I probe the network to see all active IP addresses 10.0.0.30 doesn't appear. Here is my /etc/network/interfaces file:

     

    image

     

    I have tried running dhcpcd eth0 but that hasn't solved the problem.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    The power source shouldn't matter if I have the ethernet plugged straight into the Pi's inner usb port, correct? Thanks for trying the alternate method.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to Former Member

    Yes that is true, unless the power supply to the Raspberry Pi zero is nominal in current. Can you get the actual voltage/amperage in front of zero?

    Thanks,

    Clem

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 9 years ago in reply to clem57

    Yeah my power source is five volts and two amps.

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

    That is normal, because most likely your home network is something like 192.168.0.x or 192.168.1.x and you can't connect something with 10.0.0.x to it (assuming you're plugging into the switch-ports on the back of your router).

    Something else is setting this (your /etc/network/interfaces file is set up to allow this), what do you observe if you use the desktop GUI to access the wireless network settings?

     

    Also, by the way, this is quite an inefficient way to perform parallel processing (anything else would be cheaper, even a single Pi 3 with 4 x Pi 3 cores are cheaper than 4 x (Pi zero+USB-Eth+SDcard), and

    better performing, but I'm guessing there is reasons for it.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • clem57
    0 clem57 over 9 years ago in reply to shabaz

    He is trying to test distributed code out before moving to a bigger environment.

    Clem

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 9 years ago in reply to Former Member

    Out of interest, doesn't this set up cater for a manual interface setup?

    If you are just issuing a "dhcpd" then I would assume it uses this conf file to check  what it needs to do which isn't a lot.

    I would initially try forcing it using dhcpd<interface> ....."dhcpd eth0" in t his case

    if not use ifconfig to set up eth0 manually and put it on the same network as the working RPI then see if you can at least ping that !

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Problemchild
    0 Problemchild over 9 years ago in reply to shabaz

    Yes you are right Shabaz... That said if you want to do something like  this you would be better off spinning up a few VM's on your Laptop or what ever than getting all the Zeros involved and thus saving you the Networking costs if y  ou are trying to save cash

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Reply
  • Problemchild
    0 Problemchild over 9 years ago in reply to shabaz

    Yes you are right Shabaz... That said if you want to do something like  this you would be better off spinning up a few VM's on your Laptop or what ever than getting all the Zeros involved and thus saving you the Networking costs if y  ou are trying to save cash

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
Children
  • Former Member
    0 Former Member over 9 years ago in reply to Problemchild

    Yes the reason that I'm doing things this way is because I already had the raspberry Pi's laying around, and have gotten into a little trouble "wasting resources" on the university cluster with trying to test my distributed code. All I had to purchase that I didn't already own for this were the Ethernet to Micro USB connectors. This project won't be doing any real "hefty" computation, I'm just hoping to test code on it so I no longer upset the people who run my university's cluster.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • 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