Mit Open vSwitch (OVS) zwei IPs zum Managen des WebUI's

cxctcxc

New Member
Apr 28, 2021
2
0
1
22
Hallo zusammen,

ich bin noch ziemlich neu was das Thema OVS angeht. Das erstellen von vlan's habe ich durch suchen schon geschafft und das läuft auch so weit wie es soll aber was ich nun machen möchte habe ich leider bis jetzt noch nicht hinbekommen.

Ich habe einen Proxmox Server mit einer OPNsense VM, der Proxmox Server ansiech soll über das Netzwerk mit dem vlan 80 erreichbar sein und über das Netzwerk der FritzBox. Meine Frage ist jetzt wie muss die Konfiguration in /etc/network/interfaces aussehen damit ich über das Netz im vlan 80 und über das Netz der FritzBox auf das WebUI des Proxmox Servers komme? Ich habe schon so etwas ähnlich gefunden aber leider ist das mit der normal Linux Bridge gemacht.
https://forum.proxmox.com/threads/how-to-add-additional-ip-to-proxmox-itself.69390/

Proxmox Netzwerk Konfiguration in /etc/network/interfaces
Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

auto eno2
iface eno2 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

auto eno3
iface eno3 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

iface eno4 inet manual

auto inband
iface inband inet static
        address 192.168.XXX.XXX/24
        gateway 192.168.XXX.XXX
        ovs_type OVSIntPort
        ovs_bridge vmbr0
#inband interface

auto vlan80
iface vlan80 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=80
#mgmt network

auto vlan85
iface vlan85 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=85
#private network

auto vlan90
iface vlan90 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=90
#container network

auto vlan95
iface vlan95 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=95
#unsafe network

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports eno1 eno2 eno3 inband vlan80 vlan85 vlan90 vlan95
 
Am besten gibst du dem Host in beiden VLANs eine IP. Sobald der Host eine IP in einem Netz hat kann man dann eigentlich auch über diese IP auf das WebUI/SSH zugreifen.
 
Ja habe ich schon gemacht also die /etc/network/interfaces sieht jetzt so aus und ich würde gerne über inband und inband0 auf das WebUI von Proxmox kommen aber das geht nicht so wie es jetzt ist, fehlt vielleicht eine route oder muss ich da noch etwas ändern?

Code:
auto lo
iface lo inet loopback

auto eno1
iface eno1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

auto eno2
iface eno2 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

auto eno3
iface eno3 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0

iface eno4 inet manual

auto inband
iface inband inet static
        address 192.168.1XX.XXX/24
        gateway 192.168.1XX.XXX
        ovs_type OVSIntPort
        ovs_bridge vmbr0
#inband interface

auto vlan80
iface vlan80 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=80
#mgmt network

auto vlan85
iface vlan85 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=85
#private network

auto vlan90
iface vlan90 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=90
#container network

auto vlan95
iface vlan95 inet manual
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=95
#unsafe network

auto inband0
iface inband0 inet static
        address 192.168.2XX.XXX/24
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_options tag=80
#second inband interface

auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports eno1 eno2 eno3 inband vlan80 vlan85 vlan90 vlan95 inband0
 
Versuchst du das jeweils mit einem eigenen Rechner im jeweiligen Subnet? Ansonsten bräuchtest du einen Router der zwischen den Subnetzen routen kann. Nicht vergessen die zweie IP am Host dann noch unter "/etc/hosts" einzutragen.
Und natürlich sicherstellen, dass du da keine Firewall Regel erstellt hast, welche die WebUI Ports blockt.
 
Last edited:

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!