How to get eth0 and wlan0 back on Ubuntu Mate 18.04?
Karl Auer
kauer at biplane.com.au
Thu Jan 28 08:31:14 UTC 2021
On Thu, 2021-01-28 at 09:06 +0100, Ralf Mardorf via ubuntu-users wrote:
> GRUB_CMDLINE_LINUX="resume=UUID=<long guid string>" "net.ifnames=0
> > biosdevname=0"
There may be an easier way, less intrusive.
Edit /etc/netplan/01-network-manager-all.yaml and make it look
something like this:
network:
version: 2
renderer: NetworkManager
ethernets:
eth0:
match:
macaddress: 00:2b:67:2d:21:ee
set-name: eth0
Add more stanzas for other interfaces you want to rename. And obviously
use the MAC addresses of your own interfaces!
Be aware that there are some (generally pretty obscure and unlikely)
situations where renamed interfaces can lead you up the garden path,
but for user-land operations and scripts, this works fine. I have not
had any issues.
It also won't help you if you are configuring your interfaces outside
netplan.
Full information about this is in "man netplan".
Regards, K.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Karl Auer (kauer at biplane.com.au)
http://www.biplane.com.au/kauer
GPG fingerprint: 2561 E9EC D868 E73C 8AF1 49CF EE50 4B1D CCA1 5170
Old fingerprint: 8D08 9CAA 649A AFEF E862 062A 2E97 42D4 A2A0 616D
More information about the ubuntu-users
mailing list