SlideShare a Scribd company logo
2
Most read
3
Most read
7
Most read
Virtual Routing and
Forwarding
2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Virtual Routing and Forwarding
• 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.
• Virtual Routing and Forwarding or VRF is a technology that
supports multiple routing instance inside a single router (or layer-3 switch).
This means a single router can have multiple separated routing table and
each one is completely independent. Due to its independency, it also allows
the usage of overlapping IP address. Cisco IOS router supports VRF by
default.
• Usage of overlapping address should be avoided as much as possible.
However, there are certain causes where this condition is unavoidable
(usually happens in a service provider network), and this is one of the
reasons why understanding the way to configure VRF in Cisco IOS router is
important.
Virtual Routing and Forwarding (Cont.)
Virtual Routing and Forwarding (Cont.)
The global VRF is identical to the regular routing table of non-VRF routers:
• Every router’s VRF maintains a separate routing table; it is possible to allow
for overlapping IP address ranges.
• VRF creates segmentation between network interfaces, network
subinterfaces, IP addresses, and routing tables.
• Configuring VRF on a router ensures that the paths are isolated, network
security is increased, and encrypting traffic on the network is not needed
to maintain privacy between VRF instances.
Virtual Routing and Forwarding (Cont.)
• Figure 6-14 shows two routers to help visualize the
VRF routing table concept.
• One of the routers has no VRFs configured, and the
other one has a management VRF instance named
MGMT.
• The creation of multiprotocol VRF instances requires
the global configuration command vrf definition
vrf-name.
• Under the VRF definition submode, the command
address-family {ipv4 | ipv6} is required to specify the
appropriate address family.
• The VRF instance is then associated to the interface
with the command vrf forwarding vrf-name under
the interface configuration submode.
Virtual Routing and Forwarding
Virtual Routing and Forwarding (Cont.)
The following steps are required to create a VRF and assign it to an interface:
Step 1. Create a multiprotocol VRF routing table by using the command vrf definition vrf-name.
Step 2. Initialize the appropriate address family by using the command address-family {ipv4 | ipv6}. The
address family can be IPv4, IPv6, or both.
Step 3. Enter interface configuration submode and specify the interface to be associated with the VRF
instance by using the command interface interface-id.
Step 4. Associate the VRF instance to the interface or subinterface by entering the command vrf
forwarding vrf-name under interface configuration submode.
Step 5. Configure an IP address (IPv4, IPv6, or both) on the interface or subinterface by entering either or
both of the following commands:
IPv4 - ip address ip-address subnet-mask [secondary]
IPv6 - ipv6 address ipv6-address/prefix-length
• In this scenario, a service provider named ISPx have two
customers, namely “Company A” and “Company B”. ISPx
uses a single router named MBG001 and it is shared for both
company “A” and “B”. Interface f0/0 on MBG001 connected to
a switch and the switch connected to each of the company
network.
• The goal is to make company “A” network able to access
Loopback1 address and “B” must be able to access
Loopback2 address. However, for some reason both
companies needs to use the same network
address but they refuse to expose their network to each
other.
• Therefore, separate VLAN is used where VLAN17 is for
Company-A and VLAN18 is for Company-B. Unfortunately,
there’s just one problem as message below appears on
MBG001 when trying to configure the gateway interface for
those VLANs:
Intrdouction to VRF Implementation.pdf
Virtual Routing and Forwarding
Virtual Routing and Forwarding (Cont.)
Table 6-5 provides a set of interfaces and IP addresses that overlap between the global routing table and the VRF
instance.
Table 6-5 Sample
Interfaces and IP
Address
Interface IP Address VRF Global
Gigabit Ethernet 0/1 10.0.3.1/24 --
Gigabit Ethernet 0/2 10.0.4.1/24 --
Gigabit Ethernet 0/3 10.0.3.1/24 MGMT --
Gigabit Ethernet 0/4 10.0.4.1/24 MGMT --
• Example 6-20 shows how the IP addresses are assigned
to the interfaces in the global routing table, along with
the creation of the VRF instance named MGMT and two
interfaces associated with it (refer to Table 6-5).
• The IP addresses in the MGMT VRF instance overlap
with the ones configured in the global table, but there is
no conflict because they are in a different routing table.
Thank you!

More Related Content

PPTX
Virtual Routing and Forwarding, (VRF-lite)
PDF
Ccnp workbook network bulls
PDF
Building DataCenter networks with VXLAN BGP-EVPN
PPTX
JUNOS: OSPF and BGP
PPTX
Tutorial: Using GoBGP as an IXP connecting router
PPTX
CCNP Switching Chapter 5
PDF
VRF (virtual routing and forwarding)
PDF
OpeVPN on Mikrotik
Virtual Routing and Forwarding, (VRF-lite)
Ccnp workbook network bulls
Building DataCenter networks with VXLAN BGP-EVPN
JUNOS: OSPF and BGP
Tutorial: Using GoBGP as an IXP connecting router
CCNP Switching Chapter 5
VRF (virtual routing and forwarding)
OpeVPN on Mikrotik

What's hot (20)

PDF
Overview of SCTP (Stream Control Transmission Protocol)
PDF
PPT
Juniper Trouble Shooting
PPTX
CCNA v6.0 ITN - Chapter 09
PPTX
VMware Advance Troubleshooting Workshop - Day 2
PDF
VXLAN BGP EVPN: Technology Building Blocks
PDF
Demystifying EVPN in the data center: Part 1 in 2 episode series
PDF
Cisco IPv6 Tutorial
PPTX
MENOG-Segment Routing Introduction
PPTX
Introduction to nexux from zero to Hero
PDF
Cisco ospf
PPTX
ccna networking ppt
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 3
PPTX
Policy Based Routing
PDF
Ether channel fundamentals
PPTX
Enrutamiento IPv6 OSPFv3
PDF
Cisco Live! :: Introduction to IOS XR for Enterprises and Service Providers
PPTX
Link Aggregation Control Protocol
PPTX
CCNA RS_ITN - Chapter 5
PDF
VXLAN and FRRouting
Overview of SCTP (Stream Control Transmission Protocol)
Juniper Trouble Shooting
CCNA v6.0 ITN - Chapter 09
VMware Advance Troubleshooting Workshop - Day 2
VXLAN BGP EVPN: Technology Building Blocks
Demystifying EVPN in the data center: Part 1 in 2 episode series
Cisco IPv6 Tutorial
MENOG-Segment Routing Introduction
Introduction to nexux from zero to Hero
Cisco ospf
ccna networking ppt
CCNA 1 Routing and Switching v5.0 Chapter 3
Policy Based Routing
Ether channel fundamentals
Enrutamiento IPv6 OSPFv3
Cisco Live! :: Introduction to IOS XR for Enterprises and Service Providers
Link Aggregation Control Protocol
CCNA RS_ITN - Chapter 5
VXLAN and FRRouting
Ad

Similar to Intrdouction to VRF Implementation.pdf (20)

PDF
CCNA300-201Day+54+(part+3)+Slides+-+VRF.pdf
PDF
BRKCRT-2601.pdf
PDF
VRF Configuration
PDF
VRF Lab WorkBook
PPTX
Operationalizing VRF in the Data Center
PDF
VRRP (virtual router redundancy protocol)
DOCX
Network virtualization beyond vla ns-part2
PDF
Mpls vpn.rip
DOCX
Mpls layer 3 vp ns
PDF
Vlans_routing
PPTX
Mikrotik link redundancy solution
PDF
Vrrp technology white paper
PDF
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
PPTX
Multiprotocol label switching (mpls) - Networkshop44
PDF
Mpls22 sg vol.2 MADE IN INDIA
PDF
5 продвинутых технологий Cisco, которые нужно знать
PPTX
Fhrp notes
PPTX
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
PDF
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
CCNA300-201Day+54+(part+3)+Slides+-+VRF.pdf
BRKCRT-2601.pdf
VRF Configuration
VRF Lab WorkBook
Operationalizing VRF in the Data Center
VRRP (virtual router redundancy protocol)
Network virtualization beyond vla ns-part2
Mpls vpn.rip
Mpls layer 3 vp ns
Vlans_routing
Mikrotik link redundancy solution
Vrrp technology white paper
Fun with PRB, VRFs and NetNS on Linux - What is it, how does it work, what ca...
Multiprotocol label switching (mpls) - Networkshop44
Mpls22 sg vol.2 MADE IN INDIA
5 продвинутых технологий Cisco, которые нужно знать
Fhrp notes
MPLS L3 VPN Tutorial, by Nurul Islam Roman [APNIC 38]
L2/L3 für Fortgeschrittene - Helle und dunkle Magie im Linux-Netzwerkstack
Ad

Recently uploaded (20)

PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
PPT on Performance Review to get promotions
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PPTX
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
PPTX
CH1 Production IntroductoryConcepts.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PDF
Model Code of Practice - Construction Work - 21102022 .pdf
PPT
Mechanical Engineering MATERIALS Selection
PDF
Well-logging-methods_new................
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPT
Project quality management in manufacturing
PPTX
Geodesy 1.pptx...............................................
PPTX
Internet of Things (IOT) - A guide to understanding
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
KTU 2019 -S7-MCN 401 MODULE 2-VINAY.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Foundation to blockchain - A guide to Blockchain Tech
PPT on Performance Review to get promotions
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
Engineering Ethics, Safety and Environment [Autosaved] (1).pptx
CH1 Production IntroductoryConcepts.pptx
Lecture Notes Electrical Wiring System Components
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Model Code of Practice - Construction Work - 21102022 .pdf
Mechanical Engineering MATERIALS Selection
Well-logging-methods_new................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Project quality management in manufacturing
Geodesy 1.pptx...............................................
Internet of Things (IOT) - A guide to understanding
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf

Intrdouction to VRF Implementation.pdf

  • 2. 2 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Virtual Routing and Forwarding • 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.
  • 3. • Virtual Routing and Forwarding or VRF is a technology that supports multiple routing instance inside a single router (or layer-3 switch). This means a single router can have multiple separated routing table and each one is completely independent. Due to its independency, it also allows the usage of overlapping IP address. Cisco IOS router supports VRF by default. • Usage of overlapping address should be avoided as much as possible. However, there are certain causes where this condition is unavoidable (usually happens in a service provider network), and this is one of the reasons why understanding the way to configure VRF in Cisco IOS router is important. Virtual Routing and Forwarding (Cont.)
  • 4. Virtual Routing and Forwarding (Cont.) The global VRF is identical to the regular routing table of non-VRF routers: • Every router’s VRF maintains a separate routing table; it is possible to allow for overlapping IP address ranges. • VRF creates segmentation between network interfaces, network subinterfaces, IP addresses, and routing tables. • Configuring VRF on a router ensures that the paths are isolated, network security is increased, and encrypting traffic on the network is not needed to maintain privacy between VRF instances.
  • 5. Virtual Routing and Forwarding (Cont.) • Figure 6-14 shows two routers to help visualize the VRF routing table concept. • One of the routers has no VRFs configured, and the other one has a management VRF instance named MGMT. • The creation of multiprotocol VRF instances requires the global configuration command vrf definition vrf-name. • Under the VRF definition submode, the command address-family {ipv4 | ipv6} is required to specify the appropriate address family. • The VRF instance is then associated to the interface with the command vrf forwarding vrf-name under the interface configuration submode.
  • 6. Virtual Routing and Forwarding Virtual Routing and Forwarding (Cont.) The following steps are required to create a VRF and assign it to an interface: Step 1. Create a multiprotocol VRF routing table by using the command vrf definition vrf-name. Step 2. Initialize the appropriate address family by using the command address-family {ipv4 | ipv6}. The address family can be IPv4, IPv6, or both. Step 3. Enter interface configuration submode and specify the interface to be associated with the VRF instance by using the command interface interface-id. Step 4. Associate the VRF instance to the interface or subinterface by entering the command vrf forwarding vrf-name under interface configuration submode. Step 5. Configure an IP address (IPv4, IPv6, or both) on the interface or subinterface by entering either or both of the following commands: IPv4 - ip address ip-address subnet-mask [secondary] IPv6 - ipv6 address ipv6-address/prefix-length
  • 7. • In this scenario, a service provider named ISPx have two customers, namely “Company A” and “Company B”. ISPx uses a single router named MBG001 and it is shared for both company “A” and “B”. Interface f0/0 on MBG001 connected to a switch and the switch connected to each of the company network. • The goal is to make company “A” network able to access Loopback1 address and “B” must be able to access Loopback2 address. However, for some reason both companies needs to use the same network address but they refuse to expose their network to each other. • Therefore, separate VLAN is used where VLAN17 is for Company-A and VLAN18 is for Company-B. Unfortunately, there’s just one problem as message below appears on MBG001 when trying to configure the gateway interface for those VLANs:
  • 9. Virtual Routing and Forwarding Virtual Routing and Forwarding (Cont.) Table 6-5 provides a set of interfaces and IP addresses that overlap between the global routing table and the VRF instance. Table 6-5 Sample Interfaces and IP Address Interface IP Address VRF Global Gigabit Ethernet 0/1 10.0.3.1/24 -- Gigabit Ethernet 0/2 10.0.4.1/24 -- Gigabit Ethernet 0/3 10.0.3.1/24 MGMT -- Gigabit Ethernet 0/4 10.0.4.1/24 MGMT -- • Example 6-20 shows how the IP addresses are assigned to the interfaces in the global routing table, along with the creation of the VRF instance named MGMT and two interfaces associated with it (refer to Table 6-5). • The IP addresses in the MGMT VRF instance overlap with the ones configured in the global table, but there is no conflict because they are in a different routing table.