1

I'm on a school network (dorm) with a predefined ip address, gateway address, DNS, and mask.

DEFAULT CONFIGURATION

  1. I've burned Raspbian to a SD card.
  2. connected the Raspberry Pi to the wall with an ethernet cable.
  3. opened putty and inserted the ip address given to me by the school and.

Nothing happened... timeout.

Next

  1. opened the SD card on the PC and added to the cmdline.txt ip=147.27.4.108

  2. I then put the SD card in the Raspberry Pi and successfully connected to it through my PC. (Raspberry Pi connected to the wall and not directly to the PC)

THE PROBLEM IS NOW IT WONT UPDATE-UPGRADE

enter image description here

So I altered the /etc/network/interfaces

Looks like this but without the comments! I then retried with the comments. I was always able to connect to it with putty in all cases. but the Raspberry won't connect to the outside world.

enter image description here

Also, after configuring the interfaces I removed the ip=... form the cmdline.txt. Same problem as I first stated at the beginning.

What am I missing here??

Also the Ethernet socket works just fine.

3 Answers3

1

If you're on the latest raspbian release, then you will edit the file /etc/dhcpcd.conf to configure a static address. The sample config has the lines # commented out, just insert what you need. Leave the /etc/network/interfaces/ COMPLETELY ALONE. It screws with dhcpcd service.

bilkel
  • 21
  • 2
0

You don't specify which OS you are using but assuming Raspbian.

What you appear to have done appears to be based on old tutorials.

See How do I set up networking/WiFi/Static IP

I am surprise the school would have "given" you a static address. This is a nightmare for network maintainers.

Is there any reason you are not using DHCP?

Milliways
  • 62,573
  • 32
  • 113
  • 225
0

You need to add before your line iface eth0 inet static a line with auto eth0.

Don't forget to put you DNS in /etc/resolv.conf file. Two lines with this nomenclature:

nameserver 8.8.8.8 -> where 8.8.8.8 is the ip of the DNS servers you want to use (8.8.8.8 is a Google DNS and is valid if you want to use it, you can put as secondary 8.8.4.4).

OscarAkaElvis
  • 235
  • 1
  • 4
  • 14