OSPF Configuration Commands 215
Because multiple dynamic routing protocols could be running on a router at any
one time, priority needs to be assigned to each protocol. Using this command, you
can set a default preference for each routing protocol. The protocol with the
higher preference has priority.
Example
To set the preference of an imported external route of the AS to 160, enter the
following:
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]router id 1.1.1.1
[SW5500]ospf
[SW5500-ospf-1]preference ase 160
reset ospf Syntax
reset ospf [
statistics
] { all |
process-id
}
View
User View
Parameter
all Enter to reset all OSPF processes
process-id
Enter the process ID of OSPF, ranging from 1 to 65535. By default,
the process ID is 1.
statistics Enter to reset OSPF statistics.
Description
Using the reset ospf all command, you can reset the OSPF process, as follows:
■ Invalid LSAs are cleared immediately without waiting for LSA timeout.
■ If the Router ID changes, a new Router ID takes effect to execute the
command.
■ Re-elect DR and BDR.
■ OSPF configuration before the restart will not be lost.
After you enter the command, you are asked to confirm that the OSPF protocol
should be re-enabled.
Example
Reset all the OSPF processes:
<SW5500>reset ospf all
router id Syntax
router id
router_id
undo router id