Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

MPLS VPN Query

Please find my configuration attached.I got confused with the command "route-target export 65555:500" under "ip vrf Customer2". What does this command do?

Whats the effect of the same export command given under "ip vrf Customer1"??

How can we export route-target export 65555:500 from ip vrf Customer2 with rd 65555:103?

6 REPLIES
New Member

Re: MPLS VPN Query

Route Target Export command help you to Inject the customer routes to the other end VPN customer,means PE-PE.

IP vrf customer2

rd 65555:103

route-target export 65555:500

New Member

Re: MPLS VPN Query

The same export command is given under rd:65555:500 also. So whats the difference in giving it under 65555:103?

Cisco Employee

Re: MPLS VPN Query

Aneesh,

There is a major difference between the route distinguisher (RD) and the route target extended community.

The RD only purpose is to ensure that the VPNv4 routes injected in the SP core will be unique. The uniqueness is achieved by prepending the ipv4 prefixes received from the PE with the RD value.

The purpose of the route-target extended community is to control in which VRFs the exported prefixes are allowed to be imported.

Regards

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México
New Member

Re: MPLS VPN Query

Thanks HAROLD. Your comment was really helpful. I have just one more doubt. In the below configuration vrf CUSTOMER1 is exporting its routes with route-target 61515:100. Also vrf MANAGEMENT is exporting and importing 61515:100.

So vrf MANAGEMENT will import two sets of routes with route-target 61515:100, one its same and one from vrf CUSTOMER1. Can you just explain how this whole configuration works.

How will this import-map come into picture? How will import-map only apply to routes from vrf CUSTOMER1?

**********************************************

ip vrf MANAGEMENT

rd 61515:100

import map INBOUND-TRAFFIC

export map OUTBOUND-TRAFFIC

route-target export 61515:100

route-target import 61515:100

ip vrf CUSTOMER1

rd 61515:103

route-target export 61515:103

route-target export 61515:100

route-target import 61515:103

route-target import 61515:10

route-map OUTBOUND-TRAFFIC permit 10

match ip address 20

set extcommunity rt 61515:10

route-map INBOUND-TRAFFIC permit 10

match ip address prefix-list MGMT-IPS

access-list 20 permit 10.211.2.0 0.0.0.255 log

access-list 20 permit 10.211.255.0 0.0.0.3 log

ip prefix-list MGMT-IPS seq 10 permit 10.168.1.0/24

ip prefix-list MGMT-IPS seq 20 permit 10.168.126.0/24

**********************************************

Cisco Employee

Re: MPLS VPN Query

Aneesh,

1. Prefixes from CUSTOMER1 VRF first need to match the "route-target import 61515:100".

2. Prefixes that went through step 1 successfully are then subjected to the import-map.

3. If both step 1 and 2 are successful, the prefixes are imported in the MANAGEMENT VRF.

Regards

Harold Ritter
Sr. Technical Leader
CCIE 4168 (R&S, SP)
harold@cisco.com
México móvil: +52 1 55 8312 4915
Cisco México 
Paseo de la Reforma 222 Piso 19
Cuauhtémoc, Juárez
Ciudad de México, 06600
México

Re: MPLS VPN Query

Hi,

route-target export under the vrf configuration will allow you to advertise the route which are taged with route-target value configured in route-target export command, in your case it is "65555:500" so here you are advertising routes with the RT of 65555:500 to your neighbor.

regards

Devang Patel

227
Views
7
Helpful
6
Replies