From: אלי קושרובסקי (eli_kosh@netvision.net.il)
Date: Fri Jan 05 2007 - 04:52:07 ART
Hi,
The export map can preform Route-target manipulation based on Creteria (Like
ACL / Prefix-list) unlike the regular import/export statement which treats
all of the routes in the VRF. One more thing to be aware of is when the
route-map manipulates the route-targeta on a prefix it basic overwrites the
previous values - the native route-targets of the VRF are deleted.
Thats the reason in your example the the prefix in TEST1 prefix list is
tagged only with the community in the route-map. This default behaviour can
be changed by entering the key word addtive in the end of the "set"
statement in the route-map. This will add the route-map route-targets to the
VRF route-target.
Exmple 1:
Ip vrf try
Rd 1:1
Route-target both 100:100
Export map rt
!
Access-list 1 permit 1.1.1.1
!
Route-map rt permit 10
Match ip address 1
Set exmmunity rt 1:1
Outcome : Prefix 1.1.1.1 will be tagged with 1:1
Exmple 2:
Ip vrf try
Rd 1:1
Route-target both 100:100
Export map rt
!
Access-list 1 permit 1.1.1.1
!
Route-map rt permit 10
Match ip address 1
Set exmmunity rt 1:1 additive
Outcome : Prefix 1.1.1.1 will be tagged with 1:1 and 100:100
This level of granularity cannot be reached with the regulat import/export
statements
Hope it helped
Eli
-----Original Message-----
From: nobody@groupstudy.com [mailto:nobody@groupstudy.com] On Behalf Of
Vishal Patel
Sent: Thursday, January 04, 2007 6:25 AM
To: ccielab@groupstudy.com
Subject: Export MAP and Import MAP
Hey guys,
I don't understand MPLS very well.
I want to understand import - map and exports - maps properly.
I have a sample config below :
ip vrf TEST
rd 24233:225
export map EXPORT-TEST
route-target export 24233:225
route-target import 24233:225
route-target import 24233:9
MPLS-PE#sh route-map EXPORT-TEST
route-map EXPORT-TEST, permit, sequence 10
Match clauses:
ip address prefix-lists: TEST1
Set clauses:
extended community RT:24233:8 RT:24233:225
Policy routing matches: 0 packets, 0 bytes
MPLS-PE#sh ip prefix-list TEST1
ip prefix-list TEST1: 1 entries
seq 5 permit 172.30.225.0/24 le 32
I don't understand , why subnet 172.30.225.0/24 is tagged with 24233:8 and
24233:225 ?
Can't this just be achieved by route-target import/export ?
What special thing is the export map doing ?
I did some research on cisco website , but wasn't much of help.
So explanation would be helpful.
Thanks
Vishal
This archive was generated by hypermail 2.1.4 : Thu Feb 08 2007 - 23:46:55 ART