API Guide

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. 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 configured on the interface.
3. Assign an IPv4 address to the interface.
INTERFACE CONFIGURATION
ip address 10.1.1.1/24
4. Assign an IPv6 address to the interface.
INTERFACE CONFIGURATION
ipv6 address 1::1/64
You can also auto configure an IPv6 address using the ipv6 address autoconfig command.
Assign an interface back to the default VRF instance
Table 72. Configurations to be deleted
CONFIGURATION MODE COMMAND
IP addressIn interface
configuration mode, undo the IP
address configuration.
INTERFACE CONFIGURATION
OS10(conf-if-eth1/1/10:1)#no ip address
ipv4-address or no ipv6 address ipv6
address
PortIn interface configuration
mode, delete the interface
association corresponding to the
VRF instance that you want to
delete.
INTERFACE CONFIGURATION
OS10(conf-if-eth1/1/10:1)#no ip vrf
forwarding
To assign an interface back to the default VRF, perform the following steps:
1. Enter the interface that you want to assign back to the default VRF instance.
CONFIGURATION
interface ethernet 1/1/1
2. Remove the IPv4 address associated with the interface.
INTERFACE CONFIGURATION
no ip address
3. Remove the IPv6 address associated with the interface.
INTERFACE CONFIGURATION
no ipv6 address
4. Assign the interface back to the default VRF instance.
INTERFACE CONFIGURATION
no ip vrf forwarding
Assigning the management interface back to the default VRF instance
To assign the management interface back to the default VRF, perform the following steps:
532
Layer 3