Hetzner - DokuWiki

Cloud ISO Installation Gateway/en
(Ubuntu/Debian)
 
(8 dazwischenliegende Versionen von 3 Benutzern werden nicht angezeigt)
Zeile 1: Zeile 1:
 
{{Languages|Cloud_ISO_Installation_Gateway}}
 
{{Languages|Cloud_ISO_Installation_Gateway}}
  
= <span class="mw-headline" id="Cloud-ISO_Installation_Gateway_einrichten"><span dir="auto">Cloud-ISO installation - configure gateway</span></span> =
+
= Cloud-ISO installation - configure gateway =
  
 
The manual installation via ISO, will make some trouble with the automatic configuration via DHCP. A manual configuration via installer is not possible.
 
The manual installation via ISO, will make some trouble with the automatic configuration via DHCP. A manual configuration via installer is not possible.
  
== <span class="mw-headline" id="In_der_Installation"><span class="mw-headline" id="In_der_Installation">Installation</span></span> ==
+
== Installation ==
  
If you use a OS newer like Ubuntu 16:04 or Debian 9, then the interface name is called ens3.
+
If Ubuntu 16.04 (or newer) or Debian 9 is used, the interface name is ens3. If Ubuntu 14.04 or Debian 8 is used, the interface name is eth0.
<pre>$ ip a
+
 
$ ip r ad 172.31.1.1 dev ens3 # eth0 bei Debian 8 oder Ubuntu 14.04
+
To switch in a console, you'll have to press '''ALT''' + '''Right arrow'''.
$ ip r ad default via 172.31.1.1
+
<pre>$ ip address
 +
$ ip route add 172.31.1.1 dev ens3 # eth0 on Debian 8 or Ubuntu 14.04
 +
$ ip route add default via 172.31.1.1
 
</pre>
 
</pre>
== <span class="mw-headline" id="Nach_der_Installation"><span class="mw-headline" id="Nach_der_Installation">after the Installation</span></span> ==
 
  
=== <span class="mw-headline" id="Ubuntu.2FDebian"><span class="mw-headline" id="Ubuntu.2FDebian">Ubuntu/Debian</span></span> ===
+
When the commands are executed, you can switch back to the installation with '''ALT''' + '''Left arrow'''.
  
==== <span class="mw-headline" id="16.04_und_aufw.C3.A4rts"><span class="mw-headline" id="16.04_und_aufw.C3.A4rts">16.04 and newer</span></span> ====
+
== After the Installation ==
 +
 
 +
=== Ubuntu/Debian ===
 +
====Ubuntu 18.04====
 +
Ubuntu 18.04 use netplan which is different to the older configurations of Ubuntu.
 +
Edit the .yml file in the folder /etc/netplan/ :
 +
 
 +
network:
 +
  version: 2
 +
  renderer: networkd
 +
  ethernets:
 +
    ens3:
 +
      addresses:
 +
        - <IPv6-Adresse>::1/64
 +
      dhcp4: true
 +
      gateway6: fe80::1
 +
 
 +
==== 16.04 and newer ====
  
 
edit of /etc/network/interfaces
 
edit of /etc/network/interfaces
Zeile 22: Zeile 40:
 
iface ens3 inet dhcp
 
iface ens3 inet dhcp
 
iface ens3 inet6 static
 
iface ens3 inet6 static
     address
+
     address {{ your IPv6 address }}
 
     netmask 64
 
     netmask 64
 
     gateway fe80::1
 
     gateway fe80::1
 
</pre>
 
</pre>
==== <span class="mw-headline" id="14.04"><span class="mw-headline" id="14.04">14.04</span></span> ====
 
  
edit of&nbsp; /etc/network/interfaces
+
==== 14.04 ====
 +
 
 +
edit of /etc/network/interfaces
 
<pre>auto eth0
 
<pre>auto eth0
 
iface eth0 inet dhcp
 
iface eth0 inet dhcp
 
iface eth0 inet6 static
 
iface eth0 inet6 static
     address
+
     address {{ your IPv6 address }}
 
     netmask 64
 
     netmask 64
 
     gateway fe80::1
 
     gateway fe80::1
 
</pre>
 
</pre>
[[Category:Cloud]]
 
  
 +
[[Kategorie:Cloud]]
 
[[Kategorie:Hetzner Cloud]]
 
[[Kategorie:Hetzner Cloud]]

Aktuelle Version vom 3. Dezember 2018, 08:49 Uhr

Inhaltsverzeichnis

Cloud-ISO installation - configure gateway

The manual installation via ISO, will make some trouble with the automatic configuration via DHCP. A manual configuration via installer is not possible.

Installation

If Ubuntu 16.04 (or newer) or Debian 9 is used, the interface name is ens3. If Ubuntu 14.04 or Debian 8 is used, the interface name is eth0.

To switch in a console, you'll have to press ALT + Right arrow.

$ ip address
$ ip route add 172.31.1.1 dev ens3 # eth0 on Debian 8 or Ubuntu 14.04
$ ip route add default via 172.31.1.1

When the commands are executed, you can switch back to the installation with ALT + Left arrow.

After the Installation

Ubuntu/Debian

Ubuntu 18.04

Ubuntu 18.04 use netplan which is different to the older configurations of Ubuntu. Edit the .yml file in the folder /etc/netplan/ :

network:
  version: 2
  renderer: networkd
  ethernets:
    ens3:
      addresses:
        - <IPv6-Adresse>::1/64
      dhcp4: true
      gateway6: fe80::1

16.04 and newer

edit of /etc/network/interfaces

auto ens3
iface ens3 inet dhcp
iface ens3 inet6 static
    address {{ your IPv6 address }}
    netmask 64
    gateway fe80::1

14.04

edit of /etc/network/interfaces

auto eth0
iface eth0 inet dhcp
iface eth0 inet6 static
    address {{ your IPv6 address }}
    netmask 64
    gateway fe80::1


© 2020. Hetzner Online GmbH. Alle Rechte vorbehalten.