Multi-VRF with eBGP and OSPF: Configuring CE1 and CE2

  1. Enable OSPF routing.
    device(config)# router ospf
    device(config-router-ospf-default-vrf)# 
  2. Assign Area 0.
    device(config-router-ospf-default-vrf)#)# area 0
  3. Redistribute connected routes into OSPF and exit the OSPF configuration.
    device(config-router-ospf-default-vrf)# redistribute connected 
    device(config-router-ospf-default-vrf)# exit
    device(config)#
  4. Configure a loopback interface.
    device(config)# interface loopback 1
    device(config-Loopback-1)# ip address 10.1.1.1/32
    
    
  5. Configure an Ethernet interface, assign it to Area 0, and assign it to the appropriate network.
    device(config-Loopback-1)# interface ethernet 0/1
    device(conf-if-eth-0/1)# ip ospf area 0
    device(conf-if-eth-0/1)# ip address 10.1.2.1/24
  6. Repeat the above for additional loopback and Ethernet interfaces.