When working with IP configuration, it's important that you know which device name to use.
In old Linux, network device names were simple.
They were named according to the Type of network device eth0wlan0
for instance, for an ethernet network or the wireless network.
On modern Linux, network devices are named according to their physical location in the
computer and its name is created based on help of the network driver.
Now, in case you are wondering why was that needed? Well, that was needed because eth0, eth1, eth2,
eth3 and so on was kind of hard to relate to physical network cards on a computer.
And that is why we have BIOS devnames as we call it.
BIOS dev name uses device names that reveal information about the physical location.
The systemd UDEFD program generates the network device names and
that might look like EM123 which stands for Ethernet motherboard
followed by a port number on that hardware motherboard.
You can also have names like P0P1 for
the PCI bus and the PCI slot.
And you can have Eno123 for the Ethernet on board.
Now, if the driver doesn't reveal sufficient information, eth0 and so on is used.
Best advice that I can give you, just use IP link show
to figure out what you are using. Let's do that once again.
So IP link is showing that I have ENS160.
It also has an old name and that is ENP2S0.
So the ENP2S0 is the physical location and ENS160 is the alternate name.
Just remember about this that these names are never fixed and you need to
figure out which network card name is used on your system to configure accordingly.