Create a static network configuration in linux - /etc/network/interfaces
Here we explain how to create a static network configuration in Linux. This is then immediately fixed again after a reboot.
Here we explain how to create a static network configuration in Linux. This is then immediately fixed again after a reboot.
In many cases, a DHCP server is sufficient to distribute IP addresses in the network. But just as often a fixed IP address is assumed on the network interface. Here is a simple network configuration example to set a fixed IP address on a specific interface.
## Edit the file
nano /etc/network/interfaces
## Change the network config to your choise network configuration
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 192.168.10.10
netmask 255.255.255.0
gateway 192.168.10.1
dns-nameservers 8.8.8.8 1.1.1.1
## Edit the file
nano /etc/network/interfaces
## Change the network config to your choise network configuration
auto eth0
allow-hotplug eth0
iface eth0 inet6 static
address 2001:dc8::daaa:beaf/64
gateway 2001:dc8::dead:1
The DynDNS service of IPv64.net is free of charge and usable in all common routers and systems.
You have the choice between many different domain names.
The IPv64.net Healthchecks monitor your services, servers and endpoints. Receive notifications when your services fail.
This monitoring service is free with all features.
Registration with IPv64 is free of charge and immediately available for you.
Raspberry Pi 4 Modell B, 8GB RAM ~ 78.50 € Show me | |
Ubiquiti UniFi G4 Bullet (UVC-G4-BULLET) ~ 172.49 € Show me |