Reference Guide
3 Assign the interface to a non-default VRF.
INTERFACE CONFIGURATION
ip vrf forwarding vrf-test
Before assigning a n interface to a VRF instance, ensure that no IP address is congured on the interface.
NOTE: In the default conguration, the interface is in L3 mode and it does not have an IP address. You can associate an
interface in L3 mode and with default conguration to a VRF. You can associate an interface only with one VRF instance.
Overwriting associations between interfaces and VRFs is not allowed, until all the interface congurations including the
previous VRF associations are deleted.
4 Assign an IPv4 address to the interface.
INTERFACE CONFIGURATION
ip address 10.1.1.1/24
5 Assign an IPv6 address to the interface.
INTERFACE CONFIGURATION
ipv6 address 1::1/64
You can also auto congure an IPv6 address using the ipv6 address autoconfig command.
NOTE: Before conguring any routing protocol in a VRF instance, you need to rst assign an IP address to at least one of
the interfaces assigned to the VRF instance on which you want to congure routing protocols.
Assigning a loopback interface to a non-default VRF instance
After creating a non-default VRF instance you can associate a loopback interface to the VRF instance that you created.
To assign a loopback interface to a non-default VRF, perform the following steps:
1 Enter the loopback interface that you want to assign to a non-default VRF instance.
CONFIGURATION
interface loopback 5
2 Remove the interfacet from L2 switching.
INTERFACE
no switchport
3 Assign the interface to a non-default VRF.
INTERFACE CONFIGURATION
ip vrf forwarding vrf-test
Before assigning a n interface to a VRF instance, ensure that no IP address is congured on the interface.
4 Assign an IPv4 address to the interface.
INTERFACE CONFIGURATION
ip address 10.1.1.1/24
5 Assign an IPv6 address to the interface.
INTERFACE CONFIGURATION
270
Layer 3