bin456789 / reinstall

一键DD/重装脚本 (One-click reinstall OS on VPS)
GNU General Public License v3.0
2.88k stars 478 forks source link

debian12能否自定义网卡名称 #127

Closed joyoner closed 1 month ago

joyoner commented 3 months ago

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
bin456789 commented 3 months ago

试下就知道