From: Anthony Pace (anthonypace@fastmail.fm)
Date: Thu Jun 19 2003 - 22:11:04 GMT-3
The * means the element may contain any combination of numbers [0-9]. If
your neighbor is AS100 then:
^100_[0-9]*$ will catch your neighbors neigbors routes
^100$ will catch you neighbros routes
or to catch both you can use ^100 ?[0-9]*$
I tried ^100_[[0-9]*]*$ but it did not work. I want to explicitly name
the first element ^100 then say any other element may occur zero,one or
many times (as long as it is the same element over and over again) this
would be my neigbors neigbors with PREPENDS.
Anthony Pace
>
>
>
>
> On Thu, 19 Jun 2003 11:48:43 -0400, "Snow, Tim" <timothy.snow@eds.com>
> said:
> > I thought the * after the [] is a reoccurance of it?
> >
> >
> >
> > -----Original Message-----
> > From: Anthony Pace [mailto:anthonypace@fastmail.fm]
> > Sent: Wednesday, June 18, 2003 8:57 PM
> > To: 'John Matijevic'; Jung, Jin; 'Chris Home'; nsevasti@cisco.com;
> > ccielab@groupstudy.com
> > Subject: Re: Regular expression for my neighbors neighbors
> >
> >
> > 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_note09186a00800
> > 94a92.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
> >
> >
> > _______________________________________________________________________
> > 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 - Access all of your messages and folders
> wherever you are
-- Anthony Pace anthonypace@fastmail.fm-- http://www.fastmail.fm - I mean, what is it about a decent email service?
This archive was generated by hypermail 2.1.4 : Fri Jul 04 2003 - 11:11:01 GMT-3