All you have to do is replace eth0 with the new name for the interface. Your new /etc/network/interfaces file should look like such:shep wrote:Network interface naming changed with the full implementation of systemd in Debian 9.# The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 210.110.83.32
netmask 255.255.255.0
network 210.110.83.0
broadcast 210.110.83.255
gateway 210.110.83.1
dns-nameservers 202.30.44.11
From this Arch wiki:https://wiki.archlinux.org/index.php/Ne ... figuration
Network interfaces
For computers with multiple NICs, it is important to have fixed interface names. Many configuration problems are caused by interface name changing.
udev is responsible for assigning names to each device. Systemd uses Predictable Network Interface Names, which automatically assigns static names to network devices. Interfaces are now prefixed with en (wired/Ethernet), wl (wireless/WLAN), or ww (WWAN) followed by an automatically generated identifier, creating an entry such as enp0s25.
Get current interface names
Both wired and wireless interface names can be found via ls /sys/class/net or ip link
Code: Select all
# The primary network interface
allow-hotplug ens34
iface ens34 inet static
address 210.110.83.32
netmask 255.255.255.0
network 210.110.83.0
broadcast 210.110.83.255
gateway 210.110.83.1
dns-nameservers 202.30.44.11
This works because if you run
Code: Select all
ifconfig -a