2 Replies Latest reply on Apr 3, 2018 3:13 AM by master

    OSPF between cisco and Mellanox MLAG interfaces configuration

    master

      Hi,

      I have two MLNX switches in MLAG configuration and one interface from each MLNX switches is connected to cisco L3 switch in mlag-port channel with two ten gig ports in trunk. My question is how to configure ospf configuration between MLNX switches and Cisco on a MLAG-port channel. I have two vlan that are allowed on mlag-port channel trunk, one for management network and other one for a transit network to carry all networks on MLNX over OSPF. Appreciate your help

        • Re: OSPF between cisco and Mellanox MLAG interfaces configuration
          eddie.notz

          Hi Nat,

           

          Dynamic routing protocols (e.g. OSPF, BGP) are not supported over MLAG port-channels. If they are necessary, router ports must be used instead of MLAG port-channels.

            • Re: OSPF between cisco and Mellanox MLAG interfaces configuration
              master

              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:

              physical.PNG

              Logical:

              Cisco-Mellanox-Logical.PNG

              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.