OpenVZ, Bridged Setup, Debian

Keksi

New Member
Nov 21, 2016
1
0
1
44
Hallöchen, ich frage hier mal nach, weil ich mir nicht weiter helfen zu weiß.

Ich hoffe, dass ich hier fragen kann, weil ich kein Proxmox nutze, sondern das alte OpenVZ mit den Openvz Kernel auf Debian 7.

Bisher lief alles problemlos, da die IP Adressen, welche ich von meinen Hoster zugewiesen bekommen habe, in einem Subnetz waren, sprich 89.163.xxx.xxx
Die neueste IP welche ich bekommen habe, ist aber in einen anderem (5.xxx.xxx.xx)

Nun habe ich einen Vserver auf dieser IP angelegt, aber natürlich kann ich weder per SSH auf den Vserver zugreifen, weder hat der Vserver internet Zugang. (sprich ich muss vzctl Enter ID) eingeben um zuzugreifen.

Alle Anleitungen die ich finde sind für Cent OS, und da ich noch nie mit mehreren IP Adressen gearbeitet habe, und vor allem nicht mit Cent OS, steige ich dort nicht durch.

Daher meine Frage, wie genau richte ich das ein? Ich weiß, dass ich irgendwie statt Venet Veth oder so benutzen muss. Aber wie genau mache ich das? Das Tutorial von meinem Hoster hilft mir wenig weiter.

Danke an jeden, der sich Mühe macht, mir zu helfen


Mein Hoster stellt folgendes Tutorial dafür bereit:
Code:
In den folgenden Konfigurations-Beispielen gehen wir von folgenden IP-Adressen aus:

IP Host: 10.0.1.100/24
IP Gateway: 10.0.1.1
IP VM: 10.0.2.100/32


Hostkonfiguration
In der Virtualisierungs-Software müssen Sie für das Netzwerk Ihrer virtuelle Maschine ein Bridged-Setup verwenden. 

VM-Konfiguration
Die Basis-Installation Ihre virtuellen Servers muss offline von einem minimalen Installationsmedium erfolgen, da kein uns bekannter Installer ein solches Netzwerk-Setup direkt ermöglicht. Anschließend kann aber im fertig installierten System die Netzwerkkonfiguartion über Konfigurationsdateien problemlos gesetzt werden:

Debian/Ubuntu
Unter Debian bzw. Ubuntu kann das Setup über die für die Netzwerkkonfiguration vollständig in der Datei /etc/network/interfaces eingetragen werden.

/etc/network/interfaces
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
    address 10.0.2.100
    netmask 255.255.255.255
    pointopoint 10.0.1.1
        gateway 10.0.1.1


Hier mal ein paar Configs etc:

/etc/network/interfaces vom Haupt-host System:
Code:
# The loopback network interface

auto lo

iface lo inet loopback


# The primary network interface

auto eth0

iface eth0 inet static

        address xxx

        netmask 255.255.255.255

        network 0.0.0.0

        broadcast 255.255.255.255

        pointopoint xxx

gateway xxx

        # dns-* options are implemented by the resolvconf package, if installed

        dns-nameservers xxx

        dns-search xxxx

ifconfig vom HauptHost System
Code:
eth0      Link encap:Ethernet  HWaddr f0:92:1c:b4:90:14  

          inet addr:xxx  Bcast:255.255.255.255  Mask:255.255.255.255

          inet6 addr: fe80::f292:1cff:feb4:9014/64 Scope:Link

          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

          RX packets:21600675 errors:0 dropped:0 overruns:1 frame:0

          TX packets:22127549 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:1000 

          RX bytes:8618891164 (8.0 GiB)  TX bytes:6930878714 (6.4 GiB)

          Memory:fbf40000-fbf5ffff 


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:2582076 errors:0 dropped:0 overruns:0 frame:0

          TX packets:2582076 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:1691931178 (1.5 GiB)  TX bytes:1691931178 (1.5 GiB)


venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  

          inet6 addr: fe80::1/128 Scope:Link

          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

          RX packets:599131 errors:0 dropped:0 overruns:0 frame:0

          TX packets:486465 errors:0 dropped:51 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:181671412 (173.2 MiB)  TX bytes:77875017 (74.2 MiB)

/etc/network/interfaces vom VServer mit der IP welche nicht aussem selben Subnetz sind

Code:
# 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 route -A inet6 add default dev venet0

        down route -A inet6 del default dev venet0


auto venet0:0

iface venet0:0 inet static

        address 5.xxx.xxx.xxx.

ifconfig vom Vserver mit der IP aus dem anderen Subnetz

Code:
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

          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1

          RX packets:0 errors:0 dropped:0 overruns:0 frame:0

          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0

          collisions:0 txqueuelen:0 

          RX bytes:0 (0.0 B)  TX bytes:125 (125.0 B)


venet0:0  Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  

          inet addr:5.xxx.xxx.xxx  P-t-P:5.xxx.xxx.xx  Bcast:5.xxx.xxx.xxx  Mask:255.255.255.255

          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
 
Ich hoffe, dass ich hier fragen kann, weil ich kein Proxmox nutze, sondern das alte OpenVZ mit den Openvz Kernel auf Debian 7.

Eher nein, das hier ist das Proxmox VE Support Forum. Wenn OpenVZ/Debian Fragen auftauchen, ist die OpenVZ/Debian Community der bessere Weg.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!