cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
917
Views
0
Helpful
4
Replies

BGP regexp

stephen.stack
Level 4
Level 4

What does this as-path list do, if appliead to a routemap outbound?

ip as-path access-list 70 permit ^$

ip as-path access-list 70 permit ^1234$

Thanks

Stephen

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful
1 Accepted Solution

Accepted Solutions

Jon Marshall
Hall of Fame
Hall of Fame

Stephen

Permits any routes with no AS ie. they originated in the local AS or an AS of 1234.

Jon

View solution in original post

4 Replies 4

Jon Marshall
Hall of Fame
Hall of Fame

Stephen

Permits any routes with no AS ie. they originated in the local AS or an AS of 1234.

Jon

ah yes... makes perfect sense, and has the desired effect.

Thanks Jon,

Stephen

========================== http://www.rconfig.com A free, open source network device configuration management tool, customizable to your needs! - Always vote on an answer if you found it helpful

Harold Ritter
Spotlight
Spotlight

Stephen,

It allows paths with an empty AS PATH (locally originated prefixes) or paths that have been originated by and received from AS 1234.

Regards

Regards,
Harold Ritter, CCIE #4168 (EI, SP)

Hello,

The entry that references ^1234$ allows all routes originated in neighboring AS 1234 only if the neighboring AS 1234 does not make use of prepend. If neighboring AS 1234 prepends its own AS one or more times, updates will not pass. ^1234$ means "only a single 1234 in AS path and nothing else". You need something like ^(1234_)+$ to allow all updates from neighboring AS 1234 under any circumstances.

Kind Regards,

M.