ovs_bridge for first interface + DHCP for VMs?

_fu_

New Member
Apr 17, 2022
5
0
1
Hi there,

I am really new to all of this so excuse the question, if too stupid :)

I want to use OVS and I understood that PVE needs a static IP. I replaced the basic linux bridge with OVS and it works just fine.

/etc/network/interfaces (part of)

Code:
auto lo
iface lo inet loopback

auto enp9s0
iface enp9s0 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr0
        ovs_mtu 1500
        ovs_options vlan_mode=native-untagged tag=1

auto vlan1
iface vlan1 inet static
        address 192.168.178.178
        gateway 192.168.178.1
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_mtu 1500
        ovs_options tag=1
      
auto vmbr0
iface vmbr0 inet manual
        ovs_type OVSBridge
        ovs_ports enp9s0 vlan1 vlan2
        ovs_mtu 1500

Now, I'd like to use vlan2 for my pfSense WAN port and as such I want to get a DHCP from the same modem (192.168.178.1 - fritzbox, yes). I thought I could just add

Code:
auto vlan2
iface vlan2 inet dhcp
        ovs_type OVSIntPort
        ovs_bridge vmbr0
        ovs_mtu 1500
        ovs_options tag=2

but I don't get an IP from the modem. What am I doing wrong?
 
interesting about the vlan. never seen a modem giving vlan. Moslty, what do work well is the default bridge as prox need the gui and management ip and then you do extra internal vlan that do link to the output of your vm. no ip set, no dhcp.. the vm do that.
 

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!