Changing the name of the interface on eth0 enp3s0 in debian 9
Changing the name of the interface on eth0 enp3s0 in debian 9
The system debian 9 The default interface is not eth0 and enp3s0.
Interface Name is set during boot:
1 2 3 4 5 6 | r8169 0000:03:00.0 enp3s0: renamed from eth0 r8169 0000:03:00.0 enp3s0: link down r8169 0000:03:00.0 enp3s0: link down IPv6: ADDRCONF(NETDEV_UP): enp3s0: link is not ready r8169 0000:03:00.0 enp3s0: link up IPv6: ADDRCONF(NETDEV_CHANGE): enp3s0: link becomes ready |
We can very easily restore the old naming interface - just edit the file:
1 | nano /etc/default/grub |
And change:
1 | GRUB_CMDLINE_LINUX="" |
na:
1 | GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0" |
Then we generate a new configuration file thick:
1 | grub-mkconfig -o /boot/grub/grub.cfg |
and modify the configurations of network interface:
1 | nano /etc/network/interfaces |
changing the name from there on eth0 enp3s0.
actually works