From: John Matijevic (matijevi@bellsouth.net)
Date: Wed Jun 18 2003 - 16:43:37 GMT-3
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
This archive was generated by hypermail 2.1.4 : Fri Jul 04 2003 - 11:11:00 GMT-3