Re: Tag BGP external routes?

From: Mirco Orlandi <mirco.orlandi_at_gmail.com>
Date: Mon, 22 Mar 2010 15:50:09 +0100

Hi Ivan,
using "tag" inside redistribution statement, you are setting tag 999 to all
routes you are redistributing.

To match the task requirement, you have to set tag 999 only to external
eigrp routes
On R1:

route-map set-tag permit 10
  match route-type external
  set tag 999

route-map set-tag permit 20

router ospf 1
  redistribute eigrp 1 subnets route-map set-tag

but..., if you prefere, you can set tag 999 inside statement and override
the tag for non-external routers:

route-map set-tag permit 10
  match route-type external

route-map set-tag permit 20
  set tag 1

router ospf 1
  redistribute eigrp 1 subnets tag 999 route-map set-tag

I labbed it with Adv.IP.Svcs 12.4(15)T8
I think first solution is more common, and clear.

-mirco.

On Mon, Mar 22, 2010 at 2:33 PM, Ivan Hrvatska <ivanzghr_at_gmail.com> wrote:

> Tagging eBGP prefixes. Hmm...I see why are you confused. I'm also
> confused. Cause when you redistribute BGP into EIGRP those prefixes
> are external to EIGRP. After that you redistribute them into OSPF.
> During that redistribution they will be tagged using match route-type
> external no matter what protocol originates that prefixes...
>
> Well, let's just say that task is "tag all external BGP prefixes with
> tag 999". ?
>
> On Mon, Mar 22, 2010 at 1:26 PM, Marc La Porte <marc.a.laporte_at_gmail.com>
> wrote:
> > Other question: do you mean tagging eBGP prefixes? Or prefixes which were
> > redistributed into BGP?
> >
> > On Mon, Mar 22, 2010 at 13:04, Ivan Hrvatska <ivanzghr_at_gmail.com> wrote:
> >>
> >> How do you tag external BGP prefixes? Let's say you have two routers
> >> in EIGRP domain. One router (R2) runs EIGRP and BGP with some peers.
> >> Other router runs EIGRP and it is also ASBR OSPF router (R1). On R1
> >> you redistribute EIGRP into OSPF and during redistribution you have to
> >> tag BGP external routes with some tag. Is this enough:
> >>
> >> route-map MAP per 10
> >> match route-type external
> >>
> >> route-map MAP per 100
> >>
> >> router ospf 1
> >> redistribute eigrp 1 subnets tag 999 route-map MAP
> >>
> >> ??
> >>
> >>
> >> Blogs and organic groups at http://www.ccie.net
> >>
> >> _______________________________________________________________________
> >> Subscription information may be found at:
> >> http://www.groupstudy.com/list/CCIELab.html
>
>
> Blogs and organic groups at http://www.ccie.net
>
> _______________________________________________________________________
> Subscription information may be found at:
> http://www.groupstudy.com/list/CCIELab.html

Blogs and organic groups at http://www.ccie.net
Received on Mon Mar 22 2010 - 15:50:09 ART

This archive was generated by hypermail 2.2.0 : Thu Apr 01 2010 - 07:26:35 ART