[ovs-discuss] lacp to mellanox switch

Raymond Burkholder ray at oneunified.net
Thu Dec 21 22:36:07 UTC 2017


Based upon documentation, this should 'just' work, but well, it doesn't. The
two slave interfaces seem to always be disabled.  I have the following:

On the server side:

# ovs-vsctl add-bond ovsbr0 bond_mlnx enp8s0f0 enp8s0f1 lacp=active
trunks=64,65

Which has the log entries:

2017-12-21T22:12:11.772Z|01407|bridge|INFO|bridge ovsbr0: added interface
enp8s0f0 on port 65
2017-12-21T22:12:11.772Z|01408|bridge|INFO|bridge ovsbr0: added interface
enp8s0f1 on port 66
2017-12-21T22:12:11.772Z|01409|bond|INFO|interface enp8s0f0: enabled
2017-12-21T22:12:11.772Z|01410|bond|INFO|interface enp8s0f1: enabled
2017-12-21T22:12:11.773Z|01411|bond|INFO|interface enp8s0f0: link state down
2017-12-21T22:12:11.773Z|01412|bond|INFO|interface enp8s0f0: disabled
2017-12-21T22:12:11.773Z|01413|bond|INFO|interface enp8s0f1: link state down
2017-12-21T22:12:11.773Z|01414|bond|INFO|interface enp8s0f1: disabled


# ovs-appctl bond/show bond_mlnx
---- bond_mlnx ----
bond_mode: active-backup
bond may use recirculation: no, Recirc-ID : -1
bond-hash-basis: 0
updelay: 0 ms
downdelay: 0 ms
lacp_status: negotiated
lacp_fallback_ab: false
active slave mac: 00:00:00:00:00:00(none)

slave enp8s0f0: disabled
        may_enable: false

slave enp8s0f1: disabled
        may_enable: false

With at tcpdump of the mellanox switch and the server:
24:8a:07:f2:ba:bd is the mellanox switch
00:90:0b:68:eb:67 is the server

22:12:46.669106 24:8a:07:f2:ba:bd > 01:80:c2:00:00:02, ethertype Slow
Protocols (0x8809), length 124: LACPv1, length 110
        Actor Information TLV (0x01), length 20
          System 00:00:5e:aa:bb:cc, System Priority 32768, Key 29002, Port
5, Port Priority 32768
          State Flags [Activity, Aggregation, Default]
        Partner Information TLV (0x02), length 20
          System 00:00:00:00:00:00, System Priority 0, Key 29002, Port 5,
Port Priority 0
          State Flags [Aggregation, Synchronization, Collecting,
Distributing, Default]
        Collector Information TLV (0x03), length 16
          Max Delay 0
        Terminator TLV (0x00), length 0
22:12:46.785546 00:90:0b:68:eb:67 > 01:80:c2:00:00:02, ethertype Slow
Protocols (0x8809), length 124: LACPv1, length 110
        Actor Information TLV (0x01), length 20
          System 00:90:0b:68:51:0b, System Priority 65534, Key 65, Port 65,
Port Priority 65535
          State Flags [Activity, Aggregation, Synchronization, Collecting,
Distributing]
        Partner Information TLV (0x02), length 20
          System 00:00:5e:aa:bb:cc, System Priority 32768, Key 29002, Port
5, Port Priority 32768
          State Flags [Activity, Aggregation, Default]
        Collector Information TLV (0x03), length 16
          Max Delay 0
        Terminator TLV (0x00), length 0



Mellanox switch configuration:

   interface ethernet 1/2 mlag-channel-group 2 mode active
   interface mlag-port-channel 2 switchport mode trunk
   interface mlag-port-channel 2 switchport trunk allowed-vlan add 1
   interface mlag-port-channel 2 switchport trunk allowed-vlan add 64-65

  


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the discuss mailing list