Ohh I see . In fact I just had to do a clear ip bgp and it worked . weird.
Thanks for the regex command :) really helpful 2010/10/30 Jason Maynard <[email protected]> > I believe you want everything that is originating from AS 54 > > > > AS path access list 1 > permit _54$ > > > > You can always test your regex by using > > > > “show ip bgp regexp” > > > > > > *From:* [email protected] [mailto: > [email protected]] *On Behalf Of *Nicolas MICHEL > *Sent:* October-29-10 8:52 PM > *To:* OSL Routing and Switching > *Subject:* [Bulk] [OSL | CCIE_RS] As Path access list > > > > Hey there. > > I d like to set the next hop attribute to myself from prefix. > > Instead of doing a route map that match everything and set ip next-hop to > me I'd like to use the as-path feature to play with some regex. > > > > Here are the prefix I'm learning and that I want to modify: > > > Rack1R4#sh ip bgp > BGP table version is 28, local router ID is 150.1.4.4 > Status codes: s suppressed, d damped, h history, * valid, > best, i - > internal, > r RIB-failure, S Stale > Origin codes: i - IGP, e - EGP, ? - incomplete > > Network Next Hop Metric LocPrf Weight Path > *> 28.119.16.0/24 204.12.1.254 0 0 54 i > *> 28.119.17.0/24 204.12.1.254 0 0 54 i > *> 112.0.0.0 204.12.1.254 0 54 50 60 i > *> 113.0.0.0 204.12.1.254 0 54 50 60 i > *> 114.0.0.0 204.12.1.254 0 54 i > *> 115.0.0.0 204.12.1.254 0 54 i > *> 116.0.0.0 204.12.1.254 0 54 i > *> 117.0.0.0 204.12.1.254 0 54 i > *> 118.0.0.0 204.12.1.254 0 54 i > *> 119.0.0.0 204.12.1.254 0 54 i > *>i150.1.1.0/24 155.1.146.1 0 100 0 i > *>i150.1.2.0/24 155.1.0.2 0 100 0 200 i > *>i150.1.3.0/24 155.1.0.3 0 100 0 i > *> 150.1.4.0/24 0.0.0.0 0 32768 i > *>i150.1.5.0/24 155.1.0.5 0 100 0 i > *>i150.1.6.0/24 155.1.146.6 0 100 0 i > *>i150.1.7.0/24 155.1.67.7 0 100 0 i > > > > I'd like to match all the prefix learned by as 54. > > so here is my config: > > > router bgp 100 > no synchronization > bgp log-neighbor-changes > network 150.1.4.0 mask 255.255.255.0 > neighbor 155.1.146.1 remote-as 100 > neighbor 155.1.146.1 route-map TO_R1 out > neighbor 204.12.1.254 remote-as 54 > > route-map TO_R1 permit 10 > match as-path 1 > set ip next-hop 155.1.146.4 > > > Rack1R4#sh ip as-path-access-list 1 > AS path access list 1 > permit ^54_ > > it should match all the 11X prefix right ? but it doesnt ... > > > Rack1R4#sh ip bgp neighbors 155.1.146.1 adv > > Total number of prefixes 0 > > > > > > > > Even with that config it does not work ... > > > route-map TO_R1 permit 10 > match as-path 1 > set ip next-hop 155.1.146.4 > > > > Rack1R4#sh ip as-path-access-list > AS path access list 1 > permit .* > > Rack1R4#sh ip bgp ne 155.1.146.1 ad > > Total number of prefixes 0 > > > > > I dont know what I m doing wrong ? > > > Also please somebody tell me that I ll not deal with that kind of regex > during the CCIE lab exam : (_64[6-9][0-9][0-9]_|_65[0-9][0-9][0-9]_) > > > Thanks :) > > > > > > > > > > > > > > > > -- > Nicolas MICHEL > Ingenieur Réseaux et Securité (CCNA/CCNP and CCIE Pending) > Centre d’Expertise et d’Assistance Clients > Spie communication > Tél : +33 (0)141464924 > Mob: +33 (0)608727597 > > > > -- Nicolas MICHEL Ingenieur Réseaux et Securité (CCNA/CCNP and CCIE Pending) Centre d’Expertise et d’Assistance Clients Spie communication Tél : +33 (0)141464924 Mob: +33 (0)608727597
_______________________________________________ For more information regarding industry leading CCIE Lab training, please visit www.ipexpert.com
