Within this lesson, we will cover:

  • How to centrally analyze your networks routing tables.
  • How to perform filtering to validate loopback advertisement via OSPF.

Introduction to Routing Table Analysis

Let’s now turn our attention to routing table analysis via the bfq.routes() question. This question allows you to view every single route within your network topology. As shown below:

>>> bfq.routes().answer().frame()
...
           Node      VRF         Network    Next_Hop     Next_Hop_IP Next_Hop_Interface Protocol Metric Admin_Distance    Tag
0    nxos-aggr1  default  192.168.1.3/32        None  AUTO/NONE(-1l)          loopback0    local      0              0      0
1    nxos-aggr1  default  10.2.20.254/32        None  AUTO/NONE(-1l)             Vlan20    local      0              0      0
2    nxos-core1  default     10.2.1.0/24  nxos-core2        10.1.3.2            dynamic     ospf     80            110   None
3    nxos-core2  default    10.2.20.0/24  nxos-aggr1     192.168.1.3            dynamic      bgp      0             20  64530
4    nxos-core2  default     10.2.1.1/32        None  AUTO/NONE(-1l)        Ethernet1/1    local      0              0      0
..          ...      ...             ...         ...             ...                ...      ...    ...            ...    ...
84   nxos-aggr1  default  192.168.1.2/32  nxos-core2        10.2.2.1            dynamic     ospf     41            110   None
85   nxos-core2  default     10.1.2.0/24  nxos-core1        10.1.3.1            dynamic     ospf     80            110   None
86      server1  default    10.2.10.1/32        None  AUTO/NONE(-1l)               eth0    local      0              0   None
87   nxos-core2  default    10.2.10.0/24  nxos-aggr1     192.168.1.3            dynamic      bgp      0             20  64530
88  qfx-access1  default  169.254.0.2/32        None  AUTO/NONE(-1l)              em1.0    local      0              0   None
[89 rows x 10 columns]
Ready to Master Network Automation? Start Your Journey Today!
Our membership provides:
  • Full deep-dive course library (inc. Batfish, pyATS, Netmiko)
  • Code repositories inc. full course code, scripts and examples
  • 24x7 multi-vendor labs (Arista, Cisco, Juniper)
  • Private online community
  • Live monthly tech sessions
  • Access to tech session library

Join Now ➜
Close You've successfully subscribed to Packet Coders.
Close Success! Your account is fully activated, you now have access to all content.
Close Welcome back! You've successfully signed in.
Close Nearly there! To activate your account, please click the link in the email we just sent you.