Chuck,
You need to make the deny '^ .*'. Assuming you are putting this on an
EBGP router peering with AS.
"ip as-path access-list 55 deny ^ .*"
The '^' is an anchor in regex and forces a match at the beginning of the
input string you are comparing. IE: Whatever is after the '^' m
It is no need test...the as-path-accesslist of chunk is doing what you want..
it is no problem by my practise..
- Original Message -
From: "Julian Eccli"
To:
Sent: Monday, October 29, 2001 3:40 PM
Subject: Re: Second opinion on Regular Expression [7:24460]
> Chuck,
>
You are correct. The ^ character symbolizes the beginning of the AS
path so you're as-path access list looks like it should work exactly as
you think. I'm not aware of the ^ having any other meaning in this
context. I used to have a link on regular expressions but I can't seem
to find it. If I
I'll save ya the trouble John:
http://www.cisco.com/univercd/cc/td/doc/product/atm/c8540/12_0/13_19/cmd_ref/appc.htm
Dave
John Neiberger wrote:
>
> You are correct. The ^ character symbolizes the beginning of the AS
> path so you're as-path access list looks like it should work exactly as
> y
Interestingly, that link has the precise example that Chuck is looking
for and it--like Julian--recommends adding the " .*" to the access list.
I just did a "show ip bgp regexp" on one of our routers and didn't see
any difference between the following:
show ip bgp regexp $1239 .*
show ip bgp re
opinion on Regular Expression [7:24460]
Chuck,
You need to make the deny '^ .*'. Assuming you are putting this on an
EBGP router peering with AS.
"ip as-path access-list 55 deny ^ .*"
The '^' is an anchor in regex and forces a match at the beginni
n the AS Path list. this means the .*
HTH
Chuck
-Original Message-
From: John Neiberger [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 7:12 PM
To: Chuck Larrieu; [EMAIL PROTECTED]
Subject: RE: Second opinion on Regular Expression [7:24460]
This is interesting. I was wond
tries in the AS Path list. this means the .*
|
| HTH
|
| Chuck
|
| -Original Message-
| From: John Neiberger [mailto:[EMAIL PROTECTED]]
| Sent: Tuesday, October 30, 2001 7:12 PM
| To: Chuck Larrieu; [EMAIL PROTECTED]
| Subject: RE: Second opinion on Regular Expression [7:
[mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 30, 2001 7:12 PM
To: Chuck Larrieu; [EMAIL PROTECTED]
Subject: RE: Second opinion on Regular Expression [7:24460]
This is interesting. I was wondering about the addition of the .* to the
access list. When I tested this using "show ip bgp
> ^1239_ would match any route coming from AS1239 *including* routes
> originated in AS1239. This is because the underscore can match any
> character including whitespace and the $ end-of-path anchor.
>
Probably work in show command but not in the IOS policy. At the very least
the '^1239_' is v
In all of the examples I mentioned I could have included output from our
router to show what I was seeing but I didn't in the interest of
brevity. Perhaps the particular show command I was using is a little
looser in its matching than other elements of IOS would be.
Also, I think we're using dif
11 matches
Mail list logo