4-14Configuration PrerequisitesBefore configuring OSPF area attributes, perform the following tasks:z Configuring the network layer addresses of interfaces so that the adjacent nodes are reachable toeach other at the network layerz Performing basic OSPF configurationConfiguring OSPF Area AttributesFollow these steps to configure OSPF area attributes:To do... Use the command... RemarksEnter system view system-view —Enter OSPF view ospf [ process-id [ router-idrouter-id ] ] —Enter OSPF area view area area-id —Configure the current area to bea stub area stub [ no-summary ]OptionalBy default, no area is configuredas a stub area.Configure the current area to bean NSSA areanssa[ default-route-advertise |no-import-route |no-summary |translate-always ] *OptionalBy default, no area is configuredas an NSSA area.Configure the cost of the defaultroute transmitted by OSPF to astub or NSSA areadefault-cost costOptionalThis can be configured on an ABRonly. By default, the cost of thedefault route to a stub or NSSAarea is 1.Create and configure a virtuallinkvlink-peer router-id [ helloseconds | retransmitseconds | trans-delayseconds | dead seconds |simple password | md5keyid key ] *OptionalFor a virtual link to take effect, youneed to use this command at bothends of the virtual link and ensureconsistent configurations of thehello, dead, and otherparameters at both ends.z You must use the stub command on all the routers connected to a stub area to configure the areawith the stub attribute.z You must use the nssa command on all the routers connected to an NSSA area to configure thearea with the NSSA attribute.OSPF Network Type ConfigurationOSPF divides networks into four types by link layer protocol. See section 0 "OSPF Network Type". AnNBMA network must be fully connected. That is, any two routers in the network must be directly