Skip to content

Commit

Permalink
Cleanup and finalize the Multi-VRF with Hosts example
Browse files Browse the repository at this point in the history
  • Loading branch information
ipspace committed Apr 5, 2022
1 parent 1c7f2ba commit 23ed0f9
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
15 changes: 10 additions & 5 deletions VRF/vrf-lite-hosts/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,20 @@ The `multi-vrf.yml` topology contains two isolated VRFs:
* VRF *red* containing Linux hosts h1 and h2
* VRF *blue* containing Linux hosts h3 and h4

![Isolated VRFs topology](vrf-lite-simple.png)

After starting the lab, h1 should be able to ping h2 but not h3 or h4, and h3 should be able to ping h4 but not h1 or h2.

## Inter-VRF Route Leaking

The `vrf-route-leaking.yml` topology contains two VRFs:
The `vrf-route-leaking.yml` topology contains three VRFs:

* VRF *red* containing Linux hosts h1 and h2
* VRF *blue* containing Linux hosts h3 and h4
* VRF *red* containing Linux host h1
* VRF *blue* containing Linux host h2
* VRF *common* contains Linux host srv

A simple common services VPN topology is set up to enable h1 and h2 to communicate with srv, but not with each other:

Routes from *red* VRF are imported into *red* and *blue* VRF. Likewise, the routes from *blue* VRF are imported into both VRFs.
![Common services VRFs](vrf-lite-common.png)

After starting the lab, all hosts (h1..h4) should be able to ping all other hosts.
After starting the lab, h1 and h2 should be able to ping srv but not each other.
1 change: 1 addition & 0 deletions VRF/vrf-lite-hosts/multi-vrf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ vrfs:
nodes:
rtr:
module: [ vrf ]
device: eos
h1:
h2:
h3:
Expand Down
Binary file added VRF/vrf-lite-hosts/vrf-lite-common.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added VRF/vrf-lite-hosts/vrf-lite-simple.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 9 additions & 10 deletions VRF/vrf-lite-hosts/vrf-route-leaking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,24 @@ defaults.device: linux

vrfs:
red:
import: [ red, blue ]
import: [ red, common ]
blue:
import: [ red, blue ]
import: [ blue, common ]
common:
import: [ red, blue, common ]

nodes:
rtr:
module: [ vrf ]
bgp.as: 65000
device: eos
h1:
h2:
h3:
h4:
srv:

links:
- rtr: { vrf: red }
h1:
- rtr: { vrf: red }
- rtr: { vrf: blue }
h2:
- rtr: { vrf: blue }
h3:
- rtr: { vrf: blue }
h4:
- rtr: { vrf: common }
srv:

0 comments on commit 23ed0f9

Please sign in to comment.