Hi eddie
So even though it works, it’s not supported or not recommended? I have configured ospf on MLAG as below and seems to be working, but I’m not sure if this is supported by mellanox or recommended configuration… I appreciate your help
Physical Connection:

Logical:
I can reach 192.168.2.0/24 network (vlan 2).
MLNXSW1:
=======
interface mlag-port-channel 1
interface mlag-port-channel 1 switchport mode trunk
interface mlag-port-channel 1 no shutdown
interface mlag-port-channel 1 switchport trunk allowed-vlan none
interface mlag-port-channel 1 switchport trunk allowed-vlan add 999
interface mlag-port-channel 1 switchport trunk allowed-vlan add 10
interface vlan 999
interface vlan 999 ip address 192.168.1.2 255.255.255.0
interface vlan 5
interface vlan 5 ip address 192.168.2.2 255.255.255.0
protocol ospf
router ospf 1 vrf default
router ospf 1 vrf default router-id 10.10.1.11
interface vlan 5 ip ospf area 1.1.1.1
interface vlan 999 ip ospf area 0.0.0.0
vlan 999 name “TransitNet”
vlan 5 name “LAN”
interface vlan 999 magp 999 ip virtual-router address 192.168.1.254
interface vlan 5 magp 5 ip virtual-router address 192.168.2.254
interface vlan 999 magp 999 ip virtual-router mac-address 00:02:AC:999:BC:EF
interface vlan 5 magp 5 ip virtual-router mac-address 00:02:AC:5:BC:EF
MLNXSW2:
========
interface mlag-port-channel 1
interface mlag-port-channel 1 switchport mode trunk
interface mlag-port-channel 1 no shutdown
interface mlag-port-channel 1 switchport trunk allowed-vlan none
interface mlag-port-channel 1 switchport trunk allowed-vlan add 999
interface mlag-port-channel 1 switchport trunk allowed-vlan add 10
interface vlan 999
interface vlan 999 ip address 192.168.1.3 255.255.255.0
interface vlan 5
interface vlan 5 ip address 192.168.2.3 255.255.255.0
protocol ospf
router ospf 1 vrf default
router ospf 1 vrf default router-id 10.10.1.11
interface vlan 5 ip ospf area 1.1.1.1
interface vlan 999 ip ospf area 0.0.0.0
vlan 999 name “TransitNet”
vlan 5 name “LAN”
interface vlan 999 magp 999 ip virtual-router address 192.168.1.254
interface vlan 5 magp 5 ip virtual-router address 192.168.2.254
interface vlan 999 magp 999 ip virtual-router mac-address 00:02:AC:999:BC:EF
interface vlan 5 magp 5 ip virtual-router mac-address 00:02:AC:5:BC:EF
Thank you.