122
Examples
# Set a preference of 200 for OSPF external routes.
<Sysname> system-view
[Sysname] ospf 100
[Sysname-ospf-100] preference ase 200
# 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-prefix 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.