Removing a VRF configuration

The following examples illustrate a variety of ways by which you can remove a VRF configuration: deleting a VRF instance from a port, deleting an address family from a VRF, and deleting the VRF globally.

Example

To delete a VRF instance from a specific port, use the no form of the vrf forwarding command. This removes all Layer 3 interface bindings from the VRF, and returns the interface to default VRF mode. All IP addresses and protocol configuration on this Layer 3 interface are removed.

device(conf-if-eth-0/1)# no vrf forwarding 

Example

To delete an IPv4 or IPv6 address family from a VRF instance, use the no form of the address-family command. All configuration related to the address family on all ports of the VRF are removed. Routes allocated to the address family are returned to the global pool.
device(config-vrf-customer1)# no address-family ipv4 

Example

To delete a VRF instance globally, use the no form of the vrf command. All IPv4 or IPv6 addresses are removed from all interfaces.

device(config)# no vrf customer1