[c-nsp] How to match local IP address?

Marko Milivojevic markom at markom.info
Tue Oct 21 10:52:37 EDT 2008


> Announce connected network with no-export community - it may be lot of
> smaller prefixes.
> The big aggregate prefixes will be announced statically in other places.

How about something like this?

route-map Connected-Routes
 set community no-export
!
router bgp XXX
 address-family ipv4
 redistribute connected route-map Connected-Routes
!

If you wish to assign community for only specific interfaces only, you
can do something like:

route-map Connected-Routes permit 10
 match interface XXX
 match interface YYY
 set community no-export
!
route-map Connected-Routes permit 999


--
Marko
CCIE #18427 (SP)
My network blog: http://cisco.markom.info/


More information about the cisco-nsp mailing list