/etc/netplan/00-installer-config.yaml

micnorden

New Member
Ahoi... habe mir einen neuen Server geleistet und versuche gerade dieses Tutorial anzuwenden: https://www.howtoforge.com/tutorial/ubuntu-20.04-focal-fossa-server/
wenn ich den File: /etc/netplan/00-installer-config.yaml bearbeite geht sofort der Server down...

das ist der Inhalt vom originalen File nach der automatischen Installation von Ubuntu 20.x
Code:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s20f0:
      dhcp4: yes

Dann ergänze ich den File mit meinen Daten:
Code:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
  version: 2
  renderer: networkd
  ethernets:
    enp0s20f0:
      dhcp4: no
      dhcp6: no
      addresses: [51.15.x.xxx/32]
      gateway4: 51.15.x.x
      nameservers:
        addresses: [199.167.66.107,104.37.178.107,199.167.66.108,104.37.178.108]

Code:
netplan generate
funktioniert noch aber sobald ich:
Code:
netplan apply
eingebe ist der server down und ich kann von vorne starten...

was mache ich falsch???
 

micnorden

New Member
Code:
addresses: [51.15.x.xxx/24]
das funktioniert... dann läuft auch:
Code:
sudo netplan generate
sudo netplan apply
aber dann habe ich:
Code:
root@AMS-588847:/home/cyberspace# apt update && apt upgrade
Err:1 http://mirrors.online.net/ubuntu focal InRelease                   
  Temporary failure resolving 'mirrors.online.net'
Err:2 http://security.ubuntu.com/ubuntu focal-security InRelease         
  Temporary failure resolving 'security.ubuntu.com'
Err:3 http://mirrors.online.net/ubuntu focal-updates InRelease
  Temporary failure resolving 'mirrors.online.net'
Err:4 http://mirrors.online.net/ubuntu focal-backports InRelease
  Temporary failure resolving 'mirrors.online.net'
Reading package lists... Done
Building dependency tree       
Reading state information... Done
All packages are up to date.
W: Failed to fetch http://mirrors.online.net/ubuntu/dists/focal/InRelease  Temporary failure resolving 'mirrors.online.net'
W: Failed to fetch http://mirrors.online.net/ubuntu/dists/focal-updates/InRelease  Temporary failure resolving 'mirrors.online.net'
W: Failed to fetch http://mirrors.online.net/ubuntu/dists/focal-backports/InRelease  Temporary failure resolving 'mirrors.online.net'
W: Failed to fetch http://security.ubuntu.com/ubuntu/dists/focal-security/InRelease  Temporary failure resolving 'security.ubuntu.com'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

oder bei ISPConfig

Code:
root@AMS-588847:/home/cyberspace# wget -O - https://get.ispconfig.org | sh -s -- --use-ftp-ports=40110-40210 --unattended-upgrades
--2024-03-03 15:59:39--  https://get.ispconfig.org/
Resolving get.ispconfig.org (get.ispconfig.org)... failed: Temporary failure in name resolution.
wget: unable to resolve host address ‘get.ispconfig.org’
 

nowayback

Well-Known Member
vermutlich hast du vergessen, die routen anzugeben...
routes:
- to: 0.0.0.0/0 #Standardroute für IPv4
via: gateway4IP
 

micnorden

New Member
Ahoi habe das jetzt hin bekommen:
Code:
      nameservers:
        addresses: [199.167.66.107,104.37.178.107,199.167.66.108,104.37.178.108]
nachdem ich die Nameserver von EuroDNS gelöscht habe:
Code:
     nameservers:
       addresses: [8.8.8.8,8.8.4.4]
und die 2 freien Nameserver von Google eingesetzt habe läuft das...
 

Werbung

Top