0

I use a Raspberry Pi Zero W with Raspbian Stretch Lite 2017.11.29. I set up a SSH connection from my laptop to the Pi via USB to configure it.

Now I just do ssh pi@raspberrypi.local on my Ubuntu 17.10 laptop to connect to the Pi. Everything works fine!

Since I want a wireless adapter with a static IP address I added the following to the file /etc/network/interfaces

auto wlan0
iface wlan0 inet static

    address 192.168.255.1

    netmask 255.255.255.0

    wireless-mode Master

    wireless-power off

After doing that I can no longer access my Pi via SSH. My computer also does not find my Pi anymore if I connect it via USB. What can I do to make it work again?

Help of any kind would be highly appreciated.

Gilfoyle
  • 111
  • 4

1 Answers1

3

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.

It is unclear from your question whether you are trying to setup the WiFi as an Access Point, or to access a network. If the latter your settings are wrong/incomplete; if the former additional software is required.

The following describes How to set up Static IP Address

Milliways
  • 62,573
  • 32
  • 113
  • 225