Re: MPLS VPN Route Target Rewrite

From: Tom Kacprzynski <tom.kac_at_gmail.com>
Date: Sun, 30 Jan 2011 10:02:02 -0600

Tharak,
Thank you for you response. Here is the output of these commands:

R6#sh ip route vrf VPN_A

Routing Table: VPN_A
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static
route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     155.1.0.0/24 is subnetted, 2 subnets
B 155.1.58.0 [200/0] via 150.1.5.5, 23:17:23
C 155.1.67.0 is directly connected, GigabitEthernet0/0.67
     172.16.0.0/24 is subnetted, 1 subnets
S 172.16.7.0 [1/0] via 155.1.67.7

Rack1R6#sh run | S ip vrf VPN_A
ip vrf VPN_A
 rd 100:1
 route-target export 100:1
 route-target import 100:1

It works correctly in term of importing it to the VPN_B routing table only,
but what I don't understand is why it's showing the one route
172.16.5.0/24in both BGP VPNv4 tables using the command
*show ip bgp vpnv4 all.*
*
*
Thank you,

TK

On Sun, Jan 30, 2011 at 12:22 AM, Abraham, Tharak
<tharakabraham_at_gmail.com>wrote:

> Hey Tom,
>
> Can you paste the following:-
>
> 1. "sh ip route vrf VPN_A"
> 2. "sh run | b ip vrf VPN_A"
>
>
> Tharak Abraham Luke
>
>
> On Sat, Jan 29, 2011 at 10:53 PM, Tom Kacprzynski <tom.kac_at_gmail.com>wrote:
>
>> Hello experts,
>> Doing a lab wiht MP-BGP and can't seem to figure out how is it possible to
>> get this output. When I do *show ip bgp vpnv4 vrf VPN_A *I don't see
>> 172.16.5.0/24 route, but when i do *show ip bgp vpnv4 all *I see that
>> same
>> route. Shouldn't both of them show the same information. I this lab (INE
>> 14.5) I'm asked to rewrite that prefix's route target and export it from
>> one VRF table to the VPN_A table.
>>
>> Rack1R6#*show ip bgp vpnv4 vrf VPN_A*
>> BGP table version is 41, local router ID is 150.1.6.6
>> Status codes: s suppressed, d damped, h history, * valid, > best, i -
>> internal,
>> r RIB-failure, S Stale
>> Origin codes: i - IGP, e - EGP, ? - incomplete
>>
>> Network Next Hop Metric LocPrf Weight Path
>> Route Distinguisher: 100:1 (*default for vrf VPN_A*)
>> <----- no 172.16.5.0/24 route (see below)
>> *>i155.1.58.0/24 150.1.5.5 0 100 0 ?
>> *> 155.1.67.0/24 0.0.0.0 0 32768 ?
>> *> 172.16.7.0/24 155.1.67.7 0 32768 ?
>>
>>
>> Rack1R6#*show ip bgp vpnv4 all*
>> BGP table version is 41, local router ID is 150.1.6.6
>> Status codes: s suppressed, d damped, h history, * valid, > best, i -
>> internal,
>> r RIB-failure, S Stale
>> Origin codes: i - IGP, e - EGP, ? - incomplete
>>
>> Network Next Hop Metric LocPrf Weight Path
>> Route Distinguisher: 100:1 (*default for vrf VPN_A*)
>> *>i155.1.58.0/24 150.1.5.5 0 100 0 ?
>> *> 155.1.67.0/24 0.0.0.0 0 32768 ?
>> **>i172.16.5.0/24 150.1.5.5 0 100 0 ?
>> <*---- 172.16.5.0/24
>> *> 172.16.7.0/24 155.1.67.7 0 32768 ?
>> Route Distinguisher: 100:2 (default for vrf VPN_B)
>> *>i155.1.5.0/24 150.1.5.5 0 100 0 ?
>> *> 155.1.76.0/24 0.0.0.0 0 32768 ?
>> **>i172.16.5.0/24 150.1.5.5 0 100 0 ?**
>> <*---- 172.16.5.0/24
>> *> 192.168.6.0 0.0.0.0 0 32768 ?
>> *> 192.168.7.0 155.1.76.7 0 32768 ?
>>
>>
>>
>>
>> Rack1R6#*show ip bgp vpnv4 all 172.16.5.0*
>> BGP routing table entry for 100:1:172.16.5.0/24, version 31
>> Paths: (1 available, best #1, *no table*)
>> Not advertised to any peer
>> Local
>> 150.1.5.5 (metric 66) from 150.1.4.4 (150.1.4.4)
>> Origin incomplete, metric 0, localpref 100, valid, internal, best
>> Extended Community: RT:100:55
>> Originator: 150.1.5.5, Cluster list: 150.1.4.4
>> mpls labels in/out nolabel/25
>> BGP routing table entry for 100:2:172.16.5.0/24, version 34
>> Paths: (1 available, best #1, table *VPN_B*)
>> Not advertised to any peer
>> Local, imported path from 100:1:172.16.5.0/24
>> 150.1.5.5 (metric 66) from 150.1.4.4 (150.1.4.4)
>> Origin incomplete, metric 0, localpref 100, valid, internal, best
>> Extended Community: RT:100:55
>> Originator: 150.1.5.5, Cluster list: 150.1.4.4
>> mpls labels in/out nolabel/25
>>
>>
>> Thank you for any help.. i'm really stuck on this and can't figure it out.
>> I
>> fee like i'm missing some piece of information.
>>
>>
>> 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 Sun Jan 30 2011 - 10:02:02 ART

This archive was generated by hypermail 2.2.0 : Tue Feb 01 2011 - 07:39:17 ART