Let's say I have the following four networks:
- Network A: 10.0.1.0/24
- Network B: 10.0.0.0/24
- Network C: 10.0.1.0/24
- Network D: 10.0.0.0/24
I would like to connect networks A and B together, and do the same between C and D (while A/B can't access C/D). With only a single router, could this be configured by setting two different VRF as shown below ?
If yes, what would happens if I set up BGP to exchange route between the two VRF, like in the following link: https://www.cisco.com/c/en/us/support/docs/multiprotocol-label-switching-mpls/multiprotocol-label-switching-vpns-mpls-vpns/47807-routeleaking.html#diffvrfs