03-07-2018 04:48 PM - edited 03-05-2019 10:03 AM
hi,
i have a continous range oF AS
65003 65004 65005......65010
how to shrink them to one? with regex
Thanks
03-08-2018 05:11 AM - edited 03-08-2018 05:52 AM
Hello
Try
ip as-path access-list 10 permit ^65003_65010$
show ip bgp regexp ^65003_65010$
res
Pail
03-09-2018 03:39 PM
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$
03-10-2018 10:49 PM
65003 65004 ... 65010
would be covered with REGEX
6500[3-9]|65010
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide