Users Guide

Table Of Contents
2. Enable OSPF and configure an OSPF instance in VRF CONFIGURATION mode.
router ospf instance-number vrf vrf-name
3. Enter the interface information to configure the interface for OSPF in INTERFACE mode.
interface ethernet node/slot/port[:subport]
4. Enable the interface in INTERFACE mode.
no shutdown
5. Disable the default switchport configuration and remove it from an interface or a LAG port in INTERFACE mode.
no switchport
6. Associate the interface with the non-default VRF instance that you created earlier.
ip vrf forwarding vrf-name
7. Assign an IP address to the interface.
ip address ip-address/mask
8. Enable OSPFv2 on the interface.
ip ospf process-id area area-id
process-idEnter the OSPFv2 process ID for a specific OSPF process, from 1 to 65535.
area-idEnter the OSPFv2 area ID as an IP address (A.B.C.D) or number, from 1 to 65535.
Enable OSPFv2 configuration
OS10(config)# ip vrf vrf-blue
OS10(config-vrf-blue)# router ospf 100 vrf-blue
OS10(conf-router-ospf-100)# exit
OS10(config)# interface ethernet 1/1/2
OS10(conf-if-eth1/1/2)# no shutdown
OS10(conf-if-eth1/1/2)# no switchport
OS10(conf-if-eth1/1/2)# ip vrf forwarding vrf-blue
OS10(conf-if-eth1/1/1)# ip address 11.1.1.1/24
OS10(conf-if-eth1/1/1)# ip ospf 100 area 0.0.0.0
NOTE:
If you want to move an interface associated with one VRF instance to another default or non-default VRF instance, you
must first remove the OSPF or Layer3 configurations that already exist on the interface. If you move the interface from one
VRF instance to another without removing these existing Layer3 or OSPF configurations, these configurations do not take
effect in the new VRF instance.
Consider a scenario where the OSPF instance 100 is configured on the default VRF instance and the OSPF instance 200
is configured on the non-default VRF instance named VRF-Red. The interface eth1/1/1 on the default VRF instance is
attached to an OSPF process 100 area 1. In this scenario, if you want to move eth1/1/1 from the default VRF instance to
VRF-Red, you must first remove the OSPF area configuration to which the interface eth1/1/1 is currently attached to.
Assign router identifier
For managing and troubleshooting purposes, you can assign a router ID for the OSPFv2 process. Use the routers IP address as
the router ID.
Assign the router ID for the OSPFv2 process in ROUTER-OSPF mode
router-id ip-address
940
Layer 3