F3726, F3211, F3174, R5135, R3816-HP Firewalls and UTM Devices Network Management Command Reference-6PW100

Table Of Contents
366
Syntax
preference [ ase ] [ route-policy route-policy-name ] value
undo preference [ ase ]
Default
The preference is 10 for OSPF internal routes and 150 for OSPF external routes (or ASE routes).
Views
OSPF view
Default command level
2: System level
Parameters
ase: Sets a preference for OSPF external routes. Without this keyword, the command sets a preference
for OSPF internal routes.
route-policy route-policy-name: Specifies a routing policy by its name, a case-sensitive string of 1 to 63
characters, to set a preference for the specified routes.
value: Specifies the preference value, in the range of 1 to 255. The smaller the value, the higher the
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.
If multiple 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.