Assigning a Layer 3 interface to a VRF

Important

Important

After a VRF instance is configured on the device, one or more Layer 3 interfaces (physical or virtual Ethernet) must be assigned to the VRF. This causes all existing IP addresses to be deleted; this action also triggers cache deletion, route deletion, and associated cleanup. After assigning an interface to the VRF, the user must reconfigure the IP address and interface properties.
  1. Enter global configuration mode.
    device(config)# configure terminal
  2. Enter the interface ve command to specify a virtual Ethernet (VE) interface and enter VE configuration mode.
    device(config)# interface ve 10
    
  3. In VE configuration mode, enable forwarding for the VRF "guest".
    device(config-if-Ve-10)# vrf forwarding guest
    
  4. Configure an IPv4 address and mask on the VE interface.
    device(config-if-Ve-10)# ip address 192.168.1.254/24
  5. Enable OSPF Area 0.
    device(config-if-Ve-10)# ip ospf area 0
  6. Configure the interface as passive.
    device(config-if-Ve-10)# ip ospf passive
    
  7. Exit the configuration.
    device(config-if-Ve-10)# exit