cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
688
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
Cisco Employee
Cisco Employee

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

Harold Ritter
Sr Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México
Paseo de la Reforma 222
Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

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.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card