cmdref.net - Command Reference

This site is command references for system engineers.

User Tools

Site Tools


Top     SiteMap

Sidebar

Top     SiteMap








Etc


Reference












.

hardware:cisco:vrf.html



Cisco IOS, NX-OS

Cisco : VRF

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

Commands

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 192.168.10.5


Setting

Definition of VRF Interface

RD(Route Distinguisher) is VRF identifier.

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 192.168.1.254


Apply Routing

Router(config)# ip route vrf CustomerA 10.1.1.0 255.255.255.0 192.168.1.1





Cisco IOS, NX-OS




hardware/cisco/vrf.html.txt ยท Last modified: 2016/09/01 (external edit)