31 lines
612 B
Markdown
31 lines
612 B
Markdown
# Schritte zum konfigurieren
|
|
|
|
## Statische IP
|
|
|
|
nano /etc/network/interfaces
|
|
```
|
|
iface eth0 inet static
|
|
address 192.168.1.2
|
|
netmask 255.255.255.0
|
|
gateway 192.168.1.1
|
|
dns-nameservers 1.1.1.1 1.0.0.1
|
|
```
|
|
systemctl restart networking
|
|
|
|
## 2te Adresse
|
|
```auto ens192:1
|
|
allow-hotplug ens192:1
|
|
iface ens192:1 inet static
|
|
address 10.0.0.3/24
|
|
```
|
|
systemctl restart networking
|
|
|
|
## DNS
|
|
nano /etc/resolv.conf
|
|
```
|
|
domain meinedomain.local # Kann ausgelassen werden
|
|
search meinedomain.local # Kann ausgelassen werden
|
|
nameserver 192.168.250.1 # Lokaler DNS Server
|
|
nameserver 8.8.8.8 # Google Public DNS Server
|
|
```
|