VRF Lite

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

VRF-LITE

Virtual routing and forwarding (VRF) is a technology


that creates
separate virtual routers on a physical router. Router
interfaces,
routing tables, and forwarding tables are completely
isolated
between VRFs, preventing traffic from one VRF from
forwarding
into another VRF. All router interfaces belong to the
global VRF
until they are specifically assigned to a user-defined
VRF. The
global VRF is identical to the regular routing table of
non-VRF
routers.
The use of Cisco VRF-Lite technology has the following
advantages:
Allows for true routing and forwarding separation
Simplifies the management and troubleshooting of the traffic
belonging to the specific VRF, because separate forwarding tables
are
used to switch that traffic
Enables the support for alternate default routes
Configuring VRF-Lite
Follow these steps when configuring a Cisco router for
VRF-Lite
support:
Step 1. Create the VRF(s).
Step 2. Assign interface(s) to the VRF.
Step 3. Enable routing for the VRF.
Step 1: Create the VRFs
Router(config)# ip Creates an IPv4 VRF called GUEST using
vrf GUEST the old VRF CLI format
Router(config-vrf)#
Exits VRF configuration mode
exit
Router(config)# vrf Creates a VRF called STAFF using the new
definition STAFF VRF CLI format
Router(config-vrf)# Enables the IPv4 address family for the
address-family ipv4 STAFF VRF using the new VRF CLI format
Router(config-vrf
Exits the IPv4 address family
af)# exit
Router(config-vrf)# Enables the IPv6 address family for the
address-family ipv6 STAFF VRF using the new VRF CLI format
Router(config-vrf
Exits the IPv6 address family
af)# exit
Router(config-vrf)#
Exits VRF configuration mode
exit

Step 2: Assign an Interface to the VRF


Router(config)#
interface Enters interface configuration mode
gigabitethernet 0/0/0
Assigns the GigabitEthernet 0/0/0
Router(config-if)# ip
interface to the GUEST VRF using the
vrf forwarding GUEST
old CLI format
Router(config-if)#
interface Enters interface configuration mode
gigabitethernet 0/0/1
Assigns the GigabitEthernet 0/0/1
Router(config-if)# vrf
interface to the STAFF VRF using the
forwarding STAFF
new CLI format

Step 3: Enable Routing for the VRF


The following configuration examples demonstrate
how IPv4 VRFs
can be associated with a routing process. The same
commands
would apply for IPv6 VRFs.
Router(config)# ip route vrf Defines a default route for
GUEST 0.0.0.0 0.0.0.0 172.16.16.2 the GUEST VRF
Router(config)# router ospf 1 vrf Enables OSPFv2 for the
STAFF STAFF VRF
Router(config)# router ospfv3 1 Enables OSPFv3
Router(config-router)# address- Assigns the STAFF VRF to

family ipv4 unicast vrf STAFF


the IPv4 unicast address
family
Router(config)# router eigrp Enables EIGRP using
CISCO named mode configuration
Router(config-router)# address Assigns the GUEST VRF to
family ipv4 unicast vrf GUEST the IPv4 unicast address
autonomous-system 100 family for AS 100
Router(config)# router bgp 65001 Enables BGP for AS 65001
Router(config-router)# address Assigns the STAFF VRF to
family ipv4 vrf STAFF the IPv4 address family
Note
Cisco IOS supports the old and new VRF CLI formats. Old Cisco IOS VRF configuration style supports IPv4 only.
New multiprotocol VRF CLI now supports both IPv4 and IPv6. Cisco IOS offers a migration tool that upgrades a
VRF instance or all VRFs configured on the router to support multiple address families under the same VRF. The
vrf upgrade-cli multi-af-mode {common-policies | non-common-policies} [vrf vrf-name] command is issued in
global configuration mode.

Verifying VRF-Lite
Displays a list of all configured VRFs, their
Router# show vrf
address families, and their interfaces
Router# show vrf Provides detailed information about a specific
detail vrf-name VRF

You might also like