Users Guide
While importing these routes into VRF-blue, you can further specify match conditions at the import end to dene the ltering criteria
based on which the routes are imported into VRF-blue. You can dene a route-map import_ospf_protocol and then specify the
match criteria as OSPF using the match source-protocol ospf command.
You can then use the ip route-import route-map command to import routes matching the ltering criteria dened in the
import_ospf_protocol route-map. For a reply communication, VRF-blue is congured with a route-export tag. This value is then
congured as route-import tag on the VRF-Red.
To congure route leaking using ltering criteria, perform the following steps:
1. Congure VRF-red:
ip vrf vrf-red
interface-type slot/port
ip vrf forwarding VRF-red
ip address ip—address mask
A non-default VRF named VRF-red is created and the interface is assigned to this VRF.
2. Dene a route-map export_ospfbgp_protocol.
Dell(config)route-map export_ospfbgp_protocol permit 10
3. Dene the matching criteria for the exported routes.
Dell(config-route-map)match source-protocol ospf
Dell(cong-route-map)match source-protocol bgp
This action species that the route-map contains OSPF and BGP as the matching criteria for exporting routes from vrf-red.
4. Congure the export target in the source VRF with route-map export_ospfbgp_protocol.
ip route-export 1:1 export_ospfbgp_protocol
5. Congure VRF-blue.
ip vrf vrf-blue
interface-type slot/port
ip vrf forwarding VRF-blue
ip address ip—address mask
A non-default VRF named VRF-blue is created and the interface 1/22 is assigned to it.
6. Dene the route-map import_ospf_protocol.
Dell(config)route-map import_ospf_protocol permit 10
7. Dene the matching criteria for importing routes into VRF-blue.
Dell(config-route-map)match source-protocol ospf
This action species that the route-map contains OSPF as the matching criteria for importing routes into vrf-blue.
8. Congure the import target in VRF-blue with route-map import_ospf_protociol.
ip route-import 1:1 import_ospf_protocol
When you import routes into VRF-blue using the route-map import_ospf_protocol, only OSPF routes are imported into VRF-
blue. Even though VRF-red has leaked both OSPF as well as BGP routes to be shared with other VRFs, this command imports
only OSPF routes into VRF-blue.
9. Congure the import target in the source VRF for reverse communnication with the destination VRF.
ip route-import 2:2
Virtual Routing and Forwarding (VRF)
953










