[c-nsp] How to tell what routes are not in CEF and follow DEFAULT path?

Saku Ytti saku at ytti.fi
Tue Jul 2 17:33:24 EDT 2013

On (2013-07-02 21:00 +0000), Jeffrey G. Fitzwater wrote:

> I have pointing to one of our ISP so that any prefix < /24 ( which we don't permit in from any ISP) would get pushed to that ISP which might have route.
> I am just trying to figure out how may are being pushed to default.

You'd need to analyse your copy of FIB offline, it wouldn't be too hard,
but I'm dubious of its benefits.

Maybe more useful would be to see what traffic actually hits it, you could
do this via evil hack.

Loop two cables together:

Int gigaloop1
  ip address
int gigaloop2
  ip vrf forwarding HACK
  ip address
int Internets
  ip address
ip route gigaloop1
ip route vrf HACK Internets
monitor session 1 source interface gigaloop1
monitor session 1 destination interface gigaspan

Now you'd have port-monitor for traffic hitting default route :)

(Extra points for doing this by poking in TCAM new LTL index for the
adjacency index)


More information about the cisco-nsp mailing list