From: Anthony Pace (anthonypace@fastmail.fm)
Date: Wed Jun 18 2003 - 21:57:23 GMT-3
This regular expression for my neigbors routes and my neigbors directly
connected neigbors ^100_[0-9]*$ has been discussed in a couple of places,
but I was wondering if anyone knows of a way to allow that second element
to be prepended. I notice that some of my neigbors neigbors have their AS
prepened several times (maybe they are in a failover situation).
Anyone know the real world version of this conecept?
The expression would be ^Starting in AS100 with anything as the next
element and that element may occur an infinite number of times in the
string$
Anthony Pace
On Wed, 18 Jun 2003 15:43:37 -0400, "John Matijevic"
<matijevi@bellsouth.net> said:
> Nark, I agree with Jin,
> ip as-path access-list 1 permit ^100_[0-9]*$
>
> Here is the reference for the command.
>
>
> http://www.cisco.com/en/US/tech/tk365/tk80/technologies_tech_note09186a0080094a92.shtml
> Sincerely,
> Matijevic
>
> ----- Original Message -----
> From: "Jung, Jin" <jin.jung@lmco.com>
> To: "'Chris Home'" <clarson52@comcast.net>; <nsevasti@cisco.com>;
> <ccielab@groupstudy.com>
> Sent: Wednesday, June 18, 2003 3:22 PM
> Subject: RE: Regular expression
>
>
> > Hi Chris,,
> > Nice try but that will allow all the routes that are originated from 100.
> >
> > The question asks "AS 100 and directly connected only"..which is one hop
> > from 100 only.
> >
> > So I think ^100_[0-9]*$ should work, --- I think.
> >
> > This will only allow originated AS and directly connected ASs only,
> >
> >
> >
> > Jin jung....
> >
> >
> > -----Original Message-----
> > From: Chris Home [mailto:clarson52@comcast.net]
> > Sent: Wednesday, June 18, 2003 2:36 PM
> > To: nsevasti@cisco.com; ccielab@groupstudy.com
> > Subject: Re: Regular expression
> >
> >
> > Just a guess. I would be looking for the right answer too but...
> >
> > route-map something in
> >
> > neigh x.x.x.x route-map something in
> >
> > route-map something permit 10
> > match add as-path 2
> >
> >
> > ip as-path access-list 2 permit ^100_
> >
> > I would think this would allow anything in that originated from 100 and
> > include anything it is dorectly connected too.
> >
> >
> >
> > ----- Original Message -----
> > From: <nsevasti@cisco.com>
> > To: <ccielab@groupstudy.com>
> > Sent: Wednesday, June 18, 2003 8:57 AM
> > Subject: Regular expression
> >
> >
> > > Hi,
> > > can anyone help with a regular expression that would permit bgp to
> > > accept
> > from a neighbor(EBGP) using an ip as-path access-list just the routes that
> > originate in the neighbor's AS and it's DIRECTLY connected AS's?
> > >
> > > Like if the neighbor is in AS 100 and directly connected with it are
> > > 2000
> > and 30000, the expression would match
> > >
> > > 100
> > > 100 2000
> > > 100 30000
> > >
> > > and any other AS's DIRECTLY connected to 100
> > >
> > > Bye,
> > > Nark
> > >
> > >
> > > ______________________________________________________________________
> > > _
> > > You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> > >
> > > Subscription information may be found at:
> > > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > _______________________________________________________________________
> > You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
> >
> >
> > _______________________________________________________________________
> > You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
> >
> > Subscription information may be found at:
> > http://www.groupstudy.com/list/CCIELab.html
>
>
> _______________________________________________________________________
> You are subscribed to the GroupStudy.com CCIE R&S Discussion Group.
>
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html
>
-- Anthony Pace anthonypace@fastmail.fm-- http://www.fastmail.fm - Email service worth paying for. Try it for free
This archive was generated by hypermail 2.1.4 : Fri Jul 04 2003 - 11:11:00 GMT-3