My raspberrypi is not connecting to internet.

I am trying to connect it to laptop internet through ethernet but its not working.

It shows following configuratoion error.

sudo ifdown eth0 && sudo ifup eth0

ifdown: interface eth0 not configured

SIOCADDRT: File exists

Failed to bring up eth0.

I have made following changes in interface and ifconfig output is also attached.

enter image description here enter image description here

  • The ifconfig output shows an IP address of In what sense are you not connected?
    – goldilocks
    Mar 30, 2018 at 13:01
  • I can't browse anything.
    – alia
    Mar 30, 2018 at 13:17
  • sudo ifdown eth0 && sudo ifup eth0 ifdown: interface eth0 not configured SIOCADDRT: File exists Failed to bring up eth0.
    – alia
    Mar 30, 2018 at 13:21
  • 1
    "I can't browse anything..." -> You need to be more explicit about the errors you receive. It does not say, "Sorry you can't browse anything", it says, (e.g.) "Connection refused" or "Network is unreachable". Those messages mean different things.
    – goldilocks
    Mar 30, 2018 at 14:43
  • The ifconfig output contradicts the ifup/down output. I presume they are from two different points in time; when that picture was taken, you were online. If you changed anything after that you might want to undo it.
    – goldilocks
    Mar 30, 2018 at 14:45

1 Answer 1


You obviously didn't read the contents of the interfaces file, before modifying it.

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf

See How to set up networking/WiFi which contains default files for Jessie and Stretch, although in Stretch the interfaces file does nothing and can be deleted.

The following describes How to set up Static IP Address

In addition there is NO POINT in including bash commands in interfaces

  • I am a very much beginner at using Pi. I was just going through some online asked questions/ tutorials and trying to connect internet. I don't want to give a static IP(It was just like try everything. Something will work at last). Can you please guide me in simple words?? Thing I want is: Connect an ethernet to pi and laptop Whatever wifi signals laptop is catching, connect pi to them. What changes should I do for it???
    – alia
    Mar 31, 2018 at 7:33
  • If you read the linked tutorial this outlines step by step how to setup. I keep this updated as the OS changes. If you have any specific question ask. I don't know what " Connect an ethernet to pi and laptop" means. The Pi, like most computers, is designed to connect to a router
    – Milliways
    Mar 31, 2018 at 7:46
  • I want to share my laptop internet with pi.
    – alia
    Mar 31, 2018 at 8:03
  • or I want to make a wifi connection. I can't connect pi to router through ethernet as it is not feasible for me.
    – alia
    Mar 31, 2018 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.