R3166-R3206-HP High-End Firewalls Network Management Command Reference-6PW101

Table Of Contents
272
Description
Use the preference command to set the priority of OSPF routes.
Use the undo preference command to restore the default.
The priority of OSPF internal routes defaults to 10, and the priority of OSPF external routes defaults to
15 0 .
If a route policy is specified, priorities defined by the route policy will apply to matching routes, and the
priorities set with the preference command apply to OSPF routes not matching the route policy.
A router may run multiple routing protocols. When several routing protocols find routes to the same
destination, the router uses the route found by the protocol with the highest priority.
Examples
# Set a priority of 200 for OSPF external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] preference ase 200
reset ospf counters
Syntax
reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ]
View
User view
Default level
2: System level
Parameters
process-id: Clears the statistics information of the specified OSPF process, which is in the range 1 to
65535.
neighbor: Clears neighbor statistics.
interface-type interface-number: Clears the statistics information of the neighbor connected to the
specified interface.
router-id: Clears the statistics information of the specified neighbor.
Description
Use the reset ospf counters command to clear OSPF statistics information.
Examples
# Reset OSPF counters.
<Sysname> reset ospf counters
reset ospf process
Syntax
reset ospf [ process-id ] process