I'm planning to move my physical firewall into a proxmox VM. For this purpose, I need to "upgrade" my network config. Currently, Proxmox is connected to an access port on my switch. In the new config, proxmox shall be getting all VLANs for passthrough in an lacp trunk port to one VM.
Current config:
After reading through proxmox's Wiki, the OpenVSwitch github page and a bit of googling, I've put together the following for a new config which shall
Bonus question:
Currently all VMs use vmbr0. If I change the network config as above, how to I assign access port (VLAN10) to existing VMs; anything I need to change in the VM configs? And how could I provide a trunk with all VLANs to the new firewall VM?
Thanks!
Current config:
Code:
auto lo
iface lo inet loopback
iface enp193s0f1np1 inet manual
auto vmbr0
iface vmbr0 inet static
address 192.168.1.6
hwaddress 1c:34:da:7f:b1:53
netmask 255.255.255.0
gateway 192.168.1.1
bridge_ports enp193s0f1np1
bridge_stp off
bridge_fd 0
auto vmbr0:0
iface vmbr0:0 inet static
address 192.168.1.101
netmask 255.255.255.0
iface enp10s0f0 inet manual
iface enp10s0f1 inet manual
iface enp12s0f3u2u2c2 inet manual
iface enp193s0f0np0 inet manual
After reading through proxmox's Wiki, the OpenVSwitch github page and a bit of googling, I've put together the following for a new config which shall
- create a bond
- accept VLANs 10 (untagged), 30, 50, 60, 70 on that bond
- provide local access for the proxmox host to VLAN 10
Code:
auto lo
# loopback interface
iface lo inet loopback
# bond
auto bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds enp193s0f0np0 enp193s0f1np1
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast tag=10 vlan_mode=native-untagged trunks=10,30,50,60,70
# bridge for bond, local interface, VMs
auto vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan10
# proxmox host vlan10 access
auto vlan10
iface vlan10 inet static
address 192.168.1.6
netmask 255.255.255.0
gateway 192.168.1.1
# second IP for proxmox host
auto vlan10:0
iface vlan10:0 inet static
address 192.168.1.101
netmask 255.255.255.0
# remaining interfaces
iface enp10s0f0 inet manual
iface enp10s0f1 inet manual
iface enp12s0f3u2u2c2 inet manual
Bonus question:
Currently all VMs use vmbr0. If I change the network config as above, how to I assign access port (VLAN10) to existing VMs; anything I need to change in the VM configs? And how could I provide a trunk with all VLANs to the new firewall VM?
Thanks!