Chapter 7
CLI – Layer 3
Router-OSPF Mode
area Command
Use the area command to configure the area ID of the router. The no form of
this command deletes the area ID of the router (sets it to 0) and removes the stub
definition. The default area is 0.0.0.0.
Note: You cannot define a stub area when OSPF is redistributing other protocols or
when the Area ID is 0.0.0.0.
The syntax for this command is:
[no] area <area id> [<stub>]
area id
stub
Example:
Router-N(configure router:ospf)# area 192.168.49.1
Router-N(configure router:ospf)# area 192.168.49.1 stub
network Command
Use the network command to enable OSPF in this network. The no form of this
command disables the OSPF in this network. The default is disabled.
The syntax for this command is:
network <net addr> [<wildcard-mask> [area <area id>]]
net addr
wildcard-mask
area id
Example:
Router-N(configure router:ospf)# network 192.168.0.0
Router-N(configure router:ospf)# network 192.168.0.0
0.0.255.255 area 0.0.0.0
186
IP address
Stub
IP address
Wildcard mask address
Area ID. This parameter exists for compatibility with
P550.
P334T-ML User's Guide