cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3018
Views
0
Helpful
2
Replies

ospf configuration on cisco port-channel and mellanox mlag interface

master118
Level 1
Level 1

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

1 Accepted Solution

Accepted Solutions

Hi,

 

I can reach 192.168.2.0/24 network (vlan 2). I want to make sure this is correct and supported or any other better solution, but still maintaining high availability between Cisco L3 switcth and Mellanox?

Physical and logical diagrams are included for clarity.Cisco-Mellanox-Logical.PNGphysical.PNG

 

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.

View solution in original post

2 Replies 2

Julio E. Moisa
VIP Alumni
VIP Alumni

Hi

Have you tried incluiding the networks associated to the VLANs into OSPF on both sides?




>> Marcar como útil o contestado, si la respuesta resolvió la duda, esto ayuda a futuras consultas de otros miembros de la comunidad. <<

Hi,

 

I can reach 192.168.2.0/24 network (vlan 2). I want to make sure this is correct and supported or any other better solution, but still maintaining high availability between Cisco L3 switcth and Mellanox?

Physical and logical diagrams are included for clarity.Cisco-Mellanox-Logical.PNGphysical.PNG

 

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.