[c-nsp] leaking only a couple routes between 2 vrf's
Paul Wells
paul at lituya.com
Fri Nov 2 12:51:19 EDT 2012
Hi Aaron,
If you have a recent IOS release you can use the "route-replicate"
command to do this directly without requiring BGP. For example:
vrf definition blue
!
address-family ipv4
route-replicate from vrf red unicast all route-map red2blue
exit-address-family
!
vrf definition red
!
address-family ipv4
exit-address-family
!
ip prefix-list red2blue seq 5 permit 90.0.0.0/8 le 32
ip prefix-list red2blue seq 10 permit 91.0.0.0/8 le 32
!
route-map red2blue permit 10
match ip address prefix-list red2blue
!
R1#sh ip ro vrf red
Routing Table: red
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
...
+ - replicated route, % - next hop override
Gateway of last resort is not set
10.0.0.0/8 is variably subnetted, 2 subnets, 2 masks
C 10.1.0.0/24 is directly connected, Ethernet0/0
L 10.1.0.180/32 is directly connected, Ethernet0/0
90.0.0.0/24 is subnetted, 2 subnets
O 90.1.0.0 [110/11] via 10.1.0.181, 00:30:26, Ethernet0/0
i L1 90.2.0.0 [115/20] via 10.1.0.181, 00:00:05, Ethernet0/0
91.0.0.0/24 is subnetted, 1 subnets
O 91.1.0.0 [110/11] via 10.1.0.181, 00:30:16, Ethernet0/0
92.0.0.0/24 is subnetted, 1 subnets
O 92.1.0.0 [110/11] via 10.1.0.181, 00:30:16, Ethernet0/0
R1#sh ip ro vrf blue
Routing Table: blue
Codes: L - local, C - connected, S - static, R - RIP, M - mobile, B - BGP
...
+ - replicated route, % - next hop override
Gateway of last resort is not set
90.0.0.0/24 is subnetted, 2 subnets
O + 90.1.0.0 [110/11] via 10.1.0.181 (red), 00:30:38, Ethernet0/0
i L1+ 90.2.0.0 [115/20] via 10.1.0.181 (red), 00:00:17, Ethernet0/0
91.0.0.0/24 is subnetted, 1 subnets
O + 91.1.0.0 [110/11] via 10.1.0.181 (red), 00:30:28, Ethernet0/0
This is documented as part of the "Easy Virtual Network" feature, but
can be used by itself. See, for example:
http://www.cisco.com/en/US/docs/ios-xml/ios/evn/configuration/xe-3s/Configuring_Easy_Virtual_Network_Shared_Services.html
Regards,
Paul
On 11/01/2012 04:28 PM, Aaron wrote:
> What is a clean/easy way to leak a couple routes between two vrf's ? if you
> have links to docs or sites that explain this or you know how , lemme know
> please.
>
> Aaron
>
> _______________________________________________
> cisco-nsp mailing list cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>
More information about the cisco-nsp
mailing list