cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
985
Views
0
Helpful
3
Replies

BGP AS Regex Question

yasir.ilyas
Level 1
Level 1

hi,

 

i have a continous  range oF AS

 

65003  65004 65005......65010

 

how  to  shrink them to  one? with regex

 

Thanks

3 Replies 3

Hello

 

Try
ip as-path access-list 10 permit ^65003_65010$
show ip bgp regexp ^65003_65010$

 

res

Pail


Please rate and mark as an accepted solution if you have found any of the information provided useful.
This then could assist others on these forums to find a valuable answer and broadens the community’s global network.

Kind Regards
Paul

Does  it imply the  whole pattern is  in one prefix  or  they in separate  prefixes? I want these  ASNs  in separate let  me rephrase  my  question, may b wasnt  clear.

 

i have  bunch of  individual sites  each having its  own AS  number with separte prefixes. I  am trying to  configure the  Transit  (DC) site  to match  all those  individual  ASns  but instead  matching  them  separate  with

_65003$

_65004$

 and so on

 

is there   a short cut while  i permit  all those  individual ASNs. 

 

ip as-path access-list name permit _^65003$

 

65003 65004 ... 65010

would be covered with REGEX

6500[3-9]|65010