Setting Network Devices for a Web Server on Debian 9

debianroutingwlan

I'm trying to set up apache2 server on Debian 9. I'm using an laptop with Ralink network-card, witch was able to use eth0, at Debian 8, with looks more familiar for me. Since I update my system to 9 my network interface has changed and looks something like this:

Iface      MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg
enp37s0   1500        0      0      0 0             0      0      0      0 BMU
lo       65536      612      0      0 0           612      0      0      0 LRU
wlo1      1500    36736      0      1 0         20492      0      0      0 BMRU

and in the /etc/interfaces.d/setup file it's defined like:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp

What is the enp37s0? And why am I connected to the router with wlo1, not eth0?

My routing table:

Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
0.0.0.0         10.63.16.1      0.0.0.0         UG    600    0        0 wlo1
10.63.16.0      0.0.0.0         255.255.255.0   U     600    0        0 wlo1
169.254.0.0     0.0.0.0         255.255.0.0     U     1000   0        0 wlo1

Is that a proper configuration?

Best Answer

Please do see Chapter 2. What's new in Debian 9 from the Release Notes for Debian 9 (stretch), 64-bit PC

2.2.9. New method for naming network interfaces

The installer and newly installed systems will use a new standard naming scheme for network interfaces instead of eth0, eth1, etc. The old naming method suffered from enumeration race conditions that made it possible for interface names to change unexpectedly and is incompatible with mounting the root filesystem read-only. The new enumeration method relies on more sources of information, to produce a more repeatable outcome. It uses the firmware/BIOS provided index numbers and then tries PCI card slot numbers, producing names like ens0 or enp1s1 (ethernet) or wlp3s0 (wlan). USB devices, which can be added to the system at any time, will have names based upon their ethernet MAC addresses.

This change does not apply to upgrades of jessie systems; the naming will continue to be enforced by /etc/udev/rules.d/70-persistent-net.rules. For more information, see /usr/share/doc/udev/README.Debian.gz or the upstream documentation.

see also How can I show the old eth0 names and also rename network interfaces in debian 9 stretch?

I would advise you to take a bit of time to familiarize yourself with Debian 9 before upgrading Debian 8 to Debian 9 systems, and/or following recent documentation/tutorials as the changes under the hood are significant.

Related Question