修改Debian11网卡名称为eth格式
in Linux with 0 comment
修改Debian11网卡名称为eth格式
in Linux with 0 comment

Symptom

Debian 11网卡名称不是eth0格式

Cause

不知道,没了解过

Solution

sed -i 's/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"net.ifnames=0\ biosdevname=0\"/g' /etc/default/grub
sed -i 's/ens192/eth0/g' /etc/network/interfaces
update-grub
reboot
The article has been posted for too long and comments have been automatically closed.