Chapter 6 CLI – Layer 3
166 P332G-ML User’s Guide
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>]
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>]]
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
area id IP address
stub Stub
net addr IP address
wildcard-mask Wildcard mask address
area id Area ID. This parameter exists for compatibility with
P550.