I flashed the img ubuntu-16.04-preinstalled-server-armhf+raspi3.img.xz onto an sd card and boot it up on an Raspberry Pi 3 Model B. Since I'm doing this headlessly, I have to connect it through ssh. Anyway, I want to run the server through wlan, so I did a bit of research online and edited /etc/network/interfaces. This is what it looks like:
auto lo iface lo inet loopback auto eth0 allow-hotplug eth0 iface eth0 inet dhcp auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 192.168.1.135 netmask 255.255.255.0 gateway 192.168.1.1 wpa-essid "somessid" wpa-psk "somekey"
As soon as I removed the LAN cable, i get Destination Host Unreachable when I try to ping both IP. Sometimes, it doesn't even work if I plug the LAN cable back on. I'm new to both Ubuntu Server and Raspberry Pi and I know this has been asked a lot but I haven't been able to get it done (believe me, this is the 9th time that I flash my sd card.) Thank you for your help.