Good afternoon, Dear!
I ask for help in setting up Proxmox network interfaces.
There is a switch HP1920, 2 ports are connected LAG and configured 2 trunk vlan10 and vlan20.
There is a server with 2 network cards.
I need to combine 2 network cards on the server, get vlan10 and vlan20 from the switch and connect the virtual machines, if necessary,
in different vlan.
I tried 2 different configuration settings, but none of them led to the normal functioning of the server.
Configuration 1:
With this listing, the server starts fine, but the network does not work at all, even if you try to start it manually (service networking restart).
BUT! The network starts, if commented:
# pre-up (ifconfig enp4s0 mtu 8996 && ifconfig enp4s1 mtu 8996)
on all MTUs 8996
Configuration 2:
All the same.
Help please, I do not know how to fix the config to the right one.
I ask for help in setting up Proxmox network interfaces.
There is a switch HP1920, 2 ports are connected LAG and configured 2 trunk vlan10 and vlan20.
There is a server with 2 network cards.
I need to combine 2 network cards on the server, get vlan10 and vlan20 from the switch and connect the virtual machines, if necessary,
in different vlan.
I tried 2 different configuration settings, but none of them led to the normal functioning of the server.
Configuration 1:
auto lo
iface lo inet loopback
# LACP Bonded Open vSwitch Interface
allow-vmbr0 bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds enp4s0 enp4s1
pre-up (ifconfig enp4s0 mtu 8996 && ifconfig enp4s1 mtu 8996)
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast trunks=10,20
mtu 8996
# Creating Open vSwitch bridge
auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan10
mtu 8996
# Creating IntPort for physical node
allow-vmbr0 vlan10
iface vlan10 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=10
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 192.168.100.5
netmask 255.255.252.0
gateway 192.168.100.11
mtu 1500
iface lo inet loopback
# LACP Bonded Open vSwitch Interface
allow-vmbr0 bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds enp4s0 enp4s1
pre-up (ifconfig enp4s0 mtu 8996 && ifconfig enp4s1 mtu 8996)
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast trunks=10,20
mtu 8996
# Creating Open vSwitch bridge
auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
ovs_ports bond0 vlan10
mtu 8996
# Creating IntPort for physical node
allow-vmbr0 vlan10
iface vlan10 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=10
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 192.168.100.5
netmask 255.255.252.0
gateway 192.168.100.11
mtu 1500
BUT! The network starts, if commented:
# pre-up (ifconfig enp4s0 mtu 8996 && ifconfig enp4s1 mtu 8996)
on all MTUs 8996
Configuration 2:
# Loopback interface
auto lo
iface lo inet loopback
# Bond eth0 and eth1 together
allow-vmbr0 bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds enp4s0 enp4s1
# Force the MTU of the physical interfaces to be jumbo-frame capable.
# This doesn't mean that any OVSIntPorts must be jumbo-capable.
# We cannot, however set up definitions for eth0 and eth1 directly due
# to what appear to be bugs in the initialization process.
pre-up ( ifconfig enp4s0 mtu 9000 && ifconfig enp4s1 mtu 9000 )
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
mtu 9000
# Bridge for our bond and vlan virtual interfaces (our VMs will
# also attach to this bridge)
auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
# NOTE: we MUST mention bond0, vlan50, and vlan55 even though each
# of them lists ovs_bridge vmbr0! Not sure why it needs this
# kind of cross-referencing but it won't work without it!
ovs_ports bond0 vlan10 vlan20
mtu 9000
# Proxmox cluster communication vlan
allow-vmbr0 vlan10
iface vlan10 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=10
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 192.168.100.5
netmask 255.255.255.0
gateway 192.168.100.11
mtu 1500
auto lo
iface lo inet loopback
# Bond eth0 and eth1 together
allow-vmbr0 bond0
iface bond0 inet manual
ovs_bridge vmbr0
ovs_type OVSBond
ovs_bonds enp4s0 enp4s1
# Force the MTU of the physical interfaces to be jumbo-frame capable.
# This doesn't mean that any OVSIntPorts must be jumbo-capable.
# We cannot, however set up definitions for eth0 and eth1 directly due
# to what appear to be bugs in the initialization process.
pre-up ( ifconfig enp4s0 mtu 9000 && ifconfig enp4s1 mtu 9000 )
ovs_options bond_mode=balance-tcp lacp=active other_config:lacp-time=fast
mtu 9000
# Bridge for our bond and vlan virtual interfaces (our VMs will
# also attach to this bridge)
auto vmbr0
allow-ovs vmbr0
iface vmbr0 inet manual
ovs_type OVSBridge
# NOTE: we MUST mention bond0, vlan50, and vlan55 even though each
# of them lists ovs_bridge vmbr0! Not sure why it needs this
# kind of cross-referencing but it won't work without it!
ovs_ports bond0 vlan10 vlan20
mtu 9000
# Proxmox cluster communication vlan
allow-vmbr0 vlan10
iface vlan10 inet static
ovs_type OVSIntPort
ovs_bridge vmbr0
ovs_options tag=10
ovs_extra set interface ${IFACE} external-ids:iface-id=$(hostname -s)-${IFACE}-vif
address 192.168.100.5
netmask 255.255.255.0
gateway 192.168.100.11
mtu 1500
Help please, I do not know how to fix the config to the right one.