Statische IP eintragen

Aus Roebke Wiki
Version vom 21. Oktober 2021, 08:18 Uhr von Daniel (Diskussion | Beiträge) (1 Version importiert)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Zur Navigation springen Zur Suche springen

In "/etc/network/interfaces" wird die statische Adresse eingetragen, vorher sichern

cp /etc/network/interfaces /etc/network/interfaces.bak
nano /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback interface
auto lo
iface lo inet loopback
# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
auto eth0
iface eth0 inet static
      #set your static IP below
      address 192.168.178.18
      #set your default gateway IP here
      gateway 192.168.178.1
      netmask 255.255.255.0
      network 192.168.178.0
      broadcast 192.168.178.255