08-10-2013 07:33 AM - edited 03-04-2019 08:43 PM
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?
Solved! Go to Solution.
08-10-2013 08:35 AM
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
08-10-2013 08:35 AM
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
08-10-2013 10:28 AM
Yeap, it helped))) Thanks
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide