router : ospf : config network
 
config network
Use this subcommand to identify the interfaces to include in the specified OSPF area. The prefix field can define one or multiple interfaces.
The area and prefix fields are required.
Variable
Description
Default
edit <network_id>
Enter an ID number for the network. The number must be an integer.
No default.
area <id-address_ipv4>
The ID number of the area to be associated with the prefix.
0.0.0.0
prefix <address_ipv4mask>
Enter the IP address and netmask for the OSPF network.
0.0.0.0 0.0.0.0
Example
Use the following command to enable OSPF for the interfaces attached to networks specified by the IP address 10.0.0.0 and the netmask 255.255.255.0 and to add these interfaces to area 10.1.1.1.
config router ospf
config network
edit 2
set area 10.1.1.1
set prefix 10.0.0.0 255.255.255.0
end
end