Pcornel
H3 · Practical network exams · Cisco IOS / IOS XE

VRF-Lite (IPv4/IPv6) · Finals

Configuration first, verification second, theory third. Reference templates require task-specific adaptation.

Content version 1.1-draft

Keyboard shortcuts

/ Finals search · Ctrl K global command palette · Alt E Exam Mode · Alt G Golden Scripts · Alt T Exam Topics · Alt V Verify · Esc close dialog.

Skills Exam

Quick explanation

VRF-Lite separates routing tables on a device without requiring MPLS. Interfaces and routes are assigned to a named VRF.

Configuration

Replace highlighted placeholders. Configure only the variants required by the task.

Prerequisites and dependency links
  • Define the VRF and required address families before assigning interfaces.
  • Changing VRF membership can remove existing addresses; reapply addressing afterwards.
Define a dual-stack VRF Recommended / essential starting point
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vrf definition [VRF-NAME]
 address-family ipv4
 exit-address-family
 address-family ipv6
 exit-address-family
 exit
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
Assign routed router interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
Assign L3 switch routed port Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip routing
ipv6 unicast-routing
interface [INTERFACE]
 no switchport
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
IPv4 VRF static route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ip route vrf [VRF-NAME] [NETWORK] [SUBNET-MASK] [NEXT-HOP]
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
[NETWORK]
IPv4 destination or matching network address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
[NEXT-HOP]
IPv4 next-hop address.
IPv6 VRF static route Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
ipv6 route vrf [VRF-NAME] [IPV6-PREFIX]/[PREFIX-LENGTH] [NEXT-HOP-IPV6]
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
[IPV6-PREFIX]
IPv6 destination network prefix without slash length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
[NEXT-HOP-IPV6]
IPv6 next-hop address; a link-local next hop needs an exit interface.
Define IPV4 VRF Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vrf definition [VRF-NAME]
 address-family ipv4
 exit-address-family
 exit
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
Define IPV6 VRF Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
enable
configure terminal
vrf definition [VRF-NAME]
 address-family ipv6
 exit-address-family
 exit
end
Command parameters
[VRF-NAME]
Local VRF name; align it with the task.
Router IPV4 VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
Router IPV6 VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
ipv6 unicast-routing
interface [INTERFACE]
 vrf forwarding [VRF-NAME]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VRF-NAME]
Local VRF name; align it with the task.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.
L3 switch IPV4 routed VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
ip routing
interface [INTERFACE]
 no switchport
 vrf forwarding [VRF-NAME]
 ip address [IP-ADDRESS] [SUBNET-MASK]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VRF-NAME]
Local VRF name; align it with the task.
[IP-ADDRESS]
Local IPv4 interface address.
[SUBNET-MASK]
IPv4 dotted-decimal subnet mask.
L3 switch IPV6 routed VRF interface Task-specific configuration — essential if selected
Start in privileged EXEC; block enters and exits configuration mode. Section link
  • Define the required VRF address family first. Moving an interface to a VRF can remove existing addresses; restore all required addresses and apply no switchport only on physical routed switchports.
enable
configure terminal
ip routing
ipv6 unicast-routing
interface [INTERFACE]
 no switchport
 vrf forwarding [VRF-NAME]
 ipv6 address [IPV6-ADDRESS]/[PREFIX-LENGTH]
 no shutdown
 exit
end
Command parameters
[INTERFACE]
Local interface name including type and number, or an SVI as appropriate.
[VRF-NAME]
Local VRF name; align it with the task.
[IPV6-ADDRESS]
Local IPv6 interface address without the prefix length.
[PREFIX-LENGTH]
IPv6 prefix length without slash.

Show / Verify

Primary verification Section link
show vrf
Example output
Name   Default RD   Protocols   Interfaces
CustomerA  <not set>  ipv4,ipv6  Gi0/0

Check the named VRF and interface membership.

Detailed verification Section link
show ip route vrf [VRF-NAME]
Example output
Routing Table: CustomerA

Check the IPv4 table for the correct VRF.

Detailed verification Section link
show ipv6 route vrf [VRF-NAME]
Example output
IPv6 Routing Table - CustomerA

Check the correct IPv6 table.

Functional verification Section link
ping vrf [VRF-NAME] [DESTINATION-IP]
Example output
Success rate is 100 percent (5/5)

Test IPv4 connectivity using the VRF, not the global table.

Functional verification Section link
ping vrf [VRF-NAME] [DESTINATION-IPV6]
Example output
Success rate is 100 percent (5/5)

Check IPv6 reachability in the named VRF, rather than in the global routing table.

Connectivity verification

VRF IPv4

Test in the correct routing instance.

ping vrf [VRF-NAME] [DESTINATION-IP]
traceroute vrf [VRF-NAME] [DESTINATION-IP]
VRF IPv6

Use the VRF-aware ping with an IPv6 destination; select the source if needed. Confirm support on the device.

ping vrf [VRF-NAME] [DESTINATION-IPV6]

Common mistakes

  • Applying VRF after addressing without reapplying addresses.
  • Route or OSPF AF in the wrong VRF.
  • Testing only the global table.
Remove configuration — separate, potentially disruptive actions

Remove interface VRF assignment

Can remove addresses and disrupt routing; restore required addressing after changing the VRF.

enable
configure terminal
interface [INTERFACE]
 no vrf forwarding
 exit
end

Related reference

Networking technical reference · Interface types · Connectivity verification
Documentation references consulted

Reset checklist?

Command block

Back to Top

Confirmation

Confirm action

Continue?