cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
13132
Views
38
Helpful
13
Replies

Dynamic Routing Protocol - Routing Table Cisco ACI

netbeginner
Level 2
Level 2

Hello All, 

 

How to check the details of routes learned / received by OSPF or BGP protocols and the routing table on ACI APIC GUI  

 

Rgds

 

13 Replies 13

Hello Balaji, 

 

Thank U for sharing then content. 

 

I am looking for more on the  routing table, through which we can understand which are the remote end routes learning via BGP or OSPF. 

balaji.bandi
Hall of Fame
Hall of Fame

I use most of the time CLI for this, to learn routing table - spine and leaf level - is this what you looking ?

 

the command syntax same like old style but you need to be mention VRF here.

 

EDIT some command level ACI cheat sheet help you :

 

https://community.cisco.com/t5/data-center-documents/cisco-aci-cli-commands-quot-cheat-sheet-quot/ta-p/3145799

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Sergiu.Daniluk
VIP Alumni
VIP Alumni

Hello @netbeginner 

You can check the learned routes directly in the L3Out policy, for each node:

 

routes.png

 

You can also check the same routes in Fabric -> Inventory -> Pod X -> Leaf X -> Protocols -> OPSF/BGP/EIGRP

 

Stay safe,

Sergiu

Hi Balaji and MSD, 

 

Thanks Very much, Yes this is what we were looking for. 

 

One more think, If we have one L3out enabled with OSPF and other L3Out enabled with BGP and redistribution happening between then. how to check the redistribution on fabric between OSPF to BGP or vice versa.

 

balaji.bandi
Hall of Fame
Hall of Fame

You can see Route Learning table where it learn from ? same page as shown in the image pull the > mark you can view more information.

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

RedNectar
VIP
VIP

Hi @netbeginner ,

To look for routing tables, you need to firstly keep in mind that every leaf is a router, so to get a complete picture, you will need to look at the routing table of each leaf.

Let's assume you have four leaves, with leaf IDs of 1201,1202, 1203 and 1204.

Keep in mind:

  • You will only learn OSPF routes on the border leaves
  • You will only learn MP-BGP distributed routes on non-border leaves

The BEST way to check the routing table of all leaves is NOT from the GUI, but from the APIC CLI with one of the following commands:

 

fabric 1201-1204 show ip route bgp vrf vrf_name
fabric 1201-1204 show ip route ospf vrf vrf_name

The equivalent BGP information can NOT be seen in the GUI since ACI v4.2 - at least not all of it.

You can see the equivalent OSPF information in the GUI ONE LEAF AT A TIME by navigating to: Fabric > Inventory >> Pod1 > Leaf_Id > Protocols > OSPF > OSPF for vrf_name > Routes as shown below

image.png

Unfortunately, the ability to view BGP routes in the same way was removed in ACI v4.2 (from memory) - for BGP you need to resort to the CLI (which gives a better picture anyway)

I've put examples of both commands below for a 2 Leaf topology that has an OSPF border router attached to Leaf1201 - as per this picture:

image.png

In the examples below, you can clearly see that leaf 1201 has OSPF routes (learned from the external router, but no BGP routes), whereas Leaf1202 has BGP routes (learned via MP-BGP) nut no OSPF routes because it is NOT connected to a border router.


 

apic1# fabric 1201-1202 show ip route bgp vrf Tenant18:Production_VRF
----------------------------------------------------------------
 Node 1201 (Leaf1201)
----------------------------------------------------------------
IP Route Table for VRF "Tenant18:Production_VRF"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>


----------------------------------------------------------------
 Node 1202 (Leaf1202)
----------------------------------------------------------------
IP Route Table for VRF "Tenant18:Production_VRF"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

1.1.1.18/32, ubest/mbest: 1/0
    *via 10.1.120.64%overlay-1, [200/5], 01w03d, bgp-65001, internal, tag 65001
10.118.0.201/32, ubest/mbest: 1/0
    *via 10.1.120.64%overlay-1, [1/0], 01w03d, bgp-65001, internal, tag 65001
10.118.1.0/24, ubest/mbest: 1/0
    *via 10.1.120.64%overlay-1, [200/0], 01w03d, bgp-65001, internal, tag 65001
10.118.10.0/24, ubest/mbest: 1/0
    *via 10.1.120.64%overlay-1, [200/5], 01w03d, bgp-65001, internal, tag 65001

apic1# fabric 1201-1202 show ip route ospf vrf Tenant18:Production_VRF
----------------------------------------------------------------
 Node 1201 (Leaf1201)
----------------------------------------------------------------
IP Route Table for VRF "Tenant18:Production_VRF"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

1.1.1.18/32, ubest/mbest: 1/0
    *via 10.118.1.1, vlan109, [110/5], 01w03d, ospf-default, inter
10.118.10.0/24, ubest/mbest: 1/0
    *via 10.118.1.1, vlan109, [110/5], 01w03d, ospf-default, intra

----------------------------------------------------------------
 Node 1202 (Leaf1202)
----------------------------------------------------------------
IP Route Table for VRF "Tenant18:Production_VRF"
'*' denotes best ucast next-hop
'**' denotes best mcast next-hop
'[x/y]' denotes [preference/metric]
'%<string>' in via output denotes VRF <string>

I will offer one final option for the GUI - you can see all routes learned by a leaf by the convoluted process of navigating to: Fabric > Inventory >> Pod1 > Leaf_Id > Protocols > RIBV4

From here,  locate the VRF you are interested in in the work pane and double click on it.  This will open up a new window

In the new window, click the Operational tab

Now, painstakingly expand each of the routes there to reveal the learning source. Below is the same information as seen much more easily from the CLI.

 

image.png

I hope this helps.


Don't forget to mark answers as correct if it solves your problem. This helps others find the correct answer if they search for the same problem.


RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Alexander09
Level 1
Level 1

 On top what has been said by @RedNectar , on your border leafs you could just do :

 

  •  show bgp ipv4 unicast summary vrf <vrf>
  • show bgp ipv4 unicast neighbor <ip> routes vrf <vrf>
  • show bgp ipv4 unicast <route> vrf <vrf>

 

OSPF:

 

  • show ip ospf route vrf <vrf>

 

cheers and all have a happy new year!

 

Alexander

--
Alexander Deca

Hi All, 

 

And how to check the BGP Peering and OSPF neighbor ship status through APIC GUI (ACI). 

 

Like Since when peering / neighbor ship  is UP , Stable and when it got fluctuatuated last.

 

 

Hi @netbeginner ,

If you have a new question, ask a new question. If the original question has been answered, mark it answered if not, keep proding until you find out:

How to check the details of routes learned / received by OSPF or BGP protocols and the routing table on ACI APIC GUI?

(which is impossible to do for BGP since v4.2 GUI updates as I pointed out)

It's all about helping people in the future find the right answer to the right question - it your new question is answered now, and marked as correct, then in the future people searching your original question will see it as "Answered" when in fact it was a subsequent question that was answered, not the original.

Let's try and make it easier for future users.

RedNectar aka Chris Welsh.
Forum Tips: 1. Paste images inline - don't attach. 2. Always mark helpful and correct answers, it helps others find what they need.

Hi Alexander, 

 

Thanks and Happy New Year to All..!!

 

I am looking for checking the BGP peering Status / OSPF Neigborship status on ACI APIC GUI.

 

Regard

Hey,

Under Tenant > Networking > L3Outs > l3out_name > Logical Node Profile > profile name > Configured Nodes > node > BGP > neighbors

Cheers
--
Alexander Deca

Hello All, 

 

Sorry, but back again with the query for BGP received-routes checking on ACI APIC GUI.

 

I got the option for checking OSPF receive-route only. 

 

However nothing found for Advertised-Routes (OSPF) & for BGP (Received and Advertised routes both). 

Review Cisco Networking for a $25 gift card

Save 25% on Day-2 Operations Add-On License