R21xx-HP FlexFabric 11900 Layer 3 IP Routing Command Reference
122
# Use a routing policy to set a preference of 100.
<Sysname> system-view
[Sysname] ip prefix-list test index 10 permit 100.1.1.0 24
[Sysname] route-policy pre permit node 10
[Sysname-route-policy-pre-10] if-match ip address prefix-list test
[Sysname-route-policy-pre-10] quit
[Sysname] ospf 100
[Sysname-ospf-100] preference route-policy pre 100
reset ospf counters
Use reset ospf counters to clear OSPF statistics.
Syntax
reset ospf [ process-id ] counters
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Clears the statistics an OSPF process specified by its ID in the range of 1 to 65535.
Examples
# Clear OSPF statistics for all processes.
<Sysname> reset ospf counters
reset ospf process
Use reset ospf process to restart all OSPF processes or a specified process.
Syntax
reset ospf [ process-id ] process [ graceful-restart ]
Views
User view
Predefined user roles
network-admin
Parameters
process-id: Specifies an OSPF process by its ID in the range of 1 to 65535.
graceful-restart: Resets the OSPF process by using GR.
Usage guidelines
If no process is specified, this command restarts all OSPF processes.
The reset ospf process command performs the following actions:
• Clears all invalid LSAs without waiting for their timeouts.
• Makes a newly configured Router ID take effect.










