Change the name of the network card to eth or wlan.
Function introduction
The naming format of the traditional version of the network card is: eth[0 123…], and the new version adds the naming specifications of network devices, such as b'osdevname specification, net. Fnames specification:
Net. Fnames specification: equipment type+equipment location+number.
For example:
Eno 1 onboard 1 network card.
Port 2 of enp0s2 PC expansion card
Ens33 hot plug slot 3 port PC'-E slot 3
Port 0 of wlp3s0 PC expansion card
Project users want to continue to use the traditional naming standard for network cards, that is, they need to change the name of network cards to eth or wlan.
Modification steps
1 First, modify the relevant parameters in the /etc/default/grub configuration file, and disable the specifications of b'osdevname and net. Name:
Add a net. Grub _ cmdl 'ne _ l 'nux _ default = "fnames after SQL ash qu 'et = 0 b 'osdevname = 0.
Or add a net. Fnames=0 b'osdevname=0 is in the middle of GRUB_CMDL'NE_L'NUX= "".
The wireless network card name format is WLAN+ number.
The format of network card name is eth+ number.
After the modification is completed, use the command to check whether the modification is successful.
uos@XXX:~$ cat /etc/default/grub
Modified screenshot
2. After updating the grub configuration, restarting the computer will take effect:
1.update-grub
Step 2 restart