Command
IP OSPF #
Use
Enables OSPF on an interface.
Syntax
Router(config-if)#ip ospf <Number>
Example
In this example, OSPF is enabled on int fa0/0 on R1. Before doing so, ospf is disabled at the router level on R1. The empty route table
is first displayed.
R1(config)#no router ospf 1 R1(config)# |
After that, ospf is then enabled directly on fa0/0.
R1(config)#int fa0/0 |
Finally, the route table is displayed.
R1(config-if)#do show ip route ospf |