1

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

alia
  • 11
  • 1
  • 5

1 Answers1

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

Milliways
  • 62,573
  • 32
  • 113
  • 225