API Guide

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
Assign router ID
OS10(config)# router ospf 10
OS10(conf-router-ospf-10)# router-id 10.10.1.5
View OSPFv2 status
OS10# show ip ospf 10
Routing Process ospf 10 with ID 10.10.1.5
Supports only single TOS (TOS0) routes
It is an Autonomous System Boundary Router
It is Flooding according to RFC 2328
Convergence Level 0
Min LSA origination 0 msec, Min LSA arrival 1000 msec
Min LSA hold time 5000 msec, Max LSA wait time 5000 msec
Number of area in this router is 1, normal 1 stub 0 nssa 0
Area (0.0.0.0)
Number of interface in this area is 3
SPF algorithm executed 38 times
Area ranges are
Stub areas
Type 5 LSAs are not flooded into stub areas. The ABR advertises a default route into the stub area where it is attached. Stub
area routers use the default route to reach external destinations.
1. Enable OSPF routing and enter ROUTER-OSPF mode, from 1 to 65535.
router ospf instance number
692
Layer 3