VRF-lite

Virtual Routing and Forwarding - lite

General information on “VRF-lite”:

VRF feature route-replicate:

VRF feature “Route Distinguisher (RD)":

VRF feature “Route Targets (RT)":

VRF feature “Import/Export map”:

Configuration steps of “VRF-lite”:

  1. Create VRF instance
  2. Map interface to VRF instance
  3. Configure the interface (IP address, …)
  4. Map routing protocol instance to VRF instance
  5. Configure the routing protocol instance

“VRF(-Lite)” CLI configuration commands:

## Configuring a VRF
Router(config)# vrf definition <vrf-name>
Router(config-vrf)# address-family [ipv4 | ipv6]

## Assigning an interface to a VRF
Router(config)# interface <if>
Router(config-if)# vrf forwarding <vrf-name>

## Replicating routes within a VRF
Router(config)# vrf definition <vrf-name>
Router(config-vrf)# address-family [ipv4 | ipv6]
Router(config-vrf-af)# route-replicate from vrf [global | WORD] [unicast | multicast] [protocol] route-map [ROUTE-MAP-NAME]

## Configuring a Route Distinguisher (RD)
Router(config)# vrf definition <vrf-name>
Router(config-vrf)# rd <rd-value>

## Configuring a Route Target (RT) 
Router(config)# vrf definition <vrf-name>
Router(config-vrf)# route-target [export | import] <rt-value>

## Configuring route leaking between GRT and VRF using import/export maps
Router(config)# vrf definition <vrf-name>
Router(config-vrf)# address-family [ipv4 | ipv6]
Router(config-vrf-af)# [import | export] [ipv4 | ipv6] unicast map [ROUTE-MAP-NAME]

“VRF(-Lite)” CLI show commands:

## Showing a brief overview of all VRFs
Router# show vrf

## Showing a brief overview of a specific VRF
Router# show vrf <vrf-name>

## Showing detailed information of all VRFs
Router# show vrf detail

## Showing detailed information for a specific VRFs
Router# show vrf detail <vrf-name>

## Showing interfaces and their VRF belonging
Router# show vrf [ipv4 | ipv6] interfaces

## Showing the routing table for a specific VRF
Router# show [ip | ipv6] route vrf <vrf-name>