I've just installed ubuntu server 17.10. During installation, it suggested me to connect to the network through wifi, and so i did. After installation was finished and system was rebooted, computer connected to the wifi automatically (which means, it saved the connection creds somewhere). But in /etc/network/interfaces i found nothing. I need my computer connect to wifi network with static ip, so I've put configuration into the /etc/network/interfaces:
# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)
# Generated by debian-installer.
# The loopback interface
auto lo
iface lo inet loopback
iface wlp2s0b1 inet static
wpa-driver wext
address 192.168.0.12
netmask 255.255.255.0
gateway 192.168.0.1
wpa-ssid *****
wpa-psk **********
dns-nameservers 8.8.8.8 192.168.0.1
auto wlp2s0b1
When system starts, it doesn't connect using my configuration. It does only after
sudo ifdown wlp2s0b1 && sudo ifup -v wlp2s0b1
and after this command, system getting a SECOND IP! Server is still available by the ip it gets from DHCP, and in the same time, it is available by the static ip!
cat /etc/network/interfaces. Welcome to Ask Ubuntu. – chili555 Nov 14 '17 at 21:16> Please edit your question to add the result of: cat /etc/network/interfaces.Done!
> Welcome to Ask Ubuntu.Thank you!
– lucius Nov 14 '17 at 21:43wpa-driver wextNext, do:sudo ifdown wlp2s0b1 && sudo ifup -v wlp2s0b1The -v for verbose should produce some clues as to what's going on or going wrong. Paste it here and give us the link: http://paste.ubuntu.com – chili555 Nov 14 '17 at 21:51wpa-driver wext– lucius Nov 14 '17 at 21:54sudo ifdown wlp2s0b1 && sudo ifup -v wlp2s0b1and then paste the output so we can see what's going wrong. Also, when it gets an IP address, presumably by DHCP, what is the address? – chili555 Nov 14 '17 at 21:59The address from DHCP is 192.168.0.21 (it's in range from 192.168.0.20-255 configured on router)
– lucius Nov 14 '17 at 22:04ps aux | grep -i -e network -e wicd– chili555 Nov 14 '17 at 22:48ls /etc/netplan? Possible clue: https://wiki.ubuntu.com/Netplan – chili555 Nov 14 '17 at 22:5801-netcfg.yaml; content: http://paste.ubuntu.com/25963779/ – lucius Nov 14 '17 at 23:09