Setting a static IP in stretch has changed because the eth0 is replace by the new enx format. To set a static IP address for your network controller you now need to do the following steps:

First you need to know the interface name. Type this into your console:
ifconfig

This will list all network devices:

This is typically eth0, wlan0 but might now also be sth. like e.g.: enxb827ebdc0e3b instead of eth0. In my case it is eth0.

To now set a static IP address for eth0 edit /etc/dhcpcd.conf:
sudo nano /etc/dhcpcd.conf

There is already a section # Example static IP configuration: which allows you to configure a static IP address like this:

# Example static IP configuration:
interface eth0
static ip_address=192.168.27.29
#static ip6_address=fd51:42f8:caae:d92e::ff/64
static routers=192.168.27.1
static domain_name_servers=192.168.27.1 8.8.8.8 fd51:42f8:caae:d92e::1

Save your changes and restart the network services or restart:

sudo reboot

Hope this helps.

cheers.
Sebastian

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert