莱因电博

Li-e.cn

Li Internet Electronic Blog
@rss

修改Linux系统网卡名称为“eth”

Modify the Linux system network adapter name to ’eth'

————————————————————

编辑文件:sudo vi /etc/default/grub

找到: GRUB_CMDLINE_LINUX=""

修改为:GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

更新到GRUB:sudo update-grub

(C) 2019 - 2024 Li-e.cn莱因电博(立网电子博客) | Powered by Vercel , based on Hugo with Gists theme.