@Ramalama
I managed to get it to work with the setup below. Its been working great for awhile now. I am now trying to change things around again.
I'd like to setup an LACP aggregation using eno7 and eno8 ( 2 sftp+ ports ). Then, move the vlan setup from eno5 to the new bonded LACP ports. Will appreciate if you can point me in the right direction. Should I use a Linux Bond or OVS bond ?
Code:
auto lo
iface lo inet loopback
iface eno1 inet manual
auto eno5
iface eno5 inet manual
auto eno6
iface eno6 inet manual
auto eno7
iface eno7 inet manual
auto eno3
iface eno3 inet manual
auto eno4
iface eno4 inet manual
auto eno2
iface eno2 inet manual
auto eno8
iface eno8 inet manual
auto vmbr0
iface vmbr0 inet static
address 10.0.0.21/24
gateway 10.0.0.1
bridge-ports eno1
bridge-stp off
bridge-fd 0
auto vmbr1020
iface vmbr1020 inet manual
bridge-ports eno5.1020
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#lab vlan
auto vmbr1030
iface vmbr1030 inet manual
bridge-ports eno5.1030
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#iot vlan
auto vmbr1010
iface vmbr1010 inet manual
bridge-ports eno5.1010
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#home vlan
auto vmbr99
iface vmbr99 inet manual
bridge-ports eno5.99
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
#dmz vlan
Small background: eno=phy & vmbr=virtual
You are using in your bridges physical vlan ports (eno5.99 for example), that means for me that that bridge doesn't need to be vlan aware... cause you bind already to phy port vlan.
Maybe im wrong and it works in your config like pvid 99 and vlan aware for tagging, but i doubt it. it looks wrong somehow...
however, my idea was to make this all much easier, like:
Code:
auto lo
iface lo inet loopback
auto eno1
iface eno1 inet static
address 10.0.0.21/24
gateway 10.0.0.1
dns-nameservers 10.0.0.1 8.8.8.8
auto eno2
iface eno2 inet manual
auto eno3
iface eno3 inet manual
auto eno4
iface eno4 inet manual
auto eno5
iface eno5 inet manual
auto eno6
iface eno6 inet manual
auto eno7
iface eno7 inet manual
bond-master bond0
auto eno8
iface eno8 inet manual
bond-master bond0
auto bond0
iface bond0 inet manual
bond-mode 802.3ad
bond-miimon 100
bond-downdelay 200
bond-updelay 200
bond-lacp-rate 1
bond-min-links 1
bond-slaves none
auto vmbr0
iface vmbr0 inet manual
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
Take the portnames as example, i don't know which ports you want to use.
So basically, proxmox itself has an ip on eno1, the 802.3ad bond doesn't have any ip and vmbr0 sits on bond0 with all vlan's.
So you can connect all your VM's to vmbr0 and assign a tag in the proxmox gui for every vm-networkadapter.
For the opensense, you need to give only one networkadapter (without a tag in the gui) and you create vlans in opnsense itself. (Just don't forget to disable the offloading in opnsense)
LRO-> Is incompatible with packet forwarding
TX/RX -> Is buggy with vmxnet on freebsd
Vlan Hardware Offloading -> May work, leave it default.
Some more background, maybe it helps you a bit, since i am an slow replyer xD
- you need either ifenslave+ifupdown or only ifupdown2 (ifenslaves is integrated there)
- you don't need any other packages or modules... Proxmox comes with everything.
- you can either use inside enoX "bond-master bond0" or inside bond0 "bond-slaves enoX enoX enoX...", but not both together.
- bond-mode:
https://wiki.pratznschutz.com/index.php/Network_Bonding (directly at top) (802.3ad is a synonyme for 4)
- bond-miimon: checks all 100ms the linkstatus of the slave interfaces...
- bond-up/downdelay: 200ms till an offline/online interface gets added/removed
- bond-lacp-rate 1 (0/1 slow/fast lacp control packet transmission)
- iface XXXX inet manual (basically for interfaces without ip) / static (For interfaces with an ip)
Bridge:
- bridge-vids 20 30 40-1200 (vlans that you want)
- bridge-pvid 20 (Primary trunk vlan)
- bridge-access 20 (Access Vlan)
- More:
https://manpages.debian.org/testing/ifupdown2/ifupdown-addons-interfaces.5.en.html
- you don't need bridge-pvid if you want to configure a pvid on your switch. But you can use both and even multiple bridges bound to bond0 with different pvid's.
Im only not sure if you need then vlanaware on a bridge with only one vlan. but you can test it and play with the options.
I hope you understand it a bit better now.
Cheers
EDIT:
Ah and about linux-bridge vs ovs... Forget ovs, basically the linux bridge can everything and is probably even more efficient.