[c-nsp] Cisco ISIS/BGP Redistribute

Harold Ritter (hritter) hritter at cisco.com
Mon Nov 23 13:23:33 EST 2020


Hi Olivier,

>From what I remember, the issue is that the redistribution is performed from the RIB, rather than from the BGP local table and that the community attributes are not installed In the RIB.

What I used to do to achieve what you want, was to set a tag in the RIB and based the redistribution on that tag instead of the community. I would look something like this:

router bgp 65533
 bgp log-neighbor-changes
 neighbor 192.168.191.29 remote-as 65534
 !
 address-family ipv4
  table-map RIB-IMPORT
!
route-map RIB-IMPORT permit 10
 match ip address 49
 set tag 999
!
route-map BGP-TO-ISIS-REDISTRIBUTE permit 10
 match tag 999

Regards,

Harold
De : cisco-nsp <cisco-nsp-bounces at puck.nether.net>
Date : lundi, 23 novembre 2020 à 08:26
À : cisco-nsp at puck.nether.net <cisco-nsp at puck.nether.net>
Objet : [c-nsp] Cisco ISIS/BGP Redistribute
Hello

I am trying to redistribute in my IGP ISIS routes learned by a BGP session
based on communauty.

for this, i have:

router bgp 65533
 bgp log-neighbor-changes
 neighbor 192.168.191.29 remote-as 65534
 !
 address-family ipv4
  network 192.168.191.28 mask 255.255.255.254
  redistribute connected
  neighbor 192.168.191.29 activate
  neighbor 192.168.191.29 next-hop-self
  neighbor 192.168.191.29 as-override
  neighbor 192.168.191.29 route-map EBGP-IMPORT in
 exit-address-family



route-map EBGP-IMPORT permit 10
 match ip address 49
 set local-preference 200
 set community 4294771488 4294771489

access-list 49 permit 192.168.190.32
access-list 49 permit 192.168.190.33
access-list 49 permit 192.168.190.34
access-list 49 permit 192.168.190.35



i have created a IP Communauty List and:

ip community-list expanded ISIS800 permit 65533:801


route-map BGP-TO-ISIS-REDISTRIBUTE permit 10
 match community ISIS800


router isis
 net 49.0001.0000.0000.0397.00
 is-type level-2-only
 metric-style wide
 redistribute connected
 redistribute bgp 65533 route-map BGP-TO-ISIS-REDISTRIBUTE


in this configuration, it does not work, the 4 prefixes learned by BGP are
not redistributed in the ISIS.

if I put on the other hand:

  router isis
 net 49.0001.0000.0000.0397.00
 is-type level-2-only
 metric-style wide
 redistribute connected
 redistribute bgp 65533 route-map EBGP-IMPORT

the prefixes are well redistributed but it is not based on the community

anyone have any idea of my mistake?

thank you in advance
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net
https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/


More information about the cisco-nsp mailing list