Modify the network card under Linux name wlp3s0 ubuntu16

Recently found that using ifconfig command under linux ubuntu display card names are wlp3s0 such strange names, access to information, why not eth0, wlan0 these simple naming and use wlp3s0 this complex name primarily to reduce enumeration card (), but when I see these names are really boring, so would like to modify a lot of the internet, said the following instructions to modify:

sudo ip link set wlp3s0 down

sudo ip link set wlp3s0 name wlan0

sudo ip link set wlan0 up

This changed the name of the card is wlan0, but after the restart, you will find the name has changed back, and just modify the network will not have access to the complete name, so this modification is not feasible

We need alternative options, hard to find online, find a way to solve the

 

Open the / etc / default / grub file

Find GRUB_CMDLINE_LINUX = ""
changed GRUB_CMDLINE_LINUX = "net.ifnames = 0 biosdevname = 0"
and then sudo grub-mkconfig -o /boot/grub/grub.cfg

After the restart, the card will become a familiar name eth0 and wlan0

 

After I have considered the mac address and name of the NIC binding, or often a combination of the two front and rear boot, the card name and mac address has been changed

This blog describes a method for binding

https://www.wandouip.com/t5i78375/

This approach may be effective for ubuntu, but I come in raspberry invalid pro-test, and may cause the system could not land.

 

Raspberries come in there talking about how to modify the blog

https://blog.csdn.net/qq_26800875/article/details/82696937

I tried it, seemingly still not ok

 

 

Guess you like

Origin blog.csdn.net/Lin_QC/article/details/90751979