Courseiva
ENCOR lab 14

VRF-lite: two tenants with the same addresses on one router

Separate two tenants that use identical address ranges with VRFs, carry each across one link on its own 802.1Q subinterface, and run OSPF per VRF.

About 40 minutes 6 devices 4 tasksAdvanced

Scenario

Two departments, RED and BLUE, share router R1 and use the same addressing: each LAN is 10.1.1.0/24 with gateway 10.1.1.1, and each has servers at 10.2.2.10 behind R2. R2 is already configured (VRFs RED rd 65000:10 and BLUE rd 65000:20, subinterfaces Gi0/0.10 and Gi0/0.20, and OSPF process 10 in RED and 20 in BLUE). Configure R1 to match: create the two VRFs, put Gi0/0 (RED LAN) and Gi0/1 (BLUE LAN) into them with 10.1.1.1/24 each, carry RED on Gi0/2.10 (VLAN 10, 172.31.10.1/30) and BLUE on Gi0/2.20 (VLAN 20, 172.31.20.1/30), and run OSPF in each VRF so each LAN reaches its own servers and nothing else.

eth0Gi0/0eth0Gi0/1Gi0/2Gi0/0Gi0/1eth0Gi0/2eth0PC-REDPC-RED — PCPC-BLUEPC-BLUE — PCR1R1 — Router (2911)R2R2 — Router (2911)SRV-REDSRV-RED — ServerSRV-BLUESRV-BLUE — Server

Your tasks

  1. R1 has VRFs RED (rd 65000:10) and BLUE (rd 65000:20); Gi0/0 is 10.1.1.1/24 in RED and Gi0/1 is 10.1.1.1/24 in BLUE.
  2. R1 reaches R2 in each VRF over its own subinterface: Gi0/2.10 (VLAN 10, 172.31.10.1/30) in RED and Gi0/2.20 (VLAN 20, 172.31.20.1/30) in BLUE.
  3. R1 learns the server LAN 10.2.2.0/24 by OSPF in both VRFs.
  4. Each LAN reaches its own servers, and only its own: PC-RED reaches SRV-RED, PC-BLUE reaches SRV-BLUE, and PC-RED cannot reach BLUE's transit link (172.31.20.2).

The lab checks the result, not the exact commands. For example, a ping task passes only when the ping really succeeds through the network you built.

Start the lab