Feb 13 2012 10:33AM GMT
Posted by: Sulaiman Syed
Cisco, virtual, routing, forwarding, how, to, Configure, CCIE
How to configure VRF-lite?
Posted by: Sulaiman Syed
VRF-lite is as the name says, light version of VRF. What is VRF? It is Virtual Routing and Forwarding. It is a logical way of segregating network traffic. Mostly used with MPLS-VPN. So, lets what what is VRF-lite
According to Cisco VRF considered to be “lite” without using MPLS. Which means that creating interfaces, and running routing protocols without the use of MPLS will make it VRF-lite.
To configure VRF-lite, follow the steps:
- Define the VRF instance by using ip vrf name
- Give the appropriate rd values rd nn:nn
- If using BGP, then add route-targets {export/import} nn:nn
- Add the Interface to the VRF by using the command ip vrf forwarding name
The above is a sample configuration of creating VRF-lite, different routing protocols have different syntax and ways of creating them for respective VRFs.
For simple router to router connection that is shown in the image. The following code can be used
R1
ip vrf VPN_Ard 100:1!ip vrf VPN_Brd 100:2!interface FastEthernet0/0.67encapsulation dot1Q 67ip vrf forwarding VPN_Aip address 155.1.67.6 255.255.255.0!interface FastEthernet0/0.76encapsulation dot1Q 76ip vrf forwarding VPN_Bip address 155.1.76.6 255.255.255.0!ip route vrf VPN_A 172.16.7.0 255.255.255.0 155.1.67.7ip route vrf VPN_B 192.168.7.0 255.255.255.0 155.1.76.7
R2
!ip vrf VPN_Ard 100:1!ip vrf VPN_Brd 100:2!!interface Loopback101ip vrf forwarding VPN_Aip address 172.16.7.7 255.255.255.0!interface Loopback102ip vrf forwarding VPN_Bip address 192.168.7.7 255.255.255.0!!interface Vlan67ip vrf forwarding VPN_Aip address 155.1.67.7 255.255.255.0!interface Vlan76ip vrf forwarding VPN_Bip address 155.1.76.7 255.255.255.0!ip route vrf VPN_A 0.0.0.0 0.0.0.0 155.1.67.6ip route vrf VPN_B 0.0.0.0 0.0.0.0 155.1.76.6
The configuration above will create the VRF, add static routing for the loopback interfaces. It is simple and straight forward. The above configuration can be used WITHOUT the rd command. Although it is recommended to use it.




You must be logged-in to post a comment. Log-in/Register