2024-11-29 21:40:33 +01:00
|
|
|
# Schritte zum konfigurieren
|
|
|
|
|
|
|
|
## Statische IP
|
|
|
|
|
2024-11-29 21:42:20 +01:00
|
|
|
nano /etc/network/interfaces
|
2024-11-29 21:40:33 +01:00
|
|
|
```
|
|
|
|
iface eth0 inet static
|
|
|
|
address 192.168.1.2
|
|
|
|
netmask 255.255.255.0
|
|
|
|
gateway 192.168.1.1
|
2024-11-29 21:45:39 +01:00
|
|
|
dns-nameservers 1.1.1.1 1.0.0.1
|
2024-11-29 21:40:33 +01:00
|
|
|
```
|
2024-11-29 21:45:39 +01:00
|
|
|
systemctl restart networking
|
2024-11-29 21:42:20 +01:00
|
|
|
|
2024-11-29 21:45:39 +01:00
|
|
|
## 2te Adresse
|
|
|
|
```auto ens192:1
|
|
|
|
allow-hotplug ens192:1
|
|
|
|
iface ens192:1 inet static
|
|
|
|
address 10.0.0.3/24
|
|
|
|
```
|
|
|
|
systemctl restart networking
|
2024-11-29 21:42:20 +01:00
|
|
|
|
2024-11-29 21:45:39 +01:00
|
|
|
## DNS
|
2024-11-29 21:42:20 +01:00
|
|
|
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
|
|
|
|
```
|
2024-11-29 21:49:54 +01:00
|
|
|
|
|
|
|
## manuell mal schnell IP adresse setzen
|
|
|
|
```
|
|
|
|
ip addr add 203.0.113.3/24 dev ens192
|
|
|
|
```
|