VRF Lite:
o VRF is a term which is stand for Virtual Routing and Forwarding.
o By default, a cisco router uses a single global routing table only.
o VRF allows a router to run more that, one routing table at the same time.
o VRFs are used to create multiple virtual routers from one physical router.
o Every VRF is creating his own Routing table & Cisco Express Forwarding table.
o VRF basically virtualize multiple Cisco routers on a single physical router.
o VRFs are like Switch VLANs (Virtual Local Area Network) for Cisco routers.
o VRFs Instead of using single global routing table, use multiple virtual routing tables.
o Each interface of the router is assigned to different Virtual Routing and Forwarding.
o Virtual Routing and Forwarding (VRF) are commonly used for MPLS deployments.
o In Cisco terminology, deployment of VRFs without MPLS is known as VRF Lite.
o When assigning an interface to a VRF, the IOS deletes preconfigured IP address.
o When assigning an interface to a VRF, IOS also remove route from the global table.
Router Red1 Configuration Router Red2 Configuration
Red1(config)#interface f0/0 Red2(config)#interface f0/0
Red1(config-if)#ip address [Link] Red2(config-if)#ip address [Link]
[Link] [Link]
Red1(config-if)# no shutdown Red2(config-if)# no shutdown
Router Green1 Configuration Router Green2 Configuration
Green1(config)#interface f0/0 Green2(config)#interface f0/0
Green1(config-if)#ip address [Link] Green2(config-if)#ip address [Link]
[Link] [Link]
Green1(config-if)# no shutdown Green2(config-if)# no shutdown
1 | P a g e Created by Ahmad Ali E-Mail: ahmadalimsc@[Link] , Mobile: 056 430 3717
Router ISP Configuration
ISP(config)#ip vrf Green ISP(config)#ip vrf Red
ISP(config-vrf)#exit ISP(config-vrf)#exit
ISP(config)#interface FastEthernet0/0 ISP(config)#interface FastEthernet0/1
ISP(config-if)#ip vrf forwarding Green ISP(config-if)#ip vrf forwarding Green
ISP(config-if)#ip address [Link] ISP(config-if)#ip address [Link]
[Link] [Link]
ISP(config-if)#no shutdown ISP(config-if)#no shutdown
ISP(config)#interface FastEthernet1/0 ISP(config-if)#interface FastEthernet2/0
ISP(config-if)#ip vrf forwarding Red ISP(config-if)#ip vrf forwarding Red
ISP(config-if)#ip address [Link] ISP(config-if)#ip address [Link]
[Link] [Link]
ISP(config-if)#no shutdown ISP(config-if)#no shutdown
ISP# show ip route connected ISP# show ip route vrf Red connected
ISP# show ip route vrf Green connected ISP# ping vrf Red [Link]
ISP# ping vrf Red [Link] ISP# ping vrf Green [Link]
ISP# ping vrf Green [Link]
Static Route Configuration
ISP(config)# ip route vrf Red [Link] ISP(config)# ip route vrf Green [Link]
[Link] [Link] [Link] [Link]
EIGRP Configuration
ISP(config)#router eigrp 1 ISP(config)#router eigrp 2
ISP(config-router)#address-family ipv4 vrf ISP(config-router)#address-family ipv4 vrf
Red Green
ISP(config-router-af)#network [Link] ISP(config-router-af)#network [Link]
ISP(config-router-af)#network [Link] ISP(config-router-af)#network [Link]
RIP Configuration
ISP(config)#router rip ISP(config)#router rip
ISP(config-router)#address-family ipv4 vrf ISP(config-router)#address-family ipv4 vrf
Red Green
ISP(config-router-af)#network [Link] ISP(config-router-af)#network [Link]
ISP(config-router-af)#network [Link] ISP(config-router-af)#network [Link]
OSPF Configuration
ISP(config)#router ospf 1 vrf Red ISP(config)#router ospf 1 vrf Green
ISP(config-router)#network [Link] ISP(config-router)#network [Link]
[Link] area 0 [Link] area 0
ISP(config-router)#network [Link] ISP(config-router)#network [Link]
[Link] area 0 [Link] area 0
ISP# show ip vrf Red ISP# show ip route vrf Green
ISP# show ip protocols vrf Red ISP# show ip eigrp vrf Green neighbors
2 | P a g e Created by Ahmad Ali E-Mail: ahmadalimsc@[Link] , Mobile: 056 430 3717
3 | P a g e Created by Ahmad Ali E-Mail: ahmadalimsc@[Link] , Mobile: 056 430 3717