Reference Guide

5 Assign an IP address to the interface in INTERFACE mode.
ip address ip-address/mask
6 Enable OSPFv2 on an interface in INTERFACE mode.
ip ospf process-id area area-id
process-id—Enter the OSPFv2 process ID for a specic OSPF process from 1 to 65535.
area-id—Enter the OSPFv2 area ID as an IP address (A.B.C.D) or number from 1 to 65535.
Enable OSPFv2 conguration
OS10(config)# router ospf 100
OS10(conf-router-ospf-100)# exit
OS10(config)# interface ethernet 1/1/1
OS10(conf-if-eth1/1/1)# no shutdown
OS10(conf-if-eth1/1/1)# no switchport
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
View OSPFv2 conguration
OS10# show running-configuration ospf
!
interface ethernet1/1/1
ip ospf 100 area 0.0.0.0
!
router ospf 100
...
Assign router identier
For managing and troubleshooting purposes, you can assign a router ID for the OSPFv2 process. Use the router’s 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 ooded into stub areas. The ABR advertises a default route into the stub area to which it is attached. Stub area routers
use the default route to reach external destinations.
Layer 3
407