device# configure terminal
device(config)# router ospf
device(config-router-ospf-vrf-default-vrf)# area 40 stub 99 no-summary
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