ifup/down has been deprecated for a few releases. Use the ip commands.
Ubuntu Server has been using netplan for ip/network configs since 17.10. That is the expected method on 20.04 server.
netplan config files go into /etc/netplan/. To get wired DHCP working,
Code:
network:
version: 2
renderer: networkd
ethernets:
enxcxxyyzzaabb:
dhcp4: true
dhcp6: false
This is a yaml file, so indentation is absolutely critical. Get that wrong and it won't work. Change the enxcxx... to be your ethernet device.
Then:
Code:
sudo netplan generate
sudo netplan apply --debug
Static ip setup is a little different.
Bookmarks