Re: exporting partial routing table

From: Mirco Orlandi <mirco.orlandi_at_gmail.com>
Date: Tue, 25 May 2010 12:04:02 +0200

Frog,
use export map to ADD RT 1:1 to routes you want to be imported in vrf RED.

ip vrf RED
 rd 1:1
 route-target both 1:1

ip vrf BLUE
 rd 1:2
 route-target both 1:2
 export map rm-BLUE

access-list 1 permit 100.100.100.0 0.0.0.255

route-map rm-BLUE permit 10
 match ip address 1
 set extcommunity rt 1:1 additive

Additive RT is tipical when you want leaking routes between VPN.
With "show ip bgp vpnv4 vrf RED 100.100.100.0/24" you should see that this
prefix have RT 1:2 + RT 1:1 attached.
Without "additive" you will lose RT 1:2, loosing also reachability of
100.100.100.0/24 from VPN BLUE on others PE.

HTH,
mirco.

On Tue, May 25, 2010 at 8:54 AM, Radioactive Frog <pbhatkoti_at_gmail.com>wrote:

> or this can be done this way: set excommunity rt <RED_VRF i.e. 1:1> in
> route
> map
>
>
> ip vrf RED
> rd 1:1
> route-target export 1:1
> route-target import 1:2
>
> ip vrf BLUE
> rd 1:2
> route-import 1:1
> export map BLUE
> route-target import 1:1
>
> route-map BLUE
> match ip address 1*
> set extcommunity rt 1:1 <--- tag all 100.100.100.x subnet with RT of 1:1*
>
> access-list 1 permit 100.100.100.0 0.0.0.255
>
>
>
> On Tue, May 25, 2010 at 4:50 PM, Radioactive Frog <pbhatkoti_at_gmail.com
> >wrote:
>
> > Thanks Tyson. Here is what I am trying to achieve and commands:
> >
> > export only 100.100.100.0/24 (blueVRF) routes into RED vrf
> >
> > ip vrf RED
> > rd 1:1
> > route-target export 1:1
> > route-target import 1:2
> >
> > ip vrf BLUE
> > rd 1:2
> > route-import 1:1
> > export map BLUE
> > route-target import 1:1
> >
> > route-map BLUE
> > match ip address 1
> >
> > access-list 1 permit 100.100.100.0 0.0.0.255
> >
> >
> > now the qusetion is with below config:
> > a) will it only export 100.100.100.0 subnet (acces-list 1)
> >
> >
> > ip vrf BLUE
> > rd 1:2
> > route-import 1:1
> > export map BLUE
> > route-target import 1:1
> >
> > OR
> >
> > I still need below 3 commands to export specific route.
> >
> > ip vrf BLUE
> > rd 1:2
> > route-import 1:1
> > route-export 1:2 <---------------this command +
> > export map BLUE <----------this command +
> > route-target import 1:1 <-----------this command
> >
> > thanks
> >
> > On Tue, May 25, 2010 at 2:50 PM, Tyson Scott
> >
> >
> > <tscott_at_ipexpert.com> wrote:
> >
> >> Well if all of the routes that you want to share are only on the same
> >> device
> >> you could separate the VRF's with different route targets and control
> >> which
> >> route-targets you import between VRF's.
> >>
> >> If this is not the case use the import maps using any combination of
> >> prefix-lists and communities you would like to accomplish the task. You
> >> didn't describe much as to how the routes are originating so there could
> >> be
> >> other possibilities but the above should suffice.
> >>
> >> Regards,
> >>
> >> Tyson Scott - CCIE #13513 R&S, Security, and SP
> >> Managing Partner / Sr. Instructor - IPexpert, Inc.
> >> Mailto: tscott_at_ipexpert.com
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: nobody_at_groupstudy.com [mailto:nobody_at_groupstudy.com] On Behalf Of
> >> Radioactive Frog
> >> Sent: Monday, May 24, 2010 11:44 PM
> >> To: Cisco certification
> >> Subject: VRF: exporting partial routing table
> >>
> >> trying to find quick and easy way - What is the best way to export
> partial
> >> routes into/between the VRF(s)
> >>
> >> VRF: red - 10 routes (192.168.1-10.x/24)
> >> VRF; blue - 10 routes ( 193.1.1-10.x/24)
> >>
> >> I want only 5 routes to export from RED_vrf to Blue VRF.
> >>
> >> route-target export exports everything.
> >>
> >> I haven't tried MAP with route-export so would like to see group's
> openion
> >> on quick way to do it.
> >>
> >> thanks
> >>
> >>
> >> 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 Tue May 25 2010 - 12:04:02 ART

This archive was generated by hypermail 2.2.0 : Tue Jun 01 2010 - 07:09:53 ART