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.

VRF import map does not work

Hello. I have a problem. I have two VRFs:

ip vrf customer1

description for_customer1

rd 65000:100

route-target export 65000:100

route-target import 65000:100

ip vrf customer2

description for_customer2

rd 65000:101

import map IMPORT_ROUTES

export map FROM_2_to_1

route-target export 65000:101

route-target import 65000:101

And routing tables:

R11#sh ip route vrf customer1

Routing Table: customer1

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

B    192.168.10.0/24 [200/0] via 6.6.6.6, 00:03:24

     172.16.0.0/24 is subnetted, 1 subnets

B       172.16.9.0 [20/0] via 192.168.22.1 (customer2), 00:03:24

     110.0.0.0/32 is subnetted, 1 subnets

C       110.110.110.11 is directly connected, Loopback11

C    192.168.21.0/24 is directly connected, FastEthernet1/0.21

R11#sh ip route vrf customer2

Routing Table: customer2

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

B    200.200.200.0/24 [20/0] via 192.168.22.1, 00:03:31

     172.16.0.0/24 is subnetted, 4 subnets

B       172.16.39.0 [20/0] via 192.168.22.1, 00:03:31

B       172.16.29.0 [20/0] via 192.168.22.1, 00:03:31

B       172.16.19.0 [20/0] via 192.168.22.1, 00:03:31

B       172.16.9.0 [20/0] via 192.168.22.1, 00:03:31

B    192.168.21.0/24 [20/0] via 192.168.22.1, 00:03:31

     9.0.0.0/32 is subnetted, 1 subnets

B       9.9.9.9 [20/0] via 192.168.22.1, 00:03:31

C    192.168.22.0/24 is directly connected, FastEthernet1/0.22

By import map IMPORT_ROUTES i want to import route 192.168.10.0/24 from vrf customer1 to customer2. Here is route-map config:

route-map IMPORT_ROUTES permit 10

match ip address prefix-list IMPORT_PREFIX

match extcommunity IMPORT

ip prefix-list IMPORT_PREFIX seq 5 permit 192.168.10.0/24

ip extcommunity-list standard IMPORT permit rt 65000:100

But obviously nothing gets imported between VRFs((( Where is the problem?

Everyone's tags (3)
1 ACCEPTED SOLUTION

Accepted Solutions
Cisco Employee

VRF import map does not work

Hi Volodymyr,

The "import map" statement is only used to further refine an import that is already performed by the "route-target import" statement. You therefore need to add "route-target import 65000:100" under "ip vrf customer2" for the "import map" statement to properly do its job.

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
2 REPLIES
Cisco Employee

VRF import map does not work

Hi Volodymyr,

The "import map" statement is only used to further refine an import that is already performed by the "route-target import" statement. You therefore need to add "route-target import 65000:100" under "ip vrf customer2" for the "import map" statement to properly do its job.

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

VRF import map does not work

Yeap, it helped))) Thanks

951
Views
0
Helpful
2
Replies
CreatePlease to create content