5 replies
Jul '18

AutoPublisher

Horses Mouth

In your blog for Static IP is a working one one can follow. Only problem is ONE very crucial piece of info is missing or command i.e

# ifup eth0

Pls add so network card automatically on with static IPs under /etc/network/interfaces.d/eth0

Jul '18

AutoPublisher

Dan

You wrote dns-nameservers … dns-nameserver

Jul '18

AutoPublisher

Fer

Hi, thanks for the post.
I would love to know how /etc/dhcpcd.conf influences this kind of interfaces configuration.
In case everything is set up in dhcpcd.conf, is interfaces file even needed?
What is the proper and recommended way of setting both static/dhcp interfaces for both eth and wireless interfaces?

Jul '18

AutoPublisher

Michael Jordan

Should be noted that Debian 9 with system.d uses “Predictable Interface Names,” and so my ethernet was not “eth0,” but rather “enp3s0,” which I found by calling the command “ip a” and finding it in there.

Furthermore, my /etc/networking/interfaces file had no entry for it; only the loopback. Manually adding the “allow-hotplug enp3s0” entry in it, and then creating a separate file in interfaces.d for the rest (as mentioned in this article), did the trick after a reboot.

1 reply
Jul '18 ▶ AutoPublisher

AutoPublisher

Raul Odria -> Michael Jordan

You can to modify file /etc/default/grub and add or modify the line GRUB_CMDLINE_LINUX like this:

GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

This return the names iface eth0, eth1, wlan0 etc…