Command Reference Guide

SROS Command Line Interface Reference Guide Global Configuration Mode Command Set
5991-2114 © Copyright 2005 Hewlett-Packard Development Company, L.P. 331
router ospf
Use the router ospf command to activate OSPF in the router and to enter the OSPF Configuration Mode.
See the section Router (OSPF) Configuration Command Set on page 903 for more information. Use the no
form of this command to disable OSPF routing.
Syntax Description
No subcommands.
Default Values
By default, OSPF is disabled.
Command Modes
(config)# Global Configuration Mode required
Functional Notes
The Secure Router OS can be configured to use OSPF with the firewall enabled (using the ip firewall
command). To do this, configure the OSPF networks as usual, specifying which networks the system will
listen for and broadcast OSPF packets to. See
ip firewall on page 271 for more information.
To apply stateful inspection to packets coming into the system, create a policy-class that describes the type
of action desired and then associate that policy-class to the particular interface (see
ip policy-class
<policyname> max-sessions <number>
on page 293). The firewall is intelligent and will only allow OSPF
packets that were received on an OSPF configured interface. No modification to the policy-class is
required to allow OSPF packets into the system.
Usage Examples
The following example uses the router ospf command to enter the OSPF Configuration Mode:
(config)#router ospf
(config-ospf)#