2023年8月23日 星期三

 Ubuntu has a mechanism, that is, the installed network card (NIC) will be renamed to another name when the system is booted. Although there is no difference in using it, it is just a little unaccustomed. After booting, we can observe the dmesg log as follows

dmesg | grep rename

You can see that the following network cards eth0 and eth1 have been renamed to ens160 and ens192:

[1.341871] vmxnet3 0000:03:00.0 ens160: renamed from eth0

[1.362582] vmxnet3 0000:0b:00.0 ens192: renamed from eth1

The method of closing is very simple, that is, edit the /etc/default/grub file and change the following parameters:

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

Update grub.cfg with the following command

sudo update-grub

change interface configure

/etc/network/interfaces

沒有留言:

 Ubuntu has a mechanism, that is, the installed network card (NIC) will be renamed to another name when the system is booted. Although there...