VRF Leak Route Between Global and VRF Routing Table
VRF Leak Route Between Global and VRF Routing Table
PNETLAB Store
PNETLab.com
Lab Topology:
The lab network topology is illustrated below:
Lab Objective:
The objective of this lab exercise is for you to learn and understand how to configure VRF Leak
Route between Global and VRF Routing Table.
Task:
R1 and interface e0/0 of R2 belong to GLOBAL Table. R3 and interface e0/1 of R2 belong to VRF
YELLOW. We need Loopback 0 of R1 reach to Loopback 0 of R3.
Solution
Router R1 R2 R3
1
Download PNETLab Platform
PNETLAB Store
PNETLab.com
Task 2: Create Policy Base Routing on R2 and apply them in interface e0/1 of R2
R2:
!
route-map VRF_TO_GLOBAL permit 10
match ip address 100
set global
!
!
access-list 100 permit ip host 3.3.3.3 host 1.1.1.1
!
interface Ethernet0/1
description VRF_YELLOW
ip vrf forwarding YELLOW
ip address 10.2.3.2 255.255.255.0
ip policy route-map VRF_TO_GLOBAL
!
Let’s me explain:
- In spite of the ip access-list 100 and route-map VRF_TO_GLOBAL of R2 are matched
packet from R3’s Loopback 0 to R1’s Loopback 0 as below:
R2#show ip access-lists
Extended IP access list 100
10 permit ip host 3.3.3.3 host 1.1.1.1 (10 matches)
R2#
R2#show route-map all
STATIC routemaps
route-map VRF_TO_GLOBAL, permit, sequence 10
Match clauses:
ip address (access-lists): 100
Set clauses:
global
Policy routing matches: 10 packets, 1140 bytes
DYNAMIC routemaps
Current active dynamic routemaps = 0
But, on GLOBAL Table of R2 don’t have route to reach R3’s Loopback 0. We can verify again:
3
Download PNETLab Platform
PNETLAB Store
PNETLab.com
R2#show ip route