Attempting to create bridge to SAN bond breaks networking

FuriousGeorge

Renowned Member
Sep 25, 2012
84
2
73
Hi.

I have a SAN set up for vm storage. It consists of two bonded nics on my nodes, as well as on a qnap NAS.

(FWIW, each NIC goes to a dedicated switch, and the two switches are bridged.)

I'd like to set up a FreeNAS VM and give it access to the SAN network.

I thought I might be able to just create a bridge that includes the bond, but every way I've tried to do this results in the SAN becoming unreachable.

Here is my latest attempt:

Code:
auto lo
iface lo inet loopback

iface enp1s0f0 inet manual

iface enp135s0 inet manual

iface enp136s0 inet manual

iface enp131s0f0 inet manual

iface enp1s0f1 inet manual

iface enp131s0f1 inet manual

iface enp1s0f1:0 inet manual

auto bond0
iface bond0 inet static
        address  10.5.1.253
        netmask  255.255.255.0
        slaves enp131s0f0 enp131s0f1
        bond_miimon 100
        bond_mode balance-rr
#10Gbe SAN Bond

auto vmbr0
iface vmbr0 inet static
        address  10.5.0.253
        netmask  255.255.255.0
        gateway  10.5.0.1
        bridge_ports enp1s0f0
        bridge_stp off
        bridge_fd 0
#LAN Bridge

auto vmbr1
iface vmbr1 inet manual
        bridge_ports enp1s0f1
        bridge_stp off
        bridge_fd 0
#WAN Bridge

auto vmbr2
iface vmbr2 inet static
        address  10.5.2.253
        netmask  255.255.255.0
        bridge_ports bond0.10
        bridge_stp off
        bridge_fd 0
        bridge_vlan_aware yes

proxmox-3:~# tail -n 100 /var/log/messages |grep -i own
Oct 10 09:59:15 ads-120elm-proxmox-3 kernel: [   40.572150] vmbr2: received packet on bond0 with own address as source address (addr:a0:36:9f:51:5b:60, vlan:1)

This was set up via the GUI, and maybe it's not possible to do what I want that way.

As you can see, I get the above error in my logs, which I presume is responsible for the SAN becoming unreachable.

I've given the VM's interface an address of 10.5.2.1, but I'm unable to ping the host node on .253.

I'm wondering if I'm going about this at in the right way, and, if so, what change I need to make in order for this to work.

Thanks in advance.
 
Where is the bond0.10 defined? When you ifup the bridge manually, it will complain about it.
 

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!