cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1861
Views
23
Helpful
2
Replies

Route target(RT)

mukendi
Level 1
Level 1

What is route target and what is the import and export parameters mean in simple terms?

2 Replies 2

sivakondalarao
Level 1
Level 1

Hi,

route targets are the way to transfer BGP extneded communities over MPLS vpn.

route-target export is used send particular vrf BGP extended community.

remote side route-target import is used to receive BGP community value.

regards

skrao

mheusing
Cisco Employee
Cisco Employee

Hi,

In a MPLS L3VPN many customer sites and many customers are connected to the same SP. The SPs routers use BGP (MP-BGP with VPNv4) to distribute the customer routes amongst each other. In simple terms:

The problem to be solved: which route should be seen where? How does one router know, if an update belongs to customer A or customer B (or both)?

This is the purpose of the route-targets.

If an SP router (PE) inserts a customer route into BGP your "route-target export" statement will add the specified route-targets. As described in the previous post, they are BGP extended communities and will be sent in the BGP updates.

Think of them as tags indicating a certain route property, like VPN membership, "belongs to customer A" and such.

If a PE receives an update from other PE routers it will check to which customer(s) (precisely: which VRF(s)) this update belongs.

The "route-target import" statements mean: "In case an update has the route-target X:Y then it belongs to this customer (i.e. VRF)".

In brief:

- the PE taking the route into BGP marks with RTs (route-target export)

- the other PEs look for that RT (route-target import) to know who should get which route.

Hope this helps! Please rate all posts.

Regards, Martin