Command
Network
Use
Specifies which interfaces will participate in the OSPF process.
Syntax
Router(config-router)#network <network address> <wildcard mask> area <area>
Options
<network address> | Any interface with this network address will be added into OSPF. |
<wildcard masks> | Sets how specific the network statement is: 192.168.1.0 0.0.0.255 would match any address starting with 192.168.1. |
Example
In this example, we will configure OSPF on all routers in the topology.
R2(config)#router ospf 1 *Mar 1 01:13:48.083: %OSPF-5-ADJCHG: Process 1, Nbr 1.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done |
Notice that EIGRP also stripes the network statements back to its classful network boundary.
R2(config-router)#do show ip route ospf |