[SOLVED] Hetzner Netzwerk Config mit 2. IP (No subnet) + Maschinen kommen nicht ins Internet

Sebastian Roz

New Member
Jul 10, 2018
7
0
1
23
Hallo ich bin relativ neu bei Proxmox und die Netzkonfi. zerstört mich komplett...

Ich habe auch schon mehrer Anleitungen probiert -> Ohne erfolg.
Nach langem rumschrauben habe ich Proxmox dazubekommen die vmbr´s zu aktivieren.

Jetzt kommt aber das eigentliche Problem:

Die LX-Container (Auch die vms) starten aber sie sind nicht mit dem Internet verbunden.

Dies sind meine Konfigs die ich ausprobiert habe

XX.XX.XA.11 Haupt-IP
XX.XX.XG.11 Gateway
XX.XX.XZ.11 Zusatzip

Code:
source /etc/network/interfaces.d/*

auto lo
iface lo inet loopback

iface lo inet6 loopback

auto enp3s0
iface enp3s0 inet static
    address  XX.XX.XA.11
    netmask  255.255.255.224
    gateway  XX.XX.XG.11
    pointopoint XX.XX.XG.11

auto vmbr0
iface vmbr0 inet static
    address  XX.XX.XA.11
    netmask  255.255.255.255
    bridge-ports enp3s0
    bridge-stp off
    bridge-fd 0
    pointopoint XX.XX.XG.11
    bridge_maxwait 0

auto vmbr00
iface vmbr00 inet static
    address  XX.XX.XA.11
    netmask  255.255.255.255
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    bridge_maxwait 0
    up route add -host XX.XX.XX.XZ.11 netmask 255.255.255.254 gw XX.XX.XG.11  dev vmbr00

auto vmbr1
iface vmbr1 inet static
    address  10.20.30.1
    netmask  255.255.255.0
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    post-up iptables -t nat -A POSTROUTING -s '10.20.30.0/24' -o enp3s0 -j MASQUERADE
    post-down iptables -t nat -D POSTROUTING -s '10.20.30.0/24' -o enp3s0 -j MASQUERADE

auto vmbr2
iface vmbr2 inet static
    address  XX.XX.XA.11
    netmask  255.255.255.255
    bridge-ports none
    bridge-stp off
    bridge-fd 0
    up ip route add XX.XX.XX.XZ.11/32 dev vmbr2

auto vmbr3
iface vmbr3 inet static
    address  XX.XX.XA.11
    netmask  255.255.255.224
    gateway  XX.XX.XG.11
    bridge-ports none
    bridge-stp off
    bridge-fd 0
 
Wenn du die MAC Andressen einträgst, holt sich der Guest die IP auch per DHCP selber dann.

So kann ich auch mal schnell ne IP wechseln vom Guest.
Seperate MAC Adressen kannst du ja im Robot freischalten ;)


Meine sieht so aus:

Code:
source /etc/network/interfaces.d/*

auto lo enp6s0 enp6s0:1
iface lo inet loopback
iface lo inet6 loopback


iface enp6s0 inet static
    address  xx.xx.xx.151
    netmask  255.255.255.192
    gateway  xx.xx.xx.129
    pointopoint xx.xx.xx.129
    up route add -net xx.xx.xx.128 netmask 255.255.255.192 gw xx.xx.xx.129 dev enp6s0

iface enp6s0 inet6 static
    address  xxxx:xxx:xx:xxxx::2
    netmask  64
    gateway  fe80::1

iface enp6s0:1 inet static
    address  xx.xx.xx.154
    netmask  255.255.255.192
    broadcast  xx.xx.xx.191
    network xx.xx.xx.128

auto vmbr0
iface vmbr0 inet static
  address xx.xx.xx.151
  netmask 255.255.255.255
  pointopoint xx.xx.xx.129
  gateway xx.xx.xx.129
  bridge_ports enp6s0
  bridge_stp off
  bridge_fd 1
  bridge_hello 2
  bridge_maxage 12

Die IPs holt er sich dann wie gesagt bei mir per MAC direkt per DHCP.
Funzt mut Windows Guest und mit LinuxGuests
 

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!