Guten Morgen,
Ich habe da ein kleines, ein großes oder vielleicht auch kein Problem ☺ Zumindest komme ich nicht weiter aber evtl. lässt sich die ein oder andere Lösung finden.
Auf Server 1 fande ich folgendes als Beispiel folgenden Inhalt.
#ifconfig -a eth0 Link encap:Ethernet HWaddr 00:50:56:96:a6:45 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:473771 errors:0 dropped:7879 overruns:0 frame:0 TX packets:102539 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:112205798 (112.2 MB) TX bytes:15703440 (15.7 MB) eth1 Link encap:Ethernet HWaddr 00:50:56:96:cc:cc BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) eth2 Link encap:Ethernet HWaddr 00:50:56:96:b3:46 BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:160 errors:0 dropped:0 overruns:0 frame:0 TX packets:160 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:11840 (11.8 KB) TX bytes:11840 (11.8 KB) #apt-get update #apt-get -y upgrade #apt-get -y install gcc g++ git make #nano /etc/network/interfaces dann erschien als Beispiel folgender Inhalt: # This file describes the network interfaces available on your system # and how to activate them. For more information, see interfaces(5). # The loopback network interface auto lo #iface lo inet loopback The primary network interface auto eth0 iface eth0 inet static address 185.82.22.101 netmask 255.255.255.0 gateway 185.82.22.1 dns-nameservers 62.149.128.4 62.149.132.4 iface eth0 inet6 static address 2a05:8b81:1000:180:0000:0002 netmask 64 gateway 2a05:8b81:1000::1 Auf Server 2 fande ich folgendes als Beispiel vor. #ifconfig -a lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:127.0.0.2 P-t-P:127.0.0.2 Bcast:0.0.0.0 Mask:255.255.255.255 inet6 addr: 2a05:8b81:1000:180::e6a2/64 Scope:Global UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 RX packets:29943 errors:0 dropped:0 overruns:0 frame:0 TX packets:31586 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:3623909 (3.6 MB) TX bytes:5076538 (5.0 MB) venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00 inet addr:185.82.22.101 P-t-P:185.82.22.101 Bcast:185.82.22.101 Mask:255.255.255.255 UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1 #apt-get update #apt-get -y upgrade #apt-get -y install gcc g++ git make #nano /etc/network/interfaces = -bash: nano: command not found #apt-get update #apt-get -y upgrade #apt-get -y install gcc g++ git make #apt-get -y install nano #apt-get -y install gcc g++ git make nano dann erschien als Beispiel folgender Inhalt: # This configuration file is auto-generated. # # WARNING: Do not edit this file, your changes will be lost. # Please create/edit /etc/network/interfaces.head and # /etc/network/interfaces.tail instead, their contents will be # inserted at the beginning and at the end of this file, respectively. # # NOTE: it is NOT guaranteed that the contents of /etc/network/interfaces.tail # will be at the very end of this file. # # Auto generated lo interface auto lo iface lo inet loopback # Auto generated venet0 interface auto venet0 iface venet0 inet manual up ifconfig venet0 up up ifconfig venet0 127.0.0.2 up route add default dev venet0 down route del default dev venet0 down ifconfig venet0 down iface venet0 inet6 manual up ifconfig venet0 add 2a05:8b81:1000:180::e6a2/64 down ifconfig venet0 del 2a05:8b81:1000:180::e6a2/64 up route -A inet6 add default dev venet0 down route -A inet6 del default dev venet0
Mein Anliegen ist es den selben Inhalt auch auf Server 2 zu erstellen/konfigurieren bzw. zu haben.
Ich muss dazu sagen ich nicht der fitteste in dem Gebiet bin. Darum bitte ich die Antworten möglichst für Anfänger zu formulieren. Sehr gerne nehme ich auch ein Tutorial entgegen. Da ich es hin und wieder doch mal gebrauchen könnte. Kann muss aber nicht umsonst sein 😉.
Vielen Dank und schönes Wochenende
Bearbeitet von sebix:
Bitte verwende in Zukunft Codeblöcke, um die Übersicht im Forum zu verbessern!