- Cheat Sheet and Example is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools






Cisco IOS, NX-OS CLI Commands

Cisco VRF Configuration Examples

About VRF

VRFs are like VLANs for routers, instead of using a single global routing table we can use multiple virtual routing tables.
Each interface of the router is assigned to a different VRF.
VRFs are commonly used for MPLS deployments, when we use VRFs without MPLS then we call it VRF lite.

VRF Lite Configuration on Cisco IOS


Operation Commands
Check vrf Router# show vrf
Router# show vrf detail
Check vrf VLAN Router# show ip interface brief vrf all
Check vrf name Router# show ip vrf
Check VRF Interfaces Router# show ip vrf interfaces VRFNAME
Check ip routing Router# show ip route vrf all
Router# show ip route vrf VRFNAME
Check Ping Router# ping vrf VRFNAME DESTINATION
Router# ping vrf VRFNAME
Check Traceroute Router#traceroute vrf VRFNAME


Definition of VRF Interface

RD(Route Distinguisher) is VRF identifier.

xx:yy. In xx, AS number is often used. Sometimes there is an IP address.

Router(config)# ip vrf CustomerA
Router(config-vrf)# rd 1:100

Router(config-vrf)# exit
Router#show ip vrf

Apply VRF to Interface

Router(config)# interface GigabitEthernet 0/0
Router(config-if)# ip vrf forwarding CustomerA
Router(config-if)# ip address

Apply Routing to VRF

Static Route

Router(config)# ip route vrf CustomerA


Router(config)#router bgp <local_as>
Router(config-router)#address-family ipv4 vrf <vrf_name>
Router(config-router-af)# neighbor <remote_addr> remote <remote_as>
router bgp 10000
 address-family ipv4 vrf VRF-1
 neighbor remote-as 10002
 neighbor activate
 no auto-summary
 no synchronization
 network mask


Router(config)# router eigrp <ASNUMBER>
Router(config)# address-family ipv4 vrf <VRFNAME>
Router(config)# network <IPADDRESS> <WILDCARD>
Router(config)# autonomous-system <ASNUMBER>


hardware/cisco/vrf.html.txt ยท Last modified: 2018/11/16 by admin