reinstall icon indicating copy to clipboard operation
reinstall copied to clipboard

debian12能否自定义网卡名称

Open joyoner opened this issue 6 months ago • 1 comments

debian12能否自定义网卡名称,习惯eth0了。

cat /etc/network/interfaces
auto lo
iface lo inet loopback

rename enp0s3=ens3
allow-hotplug ens3
iface ens3 inet dhcp
iface ens3 inet6 dhcp

可否直接修改为:

auto lo
iface lo inet loopback

rename enp0s3=eth0
allow-hotplug eth0
iface eth0 inet dhcp
iface eth0 inet6 dhcp

joyoner avatar Jul 30 '24 13:07 joyoner