Concept Guide

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 Dene a route-map export_ospfbgp_protocol.
DellEMC(config)route-map export_ospfbgp_protocol permit 10
3 Dene the matching criteria for the exported routes.
DellEMC(config-route-map)match source-protocol ospf
DellEMC(cong-route-map)match source-protocol bgp
This action species that the route-map contains OSPF and BGP as the matching criteria for exporting routes from vrf-red.
4 Congure the export target in the source VRF with route-map export_ospfbgp_protocol.
ip route-export 1:1 export_ospfbgp_protocol
5 Congure 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 Dene the route-map import_ospf_protocol.
DellEMC(config)route-map import_ospf_protocol permit 10
7 Dene the matching criteria for importing routes into VRF-blue.
DellEMC(config-route-map)match source-protocol ospf
This action species that the route-map contains OSPF as the matching criteria for importing routes into vrf-blue.
8 Congure 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 Congure the import target in the source VRF for reverse communnication with the destination VRF.
ip route-import 2:2
The show run output for the above conguration is as follows:
ip vrf vrf-Red
ip route-export 1:1 export_ospfbgp_protocol
ip route-import 2:2
! this action exports only the OSPF and BGP routes to other VRFs
!
ip vrf vrf-Blue
ip route-export 2:2
ip route-import 1:1 import_ospf_protocol
!this action accepts only OSPF routes from VRF-red even though both OSPF as well as BGP routes
are shared
Virtual Routing and Forwarding (VRF)
1037