R2511-HP MSR Router Series Layer 3 - IP Routing Command Reference(V5)

123
route-policy route-policy-name: References a routing policy to set priorities for specified routes. A
route-policy-name is a string of 1 to 63 case-sensitive characters.
value: Specifies the preference value in the range of 1 to 255. A smaller value represents a higher
preference.
Usage guidelines
If a routing policy is specified, priorities defined by the routing policy will apply to matching routes, and
the priorities set with the preference command apply to OSPF routes not matching the routing policy.
A router might 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 preference.
Examples
# Set a preference of 200 for OSPF external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] preference ase 200
reset ospf counters
Use reset ospf counters to clear OSPF statistics.
Syntax
reset ospf [ process-id ] counters [ neighbor [ interface-type interface-number ] [ router-id ] ]
Views
User view
Default command level
1: Monitor level
Parameters
process-id: Clears the statistics for an OSPF process specified by its ID in the range of 1 to 65535.
neighbor: Clears neighbor statistics.
interface-type interface-number: Clears the statistics of the neighbor connected to the specified interface.
router-id: Clears the statistics of the specified neighbor.
Examples
# Clear OSPF statistics.
<Sysname> reset ospf counters
reset ospf process
Use reset ospf process to reset all OSPF processes or a specified process.
Syntax
reset ospf [ process-id ] process [ graceful-restart ]
Views
User view