-
Enter the
configure terminal command to access global configuration mode.
device# configure terminal
-
Enter the
router ospf command to enter OSPF router configuration mode and enable OSPFv2 on the device.
device(config)# router ospf
-
Enter the
area stub command, specifying an area and a cost, followed by the
no-summary parameter to set an additional cost on a specified stub area and prevent any Type 3 and Type 4 summary LSAs from being injected into the area.
device(config-router-ospf-vrf-default-vrf)# area 40 stub 99 no-summary
Example
The following example configures a stub area, specifying a cost of 99 and preventing any Type 3 and Type 4 summary LSAs from being injected into the area.
device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# area 40 stub 99 no-summary