only the routes (OSPF and BGP) that satisfy the matching criteria defined in route-map
export_ospfbgp_protocol are exposed to VRF-blue.
While importing these routes into VRF-blue, you can further specify match conditions at the import end
to define the filtering criteria based on which the routes are imported into VRF-blue. You can define 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 filtering
criteria defined in the import_ospf_protocol route-map. For a reply communication, VRF-blue is
configured with a route-export tag. This value is then configured as route-import tag on the VRF-Red.
To configure route leaking using filtering criteria, perform the following steps:
1.
Configure VRF-red using the following command:
ip vrf vrf-redinterface
tengigabitethernet 1/11ip vrf forwarding vrf-redip address x.x.x.x 255.x.x.x
A non-default VRF named VRF-red is created and the interface 1/11 is assigned to this VRF.
2.
Define a route-map export_ospfbgp_protocol.
Dell(config)route-map
export_ospfbgp_protocol permit 10
3.
Define the matching criteria for the exported routes.
Dell(config-route-map)match source-
protocol ospfDell(config-route-map)match source-protocol bgp
This action specifies that the route-map contains OSPF and BGP as the matching criteria for
exporting routes from vrf-red.
4.
Configure the export target in the source VRF with route-map export_ospfbgp_protocol.
ip route-
export 1:1 export_ospfbgp_protocol
5.
Configure VRF-blue.
ip vrf vrf-blue interface tengigabitethernet 1/22ip vrf
forwarding VRF-blueip address x.x.x.x 255.x.x.x
A non-default VRF named VRF-blue is created and the interface 1/22 is assigned to it.
6.
Define the route-map import_ospf_protocol.
Dell(config)route-map import_ospf_protocol
permit 10
7.
Define the matching criteria for importing routes into VRF-blue.
Dell(config-route-map)match
source-protocol ospf
This action specifies that the route-map contains OSPF as the matching criteria for importing routes
into vrf-blue.
8.
Configure 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.
Configure 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 configuration 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
1114
Virtual Routing and Forwarding (VRF)
Summary of Contents for S4820T
Page 1: ...Dell Configuration Guide for the S4820T System 9 8 0 0 ...
Page 282: ...Dell 282 Control Plane Policing CoPP ...
Page 622: ...Figure 81 Configuring Interfaces for MSDP 622 Multicast Source Discovery Protocol MSDP ...
Page 623: ...Figure 82 Configuring OSPF and BGP for MSDP Multicast Source Discovery Protocol MSDP 623 ...
Page 629: ...Figure 86 MSDP Default Peer Scenario 2 Multicast Source Discovery Protocol MSDP 629 ...
Page 630: ...Figure 87 MSDP Default Peer Scenario 3 630 Multicast Source Discovery Protocol MSDP ...
Page 751: ...10 11 5 2 00 00 05 00 02 04 Member Ports Te 1 2 1 PIM Source Specific Mode PIM SSM 751 ...
Page 905: ...Figure 112 Single and Double Tag First byte TPID Match Service Provider Bridging 905 ...
Page 979: ...6 Member not present 7 Member not present Stacking 979 ...
Page 981: ...storm control Storm Control 981 ...
Page 1103: ...Figure 134 Setup OSPF and Static Routes Virtual Routing and Forwarding VRF 1103 ...