I use a Netbook with LAN and WLAN. On LAN I need a static IP for dev. On WLAN I dont can use a static IP because I am in different WLANs.

Here is my interfaces:

```
auto lo
iface lo inet loopback

auto enp1s0
iface enp1s0 inet static
address 192.168.178.202
netmask 255.255.255.0
gateway 192.168.178.1
dns-nameservers 192.168.178.1

auto wlp2s0
iface wlp2s0 inet dhcp

```

This config works for LAN, but I cant connect to any WLAN. If I comment everything out and restart the PC I can connect to every WLAN.

Where is my bug?