I came across a setup where a router with traffic coming into an interface belonging to ipv4 vrf A for example exits an interface that belongs to the global routing instance. For this destination X, the route on vrf A points to a next hop in vrf default learned via bgp.
From what i understand, the only way to leak global/default routes into a vrf is by entering a static route on the vrf with an egress interface belonging to the global routing table. But from the above scenario, vrf A learned the route via ebgp and there are no static vrf A entries for destination X.
Checking further, the next hop Y route entry in the global routing table is more specific given its mask. The next hop W for destination Y shows a static vrf A entry pointing to an egress interface belonging to the default/global routing table.
If i leak a network say 18.104.22.168/24 via a static vrf A statement with an egress interface in the global routing table say gi0/1, does that mean that all routes vrf A learns with a next hop that is within the 22.214.171.124/24 range will be considered in routing decisions?
You are abso right that the leaking works by pointing static entry but sometimes if you don't want to leak the route(some countires forces not to leak route for security), during that time you need to create a PE-CE relationship which could also work on dynamic protocol.
Thanks Shivlu for the response. I believe i figured it out; after leaking the interface belonging to the global routing table to the vrf, peering to another router via that interface was established using the vrf.
1. Introduction Internet security is important with the increasing
attacks that are happening every day. Many internet and browsing
security solutions exist, but some are not very easy to use or maybe the
question is how can I enable them? In this referen...
Cisco Software Manager Server API Guide This document describes the
programmatic interfaces, RESTful APIs, which are supported by Cisco
Software Manager Server (CSM Server). Overview CSM Server supports a set
of finite RESTful APIs. The first step to use ...
If you are using Cisco's new linux-based Cisco Software Manager server,
then you probably want to make sure there is a startup service for
it.I'll assume that you've already installed the CSM server on a
systemd-based linux system. The commands given belo...