Proxmox - Bond Problems

dima1002

Member
May 23, 2021
51
1
13
52
Hi,

We have several network cards. Here is the overview:

1670833548080.png

enp129 is a bond and en65 is a bond.


At bond1, our network is unreachable. Why? is there an error here?


Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp195s0f0
iface enp195s0f0 inet manual

auto enp129s0f0np0
iface enp129s0f0np0 inet manual

auto enp129s0f1np1
iface enp129s0f1np1 inet manual

iface enx2e9f9594e497 inet manual

auto enp195s0f1
iface enp195s0f1 inet static
        address 192.168.33.73/24
#COROSYNC-03

auto enp1s0f0np0
iface enp1s0f0np0 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr1
        ovs_mtu 9000
        ovs_options other_config:rstp-enable=true other_config:rstp-port-admin-edge=false other_config:rstp-port-auto-edge=false other_config:rstp-port-mcheck=true other_config:rstp-path-cost=150 vlan_mode=native-untagged

auto enp1s0f1np1
iface enp1s0f1np1 inet manual
        ovs_type OVSPort
        ovs_bridge vmbr1
        ovs_mtu 9000
        ovs_options other_config:rstp-port-mcheck=true vlan_mode=native-untagged other_config:rstp-port-admin-edge=false other_config:rstp-path-cost=150 other_config:rstp-enable=true other_config:rstp-port-auto-edge=false

iface enxb6332c1df1be inet manual

auto enp65s0f0np0
iface enp65s0f0np0 inet manual

auto enp65s0f1np1
iface enp65s0f1np1 inet manual

iface enxfe080c7673c9 inet manual

iface enx6676fc844be4 inet manual

auto bond0
iface bond0 inet manual
        bond-slaves enp129s0f0np0 enp129s0f1np1
        bond-miimon 100
        bond-mode active-backup
        bond-primary enp129s0f0np0
#VM-03

auto bond1
iface bond1 inet manual
        bond-slaves enp65s0f0np0 enp65s0f1np1
        bond-miimon 100
        bond-mode active-backup
        bond-primary enp65s0f0np0

auto vmbr1
iface vmbr1 inet static
        address 192.168.10.73/24
        ovs_type OVSBridge
        ovs_ports enp1s0f0np0 enp1s0f1np1
        ovs_mtu 9000
        up ovs-vsctl set Bridge ${IFACE} rstp_enable=true other_config:rstp-priority=32768 other_config:rstp-forward-delay=4 other_config:rstp-max-age=6
        post-up sleep 10
#CEPH-03

auto vmbr0
iface vmbr0 inet static
        address 10.10.50.93/23
        gateway 10.10.50.1
        bridge-ports bond0
        bridge-stp off
        bridge-fd 0
        bridge-vlan-aware yes
        bridge-vids 2-4094
 
you need to create a bridge for bond1 like the one that you create for bond0/vmbr0.

Example:
auto vmbr2
iface vmbr2 inet static
address XXX.XXX.XXX.XXX/XX
bridge-ports bond1
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094

Also, the interfaces that are associated with a bond or a bridge should not have autostart enable.
To do that, remove the auto line from the configuration of all those interfaces

Example you have:
auto enp129s0f0np0
iface enp129s0f0np0 inet manual

Should be only:
iface enp129s0f0np0 inet manual
 
Last edited: