2

I am trying to get my pi 3B+ (stretch) back online but it does not work anymore. it was working until last week. plugging a windows PC on the same ethernet plug and using the same settings works. I cannot use dynamic IPs. the ethernet cable works, is not defective. /etc/network/interfaces was left unchanged, as often suggested while configuring a pi with stretch on a static IP configuration

here is my /etc/dchpcd.conf

profile static_eth0
static ip_address = 141.20.67.77/23
static routers=141.20.66.1
static domain_name_servers=141.20.1.3/31

fallback to static profile on eth0
interface wlan0
inform 141.20.67.77
static routers=141.20.66.1

interface eth0
fallback static_eth0
inform 141.20.67.77
static routers=141.20.66.1
  • 1
    "I cannot use dynamic IPs" - why not? What are you doing that prevents you from using them? Are you sure the router isn't trying to assign that IP to another device? Is it possible for you to set up the static IP in the router config rather than on the Pi? – NathanielJS Mar 28 at 12:16
  • So, you're saying you are assigned 512 public IPv4 addresses? – Jaromanda X Mar 28 at 12:44
  • If that is actually the contents of your /etc/dhcpcd.conf I am amazed it ever worked. What does ip a and ip r show? – Milliways Mar 29 at 0:58
  • @Nathaniel: becuase that is how the network is managed at my workplace. Jaromanda: I do not understand what you mean sorry :). Milliways: could you explain why it should not work and what would be the proper configuration? Thanks all – user879506 Mar 29 at 12:04
  • @user879506 That's fair enough. It may be worth mentioning this in the initial question as it greatly limits the solutions people can provide. Most large networks do not allow devices to be assigned static IP addresses, so it has probably assigned that address to another device. – NathanielJS Mar 31 at 14:23
0

Try to change your file, as described below:

nodhcp

interface eth0
static ip_address=192.168.0.222/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface wlan0
static ip_address=192.168.0.222/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

interface wlan1
static ip_address=192.168.0.2224/24
static routers=192.168.0.1
static domain_name_servers=192.168.0.1

Where

  • 192.168.0.222 - it's static IP-address.

  • 192.168.0.1 - IP-address of your router.

You should update this data related to your case!

if you have any questions, you can read full description here.

  • you're assuming the OP doesn't have a block of 512 public IP's that are part of a block of 65536 public IP's assigned to Humboldt University of Berlin (141.20.0.0 - 141.20.255.255) at his disposal – Jaromanda X Mar 28 at 12:49
  • I do not understand what you are saying here :) – user879506 Mar 29 at 12:06
  • @user879506, add at the end of the file /etc/dchpcd.conf changes, which I've written and update them related to your static IP and IP of the router. – Roman Mstislavov Mar 29 at 14:17

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.