Assigning a loopback interface to a VRF
Do the following to assign a loopback interface to a nondefault VRF.
Because a loopback interface is always available as long as the device is available, it allows routing protocol sessions to stay up even if
the outbound interface is down. Assigning a loopback interface to a VRF is similar to assigning any interface. A loopback interface that is
not assigned to a nondefault VRF belongs to the default VRF.
1. Enter global conguration mode.
device# configure terminal
2. In global
conguration mode, enter interface subtype conguration mode and assign a loopback interface.
device(config)# interface loopback 1
3. Use the vrf forwarding command to assign the interface to the VRF "customer-1" in this example.
device(config-lbif-1)# vrf forwarding customer-1
4. Assign an IPv4 address and mask to the loopback interface.
device(config-lbif-1)# ip address 10.0.0.1/24
Verifying a Multi-VRF conguration
The following examples illustrate the use of a variety of show commands that are useful in verifying Multi-VRF congurations.
To verify all congured VRFs in summary mode, enter the show vrf command, as in the following example.
device# show vrf
Total number of VRFs configured: 2
Status Codes - A:active, D:pending deletion, I:inactive
Name Default RD vrf|v4|v6 Routes Interfaces
green 1:1 A | A| A 12 ve111 ve211 ve311*
red 10:12 A | A| A 4 ve1117 port-id tn1*
Total number of IPv4 unicast route for all non-default VRF is 8
Total number of IPv6 unicast route for all non-default VRF is 8
To verify a
specic VRF in detail mode, enter the show vrf detail vrf-name command, as in the following example.
device# show vrf green
VRF green, default RD 1:1, Table ID 1
IP Router-Id: 1.1.1.1
Interfaces: ve111 ve211 ve311 ve1116 ve2115
Address Family IPv4
Max Routes: 5500
Number of Unicast Routes: 6
Address Family IPv6
Max Routes: 400
Number of Unicast Routes: 6
Conguring Multi-VRF
FastIron Ethernet Switch Layer 3 Routing
53-1003627-04 567