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 Requesting help with Eth0 issue on Raspbian Jessie
  • 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 Suggested Answer
  • Replies 17 replies
  • Answers 3 answers
  • Subscribers 676 subscribers
  • Views 5527 views
  • Users 0 members are here
  • internet
  • eth0
  • raspberry_pi_space
  • raspberry pi 3
  • raspbian jessie
Related

Requesting help with Eth0 issue on Raspbian Jessie

philbert213
philbert213 over 8 years ago

Good evening,

 

This has been an issue that has bothered me for quite a while now. I'm trying to set up my raspberry pi 3 to work via ethernet at my workplace, but it does not seem to work. However, on any windows machine that I have, I get issued an IP address and connect to the internet just fine. The other interesting fact is that if I connect to my work internet via wifi, it has no issue whatsoever. The problem with that is that I am not always within range of using the access point.

 

I tried to be as detailed as possible in getting all the information needed in order to help me resolve my issue:

 

cat /etc/issue

 

Raspbian GNU/Linux 8 \n \l

 

ifconfig

 

eth0      Link encap:Ethernet  HWaddr b8:27:eb:7c:21:2b 

          inet addr:192.168.5.147  Bcast:192.168.5.255  Mask:255.255.255.0

          inet6 addr: fe80::5456:bf59:aaa2:1ce6/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:696 errors:0 dropped:39 overruns:0 frame:0

          TX packets:70 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000

          RX bytes:56494 (55.1 KiB)  TX bytes:7748 (7.5 KiB)

 

 

lo        Link encap:Local Loopback 

          inet addr:127.0.0.1  Mask:255.0.0.0

          inet6 addr: ::1/128 Scope:Host

          UP LOOPBACK RUNNING  MTU:65536  Metric:1

          RX packets:216 errors:0 dropped:0 overruns:0 frame:0

          TX packets:216 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1

          RX bytes:18060 (17.6 KiB)  TX bytes:18060 (17.6 KiB)

 

iwconfig

 

wlan0     IEEE 802.11bgn  ESSID:off/any 

          Mode:Managed  Access Point: Not-Associated  

          Retry short limit:7   RTS thr:off   Fragment thr:off

          Power Management:on

         

lo        no wireless extensions.

 

 

eth0      no wireless extensions.

 

route -n

 

Kernel IP routing table

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface

0.0.0.0         192.168.5.1     0.0.0.0         UG    202    0        0 eth0

192.168.5.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0

 

/etc/network/interfaces

 

auto lo

iface lo inet loopback

 

 

iface eth0 inet manual

 

 

allow-hotplug wlan0

iface wlan0 inet manual

    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

 

 

allow-hotplug wlan1

iface wlan1 inet manual

    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

 

/etc/resolv.conf

 

nameserver 192.168.5.2

 

 

 

I will be forever thankful if anyone can guide me in the right direction. Thanks!

  • Sign in to reply
  • Cancel
Parents
  • rachaelp
    0 rachaelp over 8 years ago

    Hi Phillip,

     

    You have an IP address assigned for eth0 above. I take it this is not a valid IP for your work network as you mention it working via dhcp and assigning an IP address for the wireless? If this is the case, take a look at /etc/dhcpcd.conf and see how that's configured. Is it set up to give you a static IP address for your home network?

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • philbert213
    0 philbert213 over 8 years ago in reply to rachaelp

    I took a look into my /etc/dhcpcd.conf and this is what I get:

     

    # A sample configuration for dhcpcd.

    # See dhcpcd.conf(5) for details.

     

     

    # Allow users of this group to interact with dhcpcd via the control socket.

    #controlgroup wheel

     

     

    # Inform the DHCP server of our hostname for DDNS.

    hostname

     

     

    # Use the hardware address of the interface for the Client ID.

    clientid

    # or

    # Use the same DUID + IAID as set in DHCPv6 for DHCPv4 ClientID as per RFC4361.

    #duid

     

     

    # Persist interface configuration when dhcpcd exits.

    persistent

     

     

    # Rapid commit support.

    # Safe to enable by default because it requires the equivalent option set

    # on the server to actually work.

    option rapid_commit

     

     

    # A list of options to request from the DHCP server.

    option domain_name_servers, domain_name, domain_search, host_name

    option classless_static_routes

    # Most distributions have NTP support.

    option ntp_servers

    # Respect the network MTU.

    # Some interface drivers reset when changing the MTU so disabled by default.

    #option interface_mtu

     

     

    # A ServerID is required by RFC2131.

    require dhcp_server_identifier

     

     

    # Generate Stable Private IPv6 Addresses instead of hardware based ones

    slaac private

     

     

    # A hook script is provided to lookup the hostname if not set by the DHCP

    # server, but it should not be run by default.

    nohook lookup-hostname

    I'm not exactly sure what it is that could be out of place here.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • rachaelp
    0 rachaelp over 8 years ago in reply to philbert213

    Hi Phillip,

     

    *** UPDATE: Subsequent information in a post below leads me to think this isn't now relevant as it appears to be getting an IP address from DHCP in the correct range ***

     

    I've not seen this issue on my Pi and to be honest haven't used it for a while so I am not 100% sure what I am about to suggest is going to work. However it should be easily reversible if you make backups for files before changing them. Basically my idea is to stop dhcpcd from being involved in eth0 and set up eth0 in /etc/network/interfaces to do dhcp in the normal way. But I am not sure if something else is going on in your configuration as you currently have an IP address on eth0 and I am not sure where this has come from.

     

    In your /etc/dhcpcd.conf file add the following line:

     

    denyinterfaces eth0

     

    In your /etc/network/interfaces file change the eth0 section to look like the following:

     

    auto eth0
    iface eth0 inet dhcp

     

    Best Regards,

     

    Rachael

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • rachaelp
    0 rachaelp over 8 years ago in reply to philbert213

    Hi Phillip,

     

    *** UPDATE: Subsequent information in a post below leads me to think this isn't now relevant as it appears to be getting an IP address from DHCP in the correct range ***

     

    I've not seen this issue on my Pi and to be honest haven't used it for a while so I am not 100% sure what I am about to suggest is going to work. However it should be easily reversible if you make backups for files before changing them. Basically my idea is to stop dhcpcd from being involved in eth0 and set up eth0 in /etc/network/interfaces to do dhcp in the normal way. But I am not sure if something else is going on in your configuration as you currently have an IP address on eth0 and I am not sure where this has come from.

     

    In your /etc/dhcpcd.conf file add the following line:

     

    denyinterfaces eth0

     

    In your /etc/network/interfaces file change the eth0 section to look like the following:

     

    auto eth0
    iface eth0 inet dhcp

     

    Best Regards,

     

    Rachael

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