Command Reference OSPFv2 Commands
No stub area is defined by default.
Routing process configuration mode
All devices in the OSPF stub area must be configured with the area stub command. The ABR only
sends three types of link state advertisement (LSA) to the stub area: 1) type 1, device LSA; 2) type 2,
network LSA; 3) type 3, network summary LSA. For the routing table, the devices in the stub area can
learn only the routes inside the OSPF routing domain, including the internal default routes generated
by the ABR.
To configure a full stub area, use the area stub command with the no-summary keyword on the ABR.
The devices in the full stub area can learn only the routes in the local area and the internal default
routes generated by the ABR.
Two commands can configure an OSPF area as a stub area: the area stub and area default-cost
commands. All devices connected to the stub area must be configured with the area stub command,
but the area default-cost command can be executed only on the ABR. The area default-cost
command defines the initial cost (metric) of the internal default route.
The following example sets area 1 as the stub area on all devices in area 1.
Ruijie(config)# router ospf1
Ruijie(config-router)# network172.16.0.0 0.0.255.255 area 0
Ruijie (config-router)# network 192.168.12.0 0.0.0.255 area 1
Ruijie(config-router)# area 1 stub
Defines the cost (OSPF metric value) of the
default aggregate route advertised to the stub
area.
Use this command to define the OSPF virtual link in routing process configuration mode. Use the no
form of this command to restore the default setting.
area area-id virtual-link router-id [ authentication [ message-digest | null ]] [ dead-interval
{ seconds | minimal hello-multiplier multiplier } ] [ hello-interval seconds ] [ retransmit-interval
seconds ] [ transmit-delay seconds ] [ [ authentication-key [ 0|7 ] key ] | [ message-digest-key
key-id md5 [ 0|7 ] key ] ]
no area area-id virtual-link router-id [ authentication ] [ dead-interval ] [ hello-interval ]
[ retransmit-interval ] [ transmit-delay ] [ [ authentication-key ] | [ message-digest-key key-id ] ]