I installed Ubuntu 18.04 using the alternate server installer. During the installation no network interfaces were detected.
I could not figure out how to setup networking (neither ethernet nor wifi). For wired networking I have to use a usb Type-C adapter (Dell XPS 15).
Moreover, ifup/ifdown are not installed. How can I configure the network? I eventually want to install the Ubuntu-desktop. The reason I went with the alternate installer is because I wanted more control on the partitioning than the standard installer allows.
In /etc/network/interfaces
I had added:
auto eth0
iface eth0 inet dhcp
auto wlp2s0
wpa-ssid <essid>
wpa-psk <pass>
ip add show
shows:
1: lo <LOOPBACK,UP,LOWER_UP> mtu ##### qdisq noqueue state UKNOWN group default qlen 1000
link/loopbac 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet <ip> scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host lo
valid_lft forever preferred_lft forever
2: wlp2so: <BROADCAST,MULTICAST> mtu #### qdisc noop state DOWN group default qlen 1000
link/ether <mac> brd <brd>
cat /etc/netplan/*.yaml
outputs:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
systemctl status systemd-networkd
reports:
● systemd-networkd.service - Network Service
Loaded: loaded (/lib/systemd/system/systemd-networkd.service; disabled; vendor preset: enabled)
Active: inactive (dead)
Docs: man:systemd-networkd.service(8)
By the way lshw
shows:
network DISABLED
Networking in Ubuntu Server 18.04 and later is handled by netplan and no longer in /etc/network/interfaces. Please remove your additions to that file.
Please edit your /etc/netplan/01-netcfg.yaml file to read:
Please note that the access point name and password are enclosed in quotation marks. Also, netplan is very specific as to indentation and spacing. Please proofread carefully.
After saving the file, please do:
Reboot. Check to see if you connected. Do you have an IP address?
Are you connected?